Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
In above code I m trying to get members of suborganization but at the end I should get 4 records but instead of that I m getting on 1 record and in "Script log" I m getting debugger response as "com.thingworx.types.InfoTable@9e681c4f" for all my 4 response.
Please help to solve this
Thanks!
Solved! Go to Solution.
Hi @SS_9749865,
In your code you are calling GetSubOrganization(). Is this a custom service ? If so, does it run successfully on its own and what does it return ?
Thanks in advance !
For your information here is a list of the supported APIs related to Organizations : http://support.ptc.com/help/thingworx_hc/javadoc/com/thingworx/security/organizations/Organization.html.
Hi @SS_9749865,
In your code you are calling GetSubOrganization(). Is this a custom service ? If so, does it run successfully on its own and what does it return ?
Thanks in advance !
For your information here is a list of the supported APIs related to Organizations : http://support.ptc.com/help/thingworx_hc/javadoc/com/thingworx/security/organizations/Organization.html.
In addition, remember that looping the info table rows requires to start from index 0 and not 1.
Hi @SS_9749865.
If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon