The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Hi I am working in REST API of service now. In Import Set API i can't access Retrieve an Import Set record (GET) method. It says record not found evethough I gave sys_id of I posted.

yashothara
Kilo Contributor

In import Set API, I can't access Retrieve an Import Set Recordhttps://dev17686.service-now.com/$restapi.do?sysparm_cancelable=true method by giving sys_id   even though I posted a record and get sys_id of that.

1 ACCEPTED SOLUTION

The sys_id that is returned during a POST call to an import set table is not the sys_id of the record in the import set table.   It is the sys_id in the target table(where the record was transformed to)



To get the sys_id, as an admin, you have a multitude of options



Navigate to the record in a list, right click and copy sys_id.


Open the record in a new window, without the frames.   The URL will contain the sys_id


While in the record, right click on the header, select show XML, and find sys_id in there.


View solution in original post

19 REPLIES 19

ghsrikanth
Tera Guru

Put a read ACL for rest_service role- you should have security_admin role to create new ACLs


Incident.none


and Incident.*



Screen Shot 2016-03-14 at 4.44.23 PM.png



Hopefully this should do the trick.




Mark if it is helpful or correct, feedback is appreciated.


yashothara
Kilo Contributor

I have tried by creating ACL also like u specified. But now also GET is not working


Are you sure you are using a sys_id from the imp_computer table?



If you go to the above list that was linked to, and filter off the sys_id, you see the record?


yashothara
Kilo Contributor

In that i could not view sys_id of any record. so I posted one record and got that sys_id and try to get use that sys_id


The sys_id that is returned during a POST call to an import set table is not the sys_id of the record in the import set table.   It is the sys_id in the target table(where the record was transformed to)



To get the sys_id, as an admin, you have a multitude of options



Navigate to the record in a list, right click and copy sys_id.


Open the record in a new window, without the frames.   The URL will contain the sys_id


While in the record, right click on the header, select show XML, and find sys_id in there.