- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 03:26 AM
Hi all,
Is there any way to customize Import set api response to send only specific fields. For example in response we get(refer to screenshot) contains certain values like import set, table name, etc. What i am trying to achieve is to only send the u_number field in the response.
In the third party tool i am using below as the parameter:
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2020 04:20 AM
Thanks Ankush and Vipin,
I made it working by using table API but for that i created a field in import set table(source table) named as u_number and then stored response in that field using onAfter Script.
(function runTransformScript(source, map, log, target){ source.u_number = target.u_number; source.update(); })(source, map, log, target); |
And then i have to modify query parameter at end point to below:
/api/now/table/tablename?sysparm_display_value=true&sysparm_fields=u_number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 03:43 AM
Hi Varun,
As per my understanding , the fields which are showing is system fields.
That you cannot remove it from OOB Import Set API. IF you want custom response ,
you can go for Scripted REST API.
OR
use Table API instead of Import Set API and do your action.
Thanks
Vipin Mathew
note: mark helpful , if it is useful for you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 03:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2020 04:20 AM
Thanks Ankush and Vipin,
I made it working by using table API but for that i created a field in import set table(source table) named as u_number and then stored response in that field using onAfter Script.
(function runTransformScript(source, map, log, target){ source.u_number = target.u_number; source.update(); })(source, map, log, target); |
And then i have to modify query parameter at end point to below:
/api/now/table/tablename?sysparm_display_value=true&sysparm_fields=u_number