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

How to Automatically Assign Tasks Based on Priority in Flow Designer?

Not applicable

Hi Community 👋,

I'm working on automating task assignment in Flow Designer. I want to assign tasks to different assignment groups based on the priority level (P1 to P4).

Here’s what I’ve done so far:

  • Trigger: Record created in the Incident table

  • Condition: Priority is P1

  • Action: Assign to High Priority Support group

Questions:

  1. How can I make this dynamic for all priority levels?

  2. Should I use a Data Lookup Table or a Script Block inside the Flow?

  3. Is there a best practice for this kind of conditional assignment?

Any suggestions or shared experiences are appreciated 🙏
Thanks in advance!
— Pankaj

3 REPLIES 3

SAI VENKATESH
Kilo Patron

Hi @Community Alums 

 

You can use decision tables in flow designer.

 

Thanks and regards

Sai Venkatesh

YaswanthKurre
Tera Guru

Hi @Community Alums ,

 

Please refer these articles and create a decision table to dynamically route the assignment groups.

 

1.https://www.servicenow.com/community/developer-blog/simplifying-complex-logic-with-decision-tables-i...

2.https://www.servicenow.com/docs/bundle/yokohama-application-development/page/administer/decision-tab...

 

Please mark this as helpful/correct, if this helps you.

 

Thanks,

Yaswanth

 

 

Nishant8
Tera Sage

Hello @Community Alums, If it's about task assignment and no complex logic needs to be written, then you can consider using Assignment Rules (System Policy → Rules → Assignment).

Otherwise, inside Flow Designer, a Decision Table seems to be a better approach, as it avoids multiple if/else or switch statements.

 

Regards,

Nishant