04-06-2021 02:59 AM - edited 06-30-2021 02:06 AM
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.
By default, Macros are packaged with the workflow when you publish the workflow to the Server. This is useful if the macro does not need changes or only exists on your local machine. However, if you are sharing macros with colleagues or need to make edits to the macros, you would not want to include the macro with the workflow, as any changes to the macro will not reflect on the published workflow.
When you add a macro to your workflow, there is a reference to the file location in the Workflow XML. To view this, you can open the workflow in a text editor, or enable viewing the workflow XML in Options > User Settings > Edit User Settings > Advanced > "Display XML in Properties Window". Then, click any blank space on the Canvas and you will have the option available:
When the macro is inserted with a relative path, it will default to looking for the macro in the location where you have configured Macro paths on the server. This is in: Options > User Settings > Edit User Settings > Macros.
The macro will insert itself as relative in these cases:
Example | XML View |
---|---|
Example | XML View |
---|---|
Example | XML View |
---|---|
Example | XML View |
---|---|
Example | XML View |
---|---|
Hi, I have tried all the bottom 3 methods and my macro is still being inserted as a relative not full path. Any help appreciated, not sure why mine is acting differently.
*** EDIT ***
For anyone having a similar issue, the CReW macros I have were installed from on my company server. I Uninstalled then re-Installed them from my local drive, this allowed me to insert the full path using the 3 methods listed above.