to auto populate the catalog item form directly from its respective RITM

Sachin Gavhane
Giga Guru

Query from the customer is :

 

if ritm state changes to "closed cancelled" then there should be ability to resubmit the request.

So, I am planning to give an option to user to auto populate the catalog item form directly from its respective RITM

5 REPLIES 5

AnubhavRitolia
Mega Sage
Mega Sage

 

@Sachin Gavhane  

 

Can you elaborate little more on your requirement?

 

How can you give them option to auto populate? How will you know if the Catalog Item is new or to be created from Cancelled RITM?

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

there can be null or multiple RITMs for that respective catalog item.
so on the form itself, will ask "whether u wanna populate the form from the ritm" , if yes then further will ask for the ritm number and as per the ritm number the form should get auto populated

Hi @Sachin Gavhane 

 

In that case you have to write onChange Catalog Client Script on that Catalog Item for Field which will have the RITM number.

 

Now you have to use GlideAjax to pass your selected RITM number to Script Include and from Script Include you can return variable values in JSON format to Client Script where you can parse JSON and auto populate Variables values from RITM Variables.

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Ankur Bawiskar
Tera Patron
Tera Patron

@Sachin Gavhane 

are you saying new REQ and RITM should get generated once state changes to close cancelled?

If yes then you can use after update BR on RITM table and use CART API
OR

you can use flow to handle this and use Submit Catalog Request action

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