Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
result = Things["someThing"].myService({parameter1: "String"}); this is not working
Hello,
Have you taken a look in your script or application log to see if there is any errors?
You can find them here:
Alternatively, if you get an error message in the output of the service where you are trying to run this code, that could also help us find a solution to your problem.
The error might look something like this:
Regards,
Jens
var params = {
name: "hari"};
result = Things["DELBI_Scheduler_Test"].myService(params);
Async Execution Failed in Mailserver_google_DynamicServicesCreate [Execution error in service script [DynamicServicesCreate] :: Thing Template [null] does not exist]
Hello,
I haven't really used this "DynamicServicesCreate" service. But it seems like perhaps you are sending it a thing template that doesn't exist.
Could you paste the code of your "myService" service here?
Also, when pasting code it is better to use the "Insert/Edit code sample" function of the forum which you can find here under the three dots:
Pressing them will reveal some more options where one is the Insert/Edit code sample:
If you press it a popup will show up where you can select what type of code you want to paste.
Select Javascript and then paste your code in it. Sometimes you will have to format it a little bit to make it more readable, but most of the time it is better than just the pure forum text.
Regards,
Jens
Hi @Hariharasuthan.
This sounds like a permissions issue. You should try testing it under the Administrator account to see if it works to determine if it is permissions related or if something else is going on.
Regards.
--Sharon
Hi @Hariharasuthan.
Did you make any progress on determining whether this is a permissions issue? Please share your findings with the community.
Regards.
--Sharon