I'm new to Alteryx, and I am trying to make it so that there are several optional inputs to a standard macro, and based on which input used to then pull the data known by the user of the macro. Here is a simple example of what I'm trying to accomplish.
The problem is that I get an error when I try to use it.
I assume what I'm doing is not allowed, but I'm not sure what other option I have than to make several macros for each input option may be known by the user of the macro.
Any advice?
@memphis_data
What you need is explained here.
Here is an explanation with an example. I am creating a simple tax calculator macro
Macro:
Even though Tax is optional, if tax is going to be used in a calculation a default value should be set or it will turn to null. I am setting default value as 30 by replacing null with 30.
Workflow
When macro is imported to workflow the optional anchor should be grey in color.
In the above example i passing the optional tax in one and not passing in other.
Hope this helps 🙂
I think issue in your workflow might be.
Since no data is passed for ID its not asking for mapping.
But since you are passing data for Description its asking for mapping.
For an Input anchor to be optional no input connection should go to it.
Hope this helps 🙂
Provide your workflow we will be happy to look into it and fix it🙂