Create Task and assign group base on user's locatio - Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 12:17 AM
Hi All
I am creating the flow for catalog item and in this catalog item a have a variable reference to user table where I choose one user. Task should be created when option 1 is choosen from the second variable and assignment group should be assign base on user's (from variable 1) location, means when user's location is Frankfurt then task should be assigned to Group Frankfurt. I have around 20 groups like this so how can I add for example script to flow?
Currently flow looks like:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 12:26 AM - edited 06-04-2025 12:29 AM
Hi,
The only thing matching these together is the Name.
So the only possible way to do it, is to look up a group record, where the name is equal to your variable name-value.
Not a very robust solution, because group names tend to change every-so-often, but it can be done.
Might be a good option to build a Decision table around this, and set the assigment group based on the outcome of the decision.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 04:18 AM
Hi @Kasia5
For this requirement, you have to use the decision table and call it inside your flow and based on that it will map the correct assignment group based on your user location.
second approach:
Use the business rule to set the assignment group based on user location, just map the location with the group name in the key value pairs inside the script:
check the attached screenshot for the reference:
Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning
Thanks & Regards
Deepak Sharma