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

Hi All


I am trying a PUT method to send a reference field over to third party system.


I have this in the content-


{


      "Fields":   {


                                          "6098": "${ticket}",


                                          "6878":   "${incident}"             ,


                                            "6744":   "${state}"   ,


                                                "7688": "${group}"


                                                                                                                }


}



It works well and give 200 as http status if i removed   the last line i.e   "7688": "${group}" . If i put that then i get the error message


{"Message":"{\"Errors\":[\"Field 7688 cannot be used for this operation.\"]}"}



We donot use basic authentication but just the Headers for connection.


Can anyone tell me what is wrong here/?


yashothara
Kilo Contributor

Hi Chris Martin and Srikanth Gunuru,



Now It is working. Thank you so much for your help.


rajeevhegde
Kilo Explorer

Hi Yashothara,

 

 

I am also facing the same issue. 

 

Could you please let me know how you were able to resolve it.

 

 

Paromita
Mega Explorer

Hi Yashothara,

I am also facing similar issue. 

Can you please elaborate on steps taken to resolve it.

blanca12
Mega Contributor

The user whom you are trying to access should have rest_service role. Could you please check whether the user has the role or not?

Clean Master Facebook Lite  Mathway