Hi Candice,
Can you please share a screenshot of the workflow rule?
Regards,
Tamir
I’m trying to write a custom action that adds tasks and creates dependencies based on whether tasks with a certain name exist.
Task name
I would like the action to add a similar group of tasks and utilize one that already exists like so:
Task name
I’ve set this to run on $WorkItems and filter related items using In(TargetObject.Name,"Approval"). If true, a new Dependency object is created. Everything works up to that point, the new tasks are created, the dependency is created between the new sub-tasks, (Produce and Review), but the dependency between the new Review task and the existing Get Approval task isn’t being created.
Please sign in to leave a comment.
Hi Candice,
Can you please share a screenshot of the workflow rule?
Regards,
Tamir
Couldn't get the entire thing on 1 screen, sorry for the multiples.
Hi Candice,
Can you try change the In() function to Contains() ?
Thanks,
Tamir
Perfect! That change and switching the $WorkItem and $Depends on objects has it working now. Thanks!!
Perfect!
Please notice that In() function searches for an exact match and this is the reason it wasn't working.
Regards,
Tamir