Trigger Event Based on Email

Akash Singh2
Tera Contributor

Hello All,

 

How can be event  triggered to create incident based on email received.

Condition is like if email subject contains keywords as DOWN, trigger event to create incident but if within 30 mins email subject comes as UP, restrict event triggering to create incident.

 

@Ankur Please provide any suggestions.

 

Thanks

Akash

 

5 REPLIES 5

umaaggarwal
Giga Guru
Giga Guru

Hi Akash, 

 

Did you try creating  Scheduled event in Email inbound action or flow? 

What you can try is 

When the email is received, trigger scheduled event using function gs.eventQueueScheduled() - Please note this will take time of execution as an extra parameter which can be set as 30 mins from now

 

Once event is triggered , check if there is any other email with required subject is received or not , if not then create incident using script action or flow if it is received do nothing.

 

Please let me know if this helped. If yes, please mark it correct and helpful

Thanks!

Uma

Hi Uma, Thank you for suggestion. i am new to Event.

can you please elaborate. If i trigger scheduled event in inbound action, will it run for every condition with matching subject?

where can i check email subject post 30 mins?

 

Thanks

bsiva4567
Tera Contributor

You can create a new flow with the trigger as inbound email, you can configure the conditions with subject and use the create record action to create the incident

Ankur Bawiskar
Tera Patron
Tera Patron

@Akash Singh2 

you can use inbound action for this.

what did you start with and where are you stuck?

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