Flow designer script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2025 02:39 AM
HI Team ,
I need to write the script in the flow designer could you please help me :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2025 04:40 AM
Hi @Community Alums ,
this char will help you
aslo refer this scripts:
// Get the 'Requested by' user from the trigger (assuming trigger is a record)
var requestedBy = fd_data.trigger.current.requested_by.sys_id.toString();
// Define owner sys_ids (can also be retrieved dynamically from a group)
var owners = [
'sys_id_of_owner1',
'sys_id_of_owner2',
'sys_id_of_owner3'
];
// Check if requestedBy is one of the owners
if (owners.includes(requestedBy)) {
// Skip approval
answer = false;
} else {
// Trigger approval
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2025 04:41 AM
You don't have to script. Do a look up to the owner group and then a lookup to the group members where the requested by is the user. If that returns an error, you ask for approval. If not, you skip it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2025 05:08 AM
@Community Alums
is Requested by a variable on form?
what do you mean by Owner?
share some screenshots.