How to create a scripted rest api to create change request

AJay72
Giga Contributor

I am raising a change request using scripted rest api which raises change whoever it does not put configuration item, which is always blank. Please help me with script

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @AJay72 

 

CI is reference field, is the same name exits? Share somescreen shot.

*************************************************************************************************************
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]

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

subin p s
Tera Contributor

Hi ,

 

Can you check that CI field is providing sys_id only ?

 

Regards,

Subin

Ankur Bawiskar
Tera Patron
Tera Patron

@AJay72 

how are you providing the CI?

are you giving the CI sysId or display value?

share the scripted REST API script and the sample request

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