How to map catalog form variable (Group table) to SC task Assignment group field using business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 01:23 AM
Hi
How to map catalog form variable (Group table data type refernce) to SC task Assignment group field using business rule ?
BR rules: Before insert
I tried this one (current.assignment_group = current.variables.group.sys_id) But no luck and BR is triggering but by the logs I found that current.variables.group.sys_id is giving the undefined value any reason for this one ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 02:10 AM
Hi @raj99918
Try
current.assignment_group = current.variables.group
Thanks
Esh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 02:17 AM
Hi @raj99918 ,
if your using the flow or this catalog you can data pill information easily.
can you try below script after insert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 02:17 AM
If the variable is not included in the task, or due to timing, you can get it from the RITM record
current.assignment_group=current.request_item.variables.group;
or 'parent' in place of 'request_item' if that field is populated with the RITM instead on your sc_task records.