Trigger an event from Approval Group activity on workflow

Magali Legaspi
Tera Contributor

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.

 

MagaliLegaspi_0-1679503002885.png

 

 

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!

8 REPLIES 8

Prince Arora
Tera Sage
Tera Sage

@Magali Legaspi ,

 

Please find this Link having same requirements.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

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

@Magali Legaspi ,

 

Can you show your notification condition and whom to send?

Hello!

 

Yes, this is the When to send:

 

MagaliLegaspi_0-1679573444870.png

(I have to cover up my company's name but it's the same name as the event I created)

 

And who will receive:

MagaliLegaspi_1-1679573489335.png