cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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

Soura
14-Alexandrite

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

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.

ACCEPTED SOLUTION

Accepted Solutions
mnarang
17-Peridot
(To:Soura)

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) ?

View solution in original post

4 REPLIES 4
mnarang
17-Peridot
(To:Soura)

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.

Soura
14-Alexandrite
(To:mnarang)

@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.

mnarang
17-Peridot
(To:Soura)

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) ?

Soura
14-Alexandrite
(To:mnarang)

Thanks @mnarang! Restart did it! Low memory could have been an issue.

Announcements


Top Tags