Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Rest API get all records from a table runs into columns which are records

VL10
Tera Expert

I am using Table API with GET all records from a table and run into some columns which are records like a user.  How do I expand this to get a field from the record?


My exact use case is the CMDB Application class, and I want to get the list of applications, with the owners (and a few other columns) but the owner for example is a user record.

 

3 REPLIES 3

pablo_itguy_pl
Mega Guru

Hi,

 

You might need to run a secondary call to obtain owner details -  you will get the endpoint in original response for apps:

"owned_by": {
      "link": "https://dev202555.service-now.com/api/now/table/sys_user/62826bf03710200044e0bfc8bcbe5df1",
      "value": "62826bf03710200044e0bfc8bcbe5df1"
    }

 

AshishKM
Kilo Patron

Hi @VL10 ,

Use the below parameter in URI,  for display value of reference fields.

 

 

sysparm_display_value=true

 

 

Sample in REST API Explorer 

AshishKMishra_0-1708731253745.png

-Thanks,

AshishKM

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Many thanks, that helped.   I can see the display_value in my query tool (Postman).   Any idea how to make Excel display the display_value rather than the record if I embed this in Excel?