Unable to trigger event from Flow designer

Divya13
Tera Contributor

Hi All,

Currently i'm building custom app. I have created custom Action in flow designer to trigger event that will eventually expected to trigger notification. 

Divya13_0-1700142616111.png

 

Event created and Processed:

 

Divya13_0-1700143358482.png

 

 

 

 

Followed this post to create custom action.

https://www.servicenow.com/community/now-platform-articles/fire-an-event-via-flow-custom-action-guid...

 

 

I am using the following API gs.eventQueue() to create event and passing below details:

Current Record,

Param 1- requested for email(tried sending sysid, email, name, userid)

Param2 -empty.

 

Flow is getting executed and event is also getting created. Event status gets changed to processed but mail is not triggered.

 

I have verified on the notification template where who will receive Param1 is also checked.

 

Any suggestion/help on this?

1 ACCEPTED SOLUTION

@Divya13 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Divya13 

things to check

1) the user to whom email is being sent is active and not locked out

2) that user has notification preference enabled on user profile

check these links for troubleshooting

Email Notification was not triggered to users even after the event got processed 

Troubleshooting email notification failures in ServiceNow 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

Appreciate your swift response and suggestion. It helped me to debug.

Also I found the issue and got it fixed.  I had not enabled the send to creator check box and hence was not sending email to me. Otherwise I found that same code was working for other users. 

 

Now I checked that box and it is working fine for everyone now.

 

Once again thanks for your help. 

@Divya13 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader