If requested for is group manager then the RITM should auto approve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-27-2025 05:04 AM
There is a group variable in Catalog form,If requested for is group manager of the selected group then the RITM should auto approve else it should go to requested for manager

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-27-2025 07:46 AM
Sounds like you just need to do an if to check if the requested for is equal to the current.variables.[your variable name].manager.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-27-2025 07:52 AM - edited ā05-27-2025 07:53 AM
Hi @srikanthr066535 ,
Put "If" flow logic and set condition like this.
When condition met, don't put "ask for approval" action and proceed next action.
This is not "auto approve" you mentioned but you can skip approval step.
*u_group is a variavle which references Group table.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-29-2025 05:07 AM
Want to use workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-29-2025 08:46 AM - edited ā05-29-2025 08:46 AM
You would just use an If in workflow with code like this. You should really think about transitioning to flow as I'm sure workflow will eventually be not supported.
answer = ifScript();
function ifScript() {
var reqForMgr = current.request.requested_for.manager;
var openedBy = current.request.opened_by;
if (reqForMgr == openedBy) {
return 'yes';
}
return 'no';
}