Skip to main content
14-Alexandrite
February 28, 2021
Solved

Unable to get complete infotable with GetRunTimePermissions()* for things.

  • February 28, 2021
  • 1 reply
  • 1837 views

I have been unable to get the complete infotable for GetRunTimePermissions()* service call for any Thing.

 

Expected Infotable:

ExpectedInfotableExpectedInfotable

 

Received Infotable:

ReceivedInfotableReceivedInfotable

 

The service is unable to display the complete "Permissions" datashape. Is there any permissions which is inhibiting the output of complete infotable?

 

*Using ThingWorx 8.5.4-b222.

Best answer by mnarang

Ideally Permissions DS is a system object and this service is an inbuilt API, so there are very less chances of having any issue with service or DS field definition deletion/modification. But it is quite weird that even in F12 it is returning two columns only. Did you try restarting your server and test this again (in case there is some modification/change in memory) ?

1 reply

5-Regular Member
February 28, 2021

Can you check "Permission" Datashape in your system, how many columns are there in that DS? (You can search for DataShape and you have to enable the search for system object from the filter) .Second point, when you execute the service from composer, can you please press F12 while executing and observe the returned DS columns in response tab of F12 ? If there was a permission problem on the user, then whole service should not execute complaining about permission issue on execution but it is returning half of the DS columns.

Soura14-AlexandriteAuthor
14-Alexandrite
February 28, 2021

@mnarang Thanks for responding!

"Permissions" DS has all the fields(isPermitted, name, type,permissionName) which are anticipated in the result. But all these columns don't show up.

On checking the F12/developers window it shows only these columns "isPermitted" & "permissionName".

 

I checked on another TWX 8.5 instance and all the required columns show up. Unsure whats missing on this instance at this point in time.

mnarang5-Regular MemberAnswer
5-Regular Member
March 1, 2021

Ideally Permissions DS is a system object and this service is an inbuilt API, so there are very less chances of having any issue with service or DS field definition deletion/modification. But it is quite weird that even in F12 it is returning two columns only. Did you try restarting your server and test this again (in case there is some modification/change in memory) ?