We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Assignment Rule script based on variables of record producer

Bird1
Mega Sage

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");

11 REPLIES 11

Hello,

 

If my answer helped you can you also mark it as correct.

 

Thanks.

Not applicable

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