Assignment Rule script based on variables of record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 07:48 PM
Hello,
I need help. I am trying to write an assignment rule script based on variables of record producer undre table (sn_sm_legal_request).
I tried with below script but failed (nothing happen). Can anyone advise?
var entity = producer.variables.align_entity_of_chop_applicant.
if (entity == 'abc')
current.assignment_group.setDisplayValue("Commercial Legal");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 12:37 AM
Hello,
If my answer helped you can you also mark it as correct.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 01:37 AM
Hi @Bird1 ,
If i understood it correct.you need to assign the group once the record is created in sn_sm_legal_request table based on variable selected.
You can try this:
Create a assignment rule for this table.(check for the order.keep it low from the other working rules).
In Script :
if (current.variables.align_entity_of_chop_applicant== "abc"){
current.assignment_group="<SYS_ID of group>";
}
Thanks,
Sanket