The CreatorCon Call for Content is officially open! Get started here.

How to access Variables on case form when i'm writing a Record producer on Case Table

Balaraju K B
Tera Expert

Hi Team,

I created a Record Producer on case table but i want to set Assignment Group on case form based on one Drop-down Variable in the Record Producer.

So i'm writing a Assignment Rule on Case table I'm Populating Record Producer name in Short Description Field of case form and this short Description field i'm using in Assignment Rule Condition i.e, Short Description contains 'Record Producer Name'

How to access Record Producer Variable from Case Form?

@Ankur Bawiskar Can i access variables on case form?

 

Thank You,

Balaraju K B

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Sample record producer script

if(producer.variables.<variableName> == 'value1'){

current.assignment_group = 'group sys_id1';

}

if(producer.variables.<variableName> == 'value1'){

 current.assignment_group = 'group sys_id2';

}

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you cannot use variables in the Assignment rule condition.

you can try for script in the assignment rule

OR

set the group from record producer script itself

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Sample record producer script

if(producer.variables.<variableName> == 'value1'){

current.assignment_group = 'group sys_id1';

}

if(producer.variables.<variableName> == 'value1'){

 current.assignment_group = 'group sys_id2';

}

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Balaraju K B 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Balaraju K B 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader