Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to query related fields with REST API EXPLORER?

RenanBezerra
Tera Contributor

Hello,

 

I am not sure if it is possible to query related fields with REST API EXPLORER.

 

For example I am using the REST API EXPLORER, to query the table sn_vul_vulnerable_item, but in the attribute sysparm_fields, I just want to bring sys_id, and class, for example IP Phone, Windows Server, but it is not possible, because actually class is not a field from sn_vul_vulnerable_item, but a field from the cmdb_ci.

 

Does anyone know if it is possible to do that in the REST API EXPLORER ?

1 ACCEPTED SOLUTION

Voona Rohila
Mega Patron
Mega Patron

Hi @RenanBezerra 

Refer below link

https://www.servicenow.com/community/developer-forum/how-to-get-reference-field-data-when-requesting...


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

2 REPLIES 2

Voona Rohila
Mega Patron
Mega Patron

Hi @RenanBezerra 

Refer below link

https://www.servicenow.com/community/developer-forum/how-to-get-reference-field-data-when-requesting...


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hello @Voona Rohila 

 

I knew about the scripted rest, but I wasn't sure if it was possible to do the dot walking with rest api explorer.

Anyway sorry for the later reply and thank you very much.

 

Best Regards,

Renan