Create Record using Get API

SoudarapuN
Tera Contributor

Hey Team,

i have a requirement that i need to import the data using Rest API( Get ).i Need to create the data which is present in the that get API from another instance .How can i do that.

1 ACCEPTED SOLUTION

@SoudarapuN 

so from instance B use table API to get the records from instance A and then load data

Refer below link for step by step instructions and enhance for your requirement

ServiceNow to ServiceNow Integration using REST API and PUSH and PUT methods with Business Rule 

You can also explore on Ebonding Spoke with less scripting

ServiceNow eBonding spoke 

Refer the below link which has the approach with example shared by me.

Integration hub ebonding spoke 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

13 REPLIES 13

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SoudarapuN 

 

https://www.servicenow.com/community/now-platform-forum/creating-the-record-through-rest-api/m-p/112...

https://www.servicenow.com/community/cmdb-forum/rest-api-get-method/td-p/2645583

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Swapna Abburi
Mega Sage
Mega Sage

Hi @SoudarapuN 

Please elaborate your requirement? Are you using Get API to extract data from another instance periodically (using scheduled job/flow designer) or real time using any other server side scripting (Business rules, UI actions etc). 

Yes They provided me Get API .when they insert any record on there instance it should insert on my instance also.

@SoudarapuN 

in that case you can provide Table API detail to them to insert ( not recommended ideally)

OR

create a scripted REST API and share the endpoint and ask them to send JSON body in POST method and in your scripted REST API write GlideRecord code to insert into your instance.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader