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.

approval group assignment on RITM in request workflow

Community Alums
Not applicable

How can I configure a request workflow to include an approval that checks the Opened by user location, and assigns the approval to a specific assignment group for that users location???

7 REPLIES 7

Brian Lancaster
Kilo Patron

Are you using workflow or flow?

Community Alums
Not applicable

I am using workflow.

Something like this should work. This would be the code that appears in approval step when you click advanced.

answer = []
answer.push(current.opened_by.location.approval_group); //this is me guessing that the group is in the location table. You will have to update this to meet your field names.

Note that if the group/location mapping is in a separate table let me know the table name and how it refers back to location.

Pratiksha Lang1
Kilo Sage

@Community Alums How many locations do you have?

Do you have location and group mapping in any table?