Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Getting Error: undefined is not a function.,when utilizing the Copy Attachment Action in flow design

Jramsey
Tera Contributor

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.

2 REPLIES 2

Marco Parolini
Tera Contributor

Same problem here!

Ben Rowny
Tera Guru

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