Importing and Exporting Macros

Last published at: December 2nd, 2024
Delete

Importing and Exporting Macros is available for Premium and PDM licenses.

Import and export DAP Macros to seamlessly transfer Macros‍ within or between Salesforce Orgs, or to add preconfigured Macros to your Org from the Macro Library

Exported macros are saved as a file, which can then be shared or stored for later use. Import macros into your Action Library from a previously exported file, or from a file downloaded from the Macro Library.

Exporting a Macro

To export a Macro:

  1. Go to DAP Setup > Action Library.
  2. At the Macro you want to export, click Edit.
  3. At the top of the macro settings, click Export Macro   .

The macro is exported as a .json file, with the macro name included in the file title. Find it in the regular spot for your browser downloads.
Store the file as a backup of your macro, or import it into another org, e.g. from Sandbox into Production.

Delete

Only Macros are available for export; the default DAP Actions cannot be exported.

Importing a Macro

To import a Macro:

  1. Go to DAP Setup > Action Library.
  2. At top right, click Import Macro  .  
  3. In the Import Macro window, click Upload File  or drag and drop a file into the file box.
  4. Review the macro details and click Import .
    The Macro appears in the Action Library between the other actions and macros.
  5. Assign the macro to profiles and users and enable the macro for the different DAP processes.
  6. If needed, edit the macro. In particular with predefined macros downloaded from the Macro Library, you might want to make some small changes to make the macro action fit your processes.
  7. Make sure that the objects and fields used in the macro are present in the target Org, if you exported the macro from a different Org.

The imported Macro is now available for use in the Action Launcher, in once-only or scheduled jobs, and other places where you can use Actions and Macros.
Read more about using Macros‍ and The Action Library‍.

Delete

Overwrite Existing Macros

If the macro you want to import is already present in your library (meaning it has the same Macro API Name), you will see a notification. Click Overwrite  if you still want to import the macro; the existing macro will be overwritten.

Delete

Macro Limits

Like macros you created yourself, imported macros count toward the macro limit of your license‍.
The Premium license allows for the creation of 20 Macros, and with PDM you can create slightly more. Note however that there is a size limit of 4MB for all Macros combined.