Add variable condition to approval email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 11:10 PM
Hi All,
I have a requirement wherein to fire approval notification if a certain requested item variable is selected. Can anyone advise if they already had a experience on this and help please? Much appreciated.
I have a variable for country list and if value is India then fire the approval notification. Variable is under a variable set.
Catalog Name: Promotion / Salary Adjustment / Business Unit Transfer PAF
Variable name:
Event:
Notification:
Here's the script I created so far and notification is using a event but it is not firing as expected.
- Labels:
-
scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 12:45 AM - edited 02-27-2024 12:46 AM
Hi @manueleriklego
The notification table should be sc_req_item and in the condition builder you can select the condition like
variables > your catalog item name > select variable > is > India
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 01:00 AM
Thank you Gaurav but I am trying to send an approval notification. Please correct me if there's something I'm missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 01:07 AM
@manueleriklego
Oh my bad, so there is no need to add a condition over here.
Where you are triggering the event? Use the gs.eventQueue('event_name',current);