Trigger an event from Approval Group activity on workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 09:22 AM - edited 03-22-2023 09:36 AM
Hi all.
I need to trigger a notification once my workflow reaches one "Approval Group" activity. It's a custom notification because I have many other activities in same workflow which need other custom notifications as well.
I've been investigating, and I'm wondering; can I use in this script the gs.eventQueue function to trigger the custom approval notification? If so, how should I write the script? (I've never used gs.eventQueue before and I'm not sure how it works nor how I should write the script)
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 09:46 AM
Please find this Link having same requirements.
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 12:53 PM
Hi Prince_Arora.
Thank you for the information. I've created and set the event on the approval notification, but it's not triggering the email. I've added this on the Approval - Group activity on my workflow but it's not working.
gs.eventQueue('approval.salesforce',current,current.number,gs.getUserName());
approval.salesforce is the name of the event.
Can you please help? Thank you in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 03:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 05:12 AM
Hello!
Yes, this is the When to send:
(I have to cover up my company's name but it's the same name as the event I created)
And who will receive: