Skip to main content

Import Macro

A macro that has been exported from the Dataprep by Trifacta platform can be imported back into the product.

A macro is a reusable set of steps that are specified from within a recipe. For more information, see Overview of Macros.

Limitations

Warning

You cannot import macros that were exported from a later release of the product.

  • You cannot modify the macro definition JSON file outside of Dataprep by Trifacta platform.

Import

Tip

If you re-import a macro into the same instance that still contains the source macro, the imported version is named the same as the source and automatically versioned for you.

Steps:

  1. Export the macro from the source system. See Export Macro.

  2. Login to the import system, if needed.

  3. In the left nav bar, click Library for Data.

  4. In the Library for Data page, click Macros.

  5. In the Macros page, click Import Macro.

  6. Select the JSON file containing the exported macro.

    Tip

    You can import multiple macros at the same time. Select each JSON file in the dialog box that you wish to import. Press CTRL/COMMAND + click or SHIFT + click to select multiple macros for import.

  7. Click Open.

The macro is imported and available in the Macros page.

Import via API

If you have exported your macro using the APIs, you can import it into a new environment. For more information, see

Dataprep by Trifacta: API Reference docs