The CreatorCon Call for Content is officially open! Get started here.

How to trigger the event based email notification from an api ?

Dev Dev1
Tera Contributor

Hi

I have created an email notification, it is triggered when an event is fired. 

 

I need to trigger the event through API. Is there any API available for this?

 

TIA

3 REPLIES 3

Anil Lande
Kilo Patron

Hi,

Can you please explain your use case? 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi Tera

I need to trigger the event from outside of ServiceNow. Due to some reasons our platform team not allowing us to write new business rules. Is there any other alternative way or APIs available to trigger the event other gs.eventqueue method.

 

Hi,

You can use scripted rest API and make a REST call to SrerviceNow from your 3rd party application.

https://docs.servicenow.com/bundle/rome-application-development/page/integrate/custom-web-services/t...

https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/custom-web-services/...

 

you can call gs.eventQueue from your scripted rest API script. Again you need to get approval for the same from your platform team. Or you can ask for alternate solution to your platform team.

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande