- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 09:47 AM
Looking for someone to share a working code
current configuration:
1st notification: (dont send this one if it is the group)
2nd notification (send this one if its that group)
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 11:24 AM
So if this will not work
if(!current.group && !current.group.assignment_group && current.group.assignment_group != "ec711d8d1b0921904d480d01cd4bcb11") {
answer = true
} else {
answer = false
}
Then you need to look at it from the perspective of what data do you have.
You know the approval record.
That means you know the requested item.
Which means you know the catalog item.
Since you know the catalog item you know the workflow
Since you know the workflow you know how it decides the group.
Which means you just need to duplicate that decision making process into your script so you can generate the same group and then check that value for the one you would like to avoid.
So if the simple if statement above will not work then your script needs to get a lot more complicated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 11:06 AM
You can do this
if(!current.group && !current.group.assignment_group && current.group.assignment_group != "ec711d8d1b0921904d480d01cd4bcb11") {
answer = true
} else {
answer = false
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 09:57 AM
Hi @Joshua Comeau ,
Apply the condition for assignment group check for decision.
Use the Show Related Fields and navigate to Approval For -> Task Fields for Assignment Group. Make sure RITM must have assignment group setup by workflow.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 10:06 AM
tried it and it did not work hmm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 10:54 AM
condition not met means, RITM associated with approval record doesn't have any assignment group at the time of RITM creation ( insert ).
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution