This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
How to Ensure Macros are inserted with Relative Paths
Designer will reference the macro location (macro path) differently depending on the way in which the macro is inserted onto the Canvas. This can be important when you have a mapped drive that references macros, and especially when you want to promote workflows to different environments (Dev > Production) without needing to manually change the workflow.
The macro will insert itself as relative in these cases:
Drag and drop from the Tool Palette.
Right-click > Insert > select the name of the folder (same as in Tool Palette) > select the Macro
Right-click > Insert > Macro > Browse... > navigate to the path (referenced as a UNC/Network path) and select the Macro file
These are the conditions in which it will NOT insert the path as relative, and therefore will fail in the higher environment:
Right-click > Insert > Macro > click the Macro directly (this option is only available when the macro was recently saved, as it only displays the most recently modified macro)
Right-click > Insert > Macro > Browse... > select the macro from a mapped drive (C:\users\etc)