- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 05:14 AM
I have created a flow which is getting triggered when Catalog Item has been submitted. In that flow I am creating a Catalog Task after approval is done. I want to attach a file only to that Catalog Task. I am created a new Action for that and using below script in Script Step:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 04:10 AM
Take a normal sc_task and attach something to it manually.
Does the RITM get it too?
Then you've got some other code running counter to your solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 06:27 AM
That shouldn't be OOB behavior so there's two possibilities.
1) It only LOOKS like the attachment is in two places. I've seen lots of people custom related lists to the RITM record to see all attachments for child sc_tasks.
2) Some custom solution is in place that copies attachment from sc_task to RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 06:58 AM
from where are you picking the file?
Is it attached to the catalog item during submission and the same file you want to be copied to catalog task?
You didn't share your flow action is accepting what inputs etc
share some screenshots.
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
04-15-2025 11:13 AM
I am creating a JSON file using JsonBuilderStep and passing the Output of that to the next step as Scripts to attach the file back to the Catalogue:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 11:17 AM
I have created a Action where JsonBuilder Step is creating the JSON file and then same is getting passed to next Script step to attach back the same to Catalog Task. Script Used: