- 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-26-2025 12:36 AM
As I mentioned in my question, the issue is that only one attachment is being copied instead of all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 12:41 AM
in your flow execution it shows Run time value for Source Attachment record as empty
If it's working for 1 record then it should work for 2nd as well.
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-26-2025 12:46 AM
@Ankur Bawiskar Thanks for your response, but that's exactly the issue, I am unable to reproduce it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 12:50 AM
Did you test it with different SC Task and RITMs?
Subflow is running as System user?
what's the input type for ritm? Is it reference to RITM table?
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-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