Attachments are not getting added for the first time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 11:56 AM - edited ‎12-16-2024 11:58 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 11:32 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader