ATF 'Validate Outbound Email' and document ID

Michal_Ziemba
Tera Contributor

I made an ATF test where I submit the incident with a Record Producer and use the 'Validate Outbound Email Generated by Notification' test to see if the notification has been sent to the user. As a Source Notification I take document_id submitted from the Record Producer. Even I set the 3 minutes timeout the test is failing.

As an alternative, I used the 'Validate Outbound Email' test, filtered out its creation on or after a minute ago and wanted to check the Subject or body if it contains the incident number, but cannot use the  document_id submitted from the Record Producer from previous steps - it is greyed out. 

Have you had this test working in your environment?

BR
Michal

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Michal,

the outbound email step times out after two minutes by default. so on sys_email table the field which stores the target record's sys_is id Instance which is document ID

can you try to use one more step of open existing record and open the record with sys_id of the submitted record producer

now in the outbound email try to use the output of the Open existing record as input

Note: I am able to select the Output of Record Producer

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Michal,

the outbound email step times out after two minutes by default. so on sys_email table the field which stores the target record's sys_is id Instance which is document ID

can you try to use one more step of open existing record and open the record with sys_id of the submitted record producer

now in the outbound email try to use the output of the Open existing record as input

Note: I am able to select the Output of Record Producer

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Michal_Ziemba
Tera Contributor

Hi Ankur, 

I cannot use the output from the 'Open an existing record' step. 

I can see in you screenshot you used a target field. It worked for me as well. 

Thank you

Michal

Hi,

I am glad to hear your goal has been achieved.
Saying this, I will appreciate if you close this thread, as answered.
Have a great rest of the day

Regards
Ankur

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

Hi,

Let me know if that answered your question.

If so, please mark my response as correct & 👍 helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Regards
Ankur

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