Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ATF step - Pull record from record inserted from previous ATF step

Joy _FHLBSF_
Tera Contributor

Hi,

 

I am still new to ATF and I was trying to insert 3 records from our custom SNOW table wherein the variable role requested is being referenced to. I would like to be able to select the newly inserted records to the field screenshot below.

 

Looking forward for some guidance

 

Joy_FHLBSF__0-1763426210766.png

 

6 REPLIES 6

Shaqeel
Mega Sage
Mega Sage

Hi @Joy _FHLBSF_ 

 

You can use Set field value step. and the dot walk to the crated record.

Shaqeel_0-1763439892595.png


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Hi, 

 

Thanks for your response. The problem is there are 3 records and I can't do dot walk to populate that all in the field.

Sardash
Giga Guru

@Joy _FHLBSF_  -

1. Use 'Record Insert' test step. Add three separate steps to insert the records

2. Use the "Set Field Values" test step. In below screenshot you will find e.g. of Caller (Add same 3 fields and give reference of each record inserted here) 

Sardash_0-1763526066461.png

3.  Use 'Field Value Validation' step to to confirm the correct record is selected.

Sardash_1-1763526514147.png

 

-------------------------------------------------------------------------------------------

If my response helped, please mark it by selecting "Accept as Solution" and " Helpful." This action benefits both the

Hi,

 

Thanks for your response. The step here to set value won't work cause I would need to select all 3 records in the role requested field that I have just inserted. The step above only allow 1 record at a time.