- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 11:34 PM
We receive a requirement in Change Request that during creation of CR if the user select SAP-AMK in Subcategory 1 the COE must to auto-populate to SAP.
I created a BR see screenshot
When to run
Actions
When I tried it, it's not working
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 03:09 AM
to see it happen real-time you need to use 2 onChange client scripts 1 on Subcategory1 and 1 for type field
I would recommend using business rule rather than use 2 onChange scripts
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
11-13-2023 09:40 PM
Hi @Vengeful,
Try using on change client script on SubCategory 1 :
Use Field Name as "SubCategory 1" in the above client script
Please mark my answer helpful and correct if you find it useful.
Thanks,
Kavita Bhojane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 02:38 AM
Hi @Vengeful
If creation , then I guess you can use look up way. Like we have assignment lookup.
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
11-10-2023 03:04 AM
Hi @Vengeful ,
Business rules only run on the server side, that means that you'll only get field populated if you save/submit the form 🙂
You could try Atulya suggestion above, or you could create a client script on change for the Field "Subcategory1"
Let me know if you need any help !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 03:09 AM
to see it happen real-time you need to use 2 onChange client scripts 1 on Subcategory1 and 1 for type field
I would recommend using business rule rather than use 2 onChange scripts
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
11-12-2023 05:36 PM
Hi @Ankur Bawiskar I already have a business rule, but's not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 10:58 PM
are you sure BR condition is evaluated to true?
Are you sure no other BR is stopping the update?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader