to auto populate the catalog item form directly from its respective RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 03:05 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 03:20 AM
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?
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 03:54 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 08:05 AM
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.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 03:57 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader