Flow Designer Approvals and Logic Issue

Russell Park
Mega Guru

I am trying to automate adding ITIL users to assignment groups from a catalog item.  Recently Chuck put out a video touching on this but I am trying to add additional logic and having some issues.  I would like that if the requester is not the groups manager then it should go to the groups manager for approval.  If the requester is the groups manager is should automatically approve, add the person to the group and close the ticket. 

Currently the only part working is when someone who is not the groups manager opens the ticket it works and process the request as I would like.  If the groups manager opens the ticket it gets stuck like its not the manager.  See screen shot where it gets stuck even when the manager of the group opens it.  I am very new to flow designer and figured this would be a good first start but is more difficult then i anticipated.  Im sure it will make sense once I get one flow working!

Thanks for any help you can provide!

Russell

 UPDATE.....

 

I modified the flow a little bit and in the new screenshot i added you can see that the 2 sys_ids for requested for and groups manager are equal but the flow logic still shows false.  What am I doing wrong?

1 ACCEPTED SOLUTION

Have you tried running the script as system instead of the user who initiated the flow?

View solution in original post

4 REPLIES 4

Chuck Tomasi
Tera Patron

How about a log statement after the If statement to verify the values of requested_for and group.manager? Something is odd here that the FD operational view is telling you that the values match.

Russell Park
Mega Guru

I was finally able to get past this issues with using 

Group.Manager.Name CONTAINS Requested_for.name

That condition evaluated correctly (true/false) and proceeds forward.

I did a lot of testing and moved into TEST to test more before committing to prod.  Now I am seeing an issues when a groups manager open a new request to add someone to the group it errors out at the subflow.  If I, as an admin open a request on a group I am a manager of it completes through the subflow correctly.  Seems permissions related.

Any ideas on this one?  Check out the screen shot of error.

Thank you!

 

Have you tried running the script as system instead of the user who initiated the flow?

I did try that and it eventually started working!  Thanks