- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 07:46 AM
I am working with the REST API.. Though the below API returns an OK 200 in REST API Explorer, but it is not working in the BR. Its throwing me an error which says table not accessible.
var request = new sn_ws.RESTMessageV2();
request.setEndpoint('https://xxxx.service-now.com/api/now/table/u_custom_audit?sysparm_query= u_asset%3D' + current.cmdb_ci.asset_name ');
request.setHttpMethod('GET');
Cant share full code due to security reasons.
Could someone help me out with this.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 07:48 AM
Hi Rajeev,
Its hard to guess what are you trying to achieve here. The only mistake I see is a space after sysparm_query=
This is enough to make the API faulty. Remove the space.
https://xxxx.service-now.com/api/now/table/u_custom_audit?sysparm_query=u_asset%3D' + current.cmdb_ci.asset_name
Regards,
Shubham
Shubham Tipnis
ServiceNow Enthusiast
⭐️ 3x Rising Star (2022–2024) – ServiceNow Community
Sharing insights, use cases & real-world learnings from the Now Platform
Always learning. Always building.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 07:48 AM
Hi Rajeev,
Its hard to guess what are you trying to achieve here. The only mistake I see is a space after sysparm_query=
This is enough to make the API faulty. Remove the space.
https://xxxx.service-now.com/api/now/table/u_custom_audit?sysparm_query=u_asset%3D' + current.cmdb_ci.asset_name
Regards,
Shubham
Shubham Tipnis
ServiceNow Enthusiast
⭐️ 3x Rising Star (2022–2024) – ServiceNow Community
Sharing insights, use cases & real-world learnings from the Now Platform
Always learning. Always building.