- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2022 02:48 AM - edited ‎11-03-2022 02:55 AM
I have 3 catalog items, and based on their location of the user who submit. the ritm either need to be assigned to {Group 1} or {Group 2}. How can I write a script/BR for this to work? I know workflows can be used for this too, but I dont have any experience with those, if that is a more efficient way then please let me know.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2022 03:45 AM - edited ‎11-03-2022 03:45 AM
Hi @aimughal
Apologies, I misread the question and the example above is for an INC. for an RITM the code would be
if(current.request.requested_for.location == '[sys_id+of_location]'){
current.assigment_group = '[sys_id_of_group_1]'
} else {
current.assigment_group = '[sys_id_of_group_2]'
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2022 04:41 AM
Thank you so much!!