ATF Trying to get Email Inbound actions to trigger...

flipflorey
Kilo Contributor

I've been trying to trigger off the "Create Incident" Inbound email action inside of the ATF.

I have tried creating a record in the sys_email table. Succesfully creates the record, but doesn't fire off the inbound action.

Is there a way I can trigger it by just running it via the "Run Server Side Script" test step?

5 REPLIES 5

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

I would suggest looking at the "Reprocess Email" UI Action script.   This UI action will allow you to reprocess a received email.   In the script you will notice it creates a "email.read" event so you should try to do the same with your record.


ReprocessMail.PNG



So this is the UI Action. And I have an idea on how to run it, but could you please spell out how I would do it inside of the ATF?



I have been wrestling with this. I just seem to be missing something. Maybe my javascript skills need to be brushed up on.


Hi Flip - I figured out a way to get this to work on ATF in 10 steps. Here's what I did:


Let me know if you have any questions.


Sara


find_real_file.png


HI Sara,

 

Can you help me out with out you have done for individual steps in your test. 

I was able to insert a record and use the click a Ui action step but was not able to create target( for example incident in target field  on the record created in sys_email table).

 

Thank you in advance for all the help. 🙂

John