Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
AddServiceDefinition(); using created services but how to action script pass thorugh services need code
services script how to add in this servics
var serviceImplementation=me.name;
Things["Scheduler_Dynamic_CRON13"].EnableThing();
Things["Scheduler_Dynamic_CRON13"].RestartThing();
Things["Scheduler_Dynamic_CRON13"].AddServiceDefinition({
name: "hari" /* STRING */,
description: "welcome" /* STRING {"defaultValue":""} */,
definition:"hi welcome",
implementation: serviceImplementation,
});
Solved! Go to Solution.
This Community post has the answer to your question. Please look into this carefully and implement it in your case
Check Script Line Number: 60
PS: It is too challenging to write whole business logic for you so you have to create it on your own based on this reference
/VR
Looks like a repeated post. Many of them gave a solution to your question. Please try to implement it
Refer - Solved: how to create services in New Thing using javascri... - PTC Community
Please follow the related posts and try to implement those in your code
Hi @Velkumar
actually your share and my post , service using create new thing,
This Community post has the answer to your question. Please look into this carefully and implement it in your case
Check Script Line Number: 60
PS: It is too challenging to write whole business logic for you so you have to create it on your own based on this reference
/VR