Task need to be generated if no approver details present in the table

suuriya
Tera Contributor

Hi Community,

 

I have a requirement, there is table (approver table) and in that table 2 fields environment name and approver....in workflow if there is no approver/missing/approver is inactive for any of the record in the table then task need to be generated to x team....how can we achieve this

Can you let me know how to check if approver is present in the table or not 

Thanks in advance

11 REPLIES 11

Mark Manders
Mega Patron

Are you using a workflow, or a flow? It would be an easy thing to do in the flow: just lookup the table and validate, before creating the approval itself. You can just create a task from there (look up records where approver is missing or inactive -> if success -> create task -> else -> create approval). Or the other way around of course.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

HI @Mark Manders ,

 

I need this in workflow and not in flow designer....can you please let me know how we can achieve this in workflow

You can put a script step in your workflow, validating first on your users, before it goes further and then create a task if no users are found. But that will be the end of your workflow, since you can't proceed without valid approvers?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @suuriya 

 

You need to check like

 

You can get the catalog variables via Action and then check

If Variable.Value is empty or value= caller and caller. active = False

 

Then

Create Task.

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************