Attachments are not getting added for the first time.

pakalanikhi
Tera Contributor

Hi,

I have a requirement that for an existing sctask(Intake task), a new sctask(Req task) should be looped, so that end user can loop among the Intake and Req tasks until if he selected "no" for Req task. Here when we selected yes for Req task and close the Intake task, we have to copy Intake task's attachments to Req task, and vice versa.

So, I wrote below BR, it was working fine but not for the first time(first loop). From second loop attachments are getting updated.

pakalanikhi_0-1734378822045.png

 

pakalanikhi_0-1734379116778.png

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@pakalanikhi 

did you check what came in the value for short description and the need_req_task field value?

if the IF condition doesn't match it won't go inside and won't copy

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