Skip approval , If requestor is Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 07:18 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 07:53 AM
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.
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 08:54 AM
Which task are you talking about ? share screenshot ?
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 09:03 AM