REST API's not returning response ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2016 07:11 PM
Hi Team,
I am using the OOB rest API for incident table :-
https://instance.service-now.com/api/now/table/incident
I have few doubts :-
1. For creating incident via REST API , if we have to pass the username of Caller
'caller_id':'cb3230342bb3d60083dac7ac17da15af'
e.g :- This i am using for populating a user, is there any other way of populating caller, because 3rd party tool might not aware of the sys id of user record. So how rest will create the incident for some other user.
2. When i am hitting this Rest API, then the incident is getting created but Response is showing as empty in other tool. Does anyone knows why it comes as empty.
Thanks & Regards,
Gaurav Kumar
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2016 04:13 AM
Hi, if you want to pass the user id to the incident, before inserting the incident do a query to lookup the user in question and return the id. If ID is present you can use it for the insertion of the incident record. Obviously it will take a little bit longer to finalise execution. Otherwise you can create a scripted web service which does all the work, including the user lookup and insertion of the incident record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2016 05:45 AM
I'm trying insert the record in table "customer_account" via import set table "x_eptds_cti_account_import" using "Chrome's Advanced Rest Client".
The record is created in the servicenow instance but im getting the below error.
{
"import_set": "ISET0010060",
"staging_table": "x_eptds_cti_account_import",
"result": [
{
"transform_map": "Account Import",
"table": "customer_account",
"status": "error",
"error_message": "Target record not found"
}
]
}
Can any one please help me?
IT IS HIGHLY EMERGENCY.......
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2016 05:57 AM
Hi Sensiple,
The error you are seeing is perhaps related to the details of coalescing.
For example the post below was fixed by clearing the "Coalesce empty fields" checkbox.
Transform Map, coalesce set on reference field, when no match a previous value is used (incorrectly)
Could you supply some details on your transform?
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 12:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2019 02:46 AM
Hi,
Did you find the solution for this. Kindly let me know if you found.
Thanks,
Raj