Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

assignment group logic to assign cases to various groups, cases created from record producer

vinnus
Tera Contributor

Triaging

Based on Request Type (Initially)

 

2 REPLIES 2

vinnus
Tera Contributor

Working for till point 2 for below script:

 

var assignmentGroupJSON = gs.getProperty('x_jj_dfit.all.assignment.group');
var assignmentGroup = JSON.parse(assignmentGroupJSON);
if (current.variable_pool.request_type.getDisplayValue() == "Transactional: Status of my Intercompany SO-PO transaction (OHUB only)" ||
current.variable_pool.request_type.getDisplayValue() == "Transactional: Supporting Document Requests" ||
current.variable_pool.request_type.getDisplayValue() == "Transactional: Service Agreement" ||
current.variable_pool.request_type.getDisplayValue() == "Transactional: Queries on Intercompany Policy")
{
current.assignment_group = assignmentGroup.usergroup[7].SMF_GS_A2R_GIC_Transactional;
}
else if (current.variable_pool.request_type.getDisplayValue() == "LR41 Related" ||
current.variable_pool.request_type.getDisplayValue() == "Audit Related")
{
current.assignment_group = assignmentGroup.usergroup[7].SMF_GS_A2R_GIC_LR41_and_Audit;
}
else
{
current.assignment_group = assignmentGroup.usergroup[7].SMF_GS_A2R_GIC_Reporting_Global;
}

 

SN_Learn
Kilo Patron
Kilo Patron

Hi @vinnus ,

 

You have pasted your whole project requirement here. I don't think this is the appropriate use of community.

Please share what you have tried, in which particular area you are facing issues.

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.