which ATF test "step" to copy the incident ID displayed in the portal after submitting the form

yasserbouat
Tera Guru

Hello,

In ATF module, I created a test to test the record producer "Create incident" available on the PDI : 
And of course I created a step to impersonate an itil user, a step to access the Record Producer, another step to fill the fields, and another step to submit the record producer : 

yasserbouat_0-1747169463423.png


Now, after submitting the RP : the incident is created and it is displayed with an ID on the portal : and I want to create a step that retrives this ID : for exp : INC0010006 : but I didn't know which step can do that ! does please someone know which step allows to get the ID displayed in the portal ?

yasserbouat_1-1747169646569.png

 




1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @yasserbouat 
I don't think you can query the record using the number. Instead, you can use the document_id from the 'Submit Record Producer (SP)' step.

 

JSiva_0-1747191548827.png

Regards,

Siva

View solution in original post

2 REPLIES 2

J Siva
Tera Sage

Hi @yasserbouat 
I don't think you can query the record using the number. Instead, you can use the document_id from the 'Submit Record Producer (SP)' step.

 

JSiva_0-1747191548827.png

Regards,

Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@yasserbouat 

why you wish to get the INC?

When you submit the record producer you already know the sysId of the target record

You can simply open that record with the output from previous step

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