Query reference fields through GET API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 07:57 AM
I'm trying to use Postman to query a table. One of the fields is a reference to another table. And I want to filter the resultset for a value in that table. How do I set the Qurey parameter to get the desired result?
I'm trying this query below. But not getting any results.
/api/now/table/{tableName}?sysparm_fields=u_company={sys_id}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 09:29 AM - edited 02-20-2024 09:29 AM
Hi @nidhi_hassan ,
Please share the tableName and column name ( reference to another table ).
Also, you can share the current result, with details , which part you are applying filter.
If "u_company" is the reference column in the table "you are applying the REST API" then add more sysparm_fields which are part of this "tableName".
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution