- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 10:53 PM
Hi Team,
I’m facing an issue where I am unable to copy all attachments from a task to the corresponding RITM using Flow Designer.
I have two inputs:
RITM (referencing the sc_req_item table)
SC_Task (referencing the sc_task table)
My approach:
I look up records in the sys_attachment table using a filter to find attachments related to the sc_task.
I use a For Each loop to iterate through the retrieved attachments.
Within the loop, I call the Copy Attachment action.
Issue:
Only one attachment is getting copied instead of all.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 12:57 AM
I just tested and it worked fine for me
I am passing task sysId and RITM GlideRecord object as input to subflow
Check this
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 11:04 PM
Would you mind closing your earlier questions by marking appropriate response as correct?
Members have invested their time and efforts in helping you.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 11:06 PM
how many times the For each is running?
share the flow execution details
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 11:30 PM
The loop runs twice since there are two attachments, but when viewing "1 of 2" and trying to toggle to "2 of 2," it doesn't work, only the first page is displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 11:32 PM
ideally only 1st and last page in For each iteration is shown.
Let the display not happen but did 2 files get copied to target record?
If yes then you are good
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