- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 09:46 PM
I want to copy variables from an RITM (Request Item) to an SCTask (Service Catalog Task) when the SCTask is created using the "New" button in the related list on the RITM form, how to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 06:38 AM
why would someone create catalog task via New button?
They are meant to be created as part of flow or workflow
But if you still require then check this link
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 06:24 AM
Hi @dharam743
you can use the BR for same , I am good in code but this what i can suggest. You need to modify the OOTB new button and the via get and set value you an set the values.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 06:38 AM
why would someone create catalog task via New button?
They are meant to be created as part of flow or workflow
But if you still require then check this link
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 07:35 AM
Thanks @Ankur Bawiskar
You're right that the catalog task should ideally be created using a flow or workflow. However, for one specific scenario, I wanted to handle it differently.
I used the same script in a Before Insert Business Rule, and it's working as expected.
@Michael Jones - Thanks you too, you explained it very well. 🙂