- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2023 10:58 PM
I have built a flow designer that copies all the attachments from RITM to task.
The catalog item and workflow belongs to a custom scope, I am using the below following three steps to copy attachment:
- Look up RITM attachment record in sys_attachment table, to fetch list of sys ID's.
- Running a for each loop on above action to fetch the comma separated sys IDs one at a time.
- Using Copy Attachment action to copy attachment from source to target record, which is task.
I understand that its not an issue with this logic because I am able to make it work in Dev instance. When I promoted it to TEST instance for UAT, its causing issues there, by throwing the error as :
Error: undefined is not a function.,Detail: undefined is not a function.
Initially there was a cross scope issue, where read privilege was missing for sys_attachment table. I later provided that, but its still not working in Test.
Troubleshooting done:
- Inactive and re-active the flow in test.
- Recapturing and pushing the update set back from Dev to Test after providing Cross scope Read privilege in Test.
- Creating a flow from scratch in Test just to test if it works with the new flow.
Nothings seems to be working, kindly help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 12:10 AM
you are saying it's working in dev but not in test. Did you check everything got captured and migrated to test?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 06:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2023 11:02 PM
Hi ,
Can you please specify in the Copy Attachment Action how are you filling the Source Attachment Record, is it via dropdown, Script or data pill. If via script please show the script
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 12:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 12:10 AM
you are saying it's working in dev but not in test. Did you check everything got captured and migrated to test?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 12:47 AM
Yes @Ankur Bawiskar , I believe everything is captured. But I have also tried to recapture the the flow changes from and committed to TEST just to ensure i didnt miss anything