Getting Error: undefined is not a function.,when utilizing the Copy Attachment Action in flow design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 01:24 PM
I am trying to add an attachment to emails being sent out via a workflow. I have located the attachment record and placed it as the source record and have the email record pill as the target record. upon testing, I am getting the error
Error: undefined is not a function., Detail: undefined is not a function.
Not sure what the potential error is here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 05:33 AM
Same problem here!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
In case anyone comes across this problem, as I did, if your Flow is running in a Scoped App, you may need to set up Cross-Scope Application Access for a couple APIs used by the OOTB Copy Attachment flow action. For me I needed to add two, with the following settings:
- Source Scope: [Your App Scope]
- Target Scope: Global
- Target Type: Script Include
- Target Name:
- 1. AttachmentActionsUtil
- 2. AttachmentActionErrorHandler
- Operation: Execute API
- Status: Allowed

