If no tasks available, complete workflow

HenryD
Tera Guru

Hello, right now I have an IF activity in my Workflow, basically if the short description within task does not contain a task called "Account Creator", the arrow is pointing to the set values to complete the workflow.

It is working but then it isn't working, its inconsistent, basically what I want to happen is if there are no tasks left to approve then complete the workflow, if there are tasks named account creator then I'm having it go to a wait for condition.

 

Is there a simpler way or better way of doing this? Its working but I'm finding its inconsistent. 

7 REPLIES 7

In screenshot you shared above it show universal request.short description. Can you verify what table your workflow is running against.

im running it against the Requested item table, & im using tasks 

You need to use a script. The request item is the parent table and it does not have access to the child table. The way it was explained to me was parents no nothing about the child but the child knows everything about the parent. So you will need to use the GlideRecord query on the sc_task table passing current.sys_id for the request_item field on the sc_task table.