- 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-08-2023 06:12 AM
The issue got fixed, it was an issue with cross scope permissions.