The CreatorCon Call for Content is officially open! Get started here.

Skip approval , If requestor is Manager

Naveen87
Tera Guru

Hey Developers,

I'm trying to Automate , Group creation , Role addition to the group , User Addition to the group.

I have created this simple WF.

I wish to add an Approval Activity.

Where, If requestor is Manager then skip the WF. Do the changes and close the task.

If requestor is not Manager then it should wait for an Approval of the Manager.

 

I'm confused how to do this.

Should use "User approval" or "group approval".

What would be the code and how to set Task to closed state.

 

Please suggest & guide.

find_real_file.png

7 REPLIES 7

Assume I'm the requestor. You are my Manager.

So if u raising on my behalf then Approval skip.

If i raise for my self. It will come to you for approval.

 

Anyway this is done.

I tried to fetch the value from Variable "name".

I believe, Below line is comparing the Manager and value from "name" variable


if(current.request.name == approver)

 

 

This worked for me.

find_real_file.png

 

 

My task are in open state. I want to put that on closed state whenever they are created.

Please suggest what code would set the catalog task to closed state.

Which task are you talking about ? share screenshot ?

Please hit like and mark my response as correct if that helps
Regards,
Musab

Here,

find_real_file.png