Pass parameters to Execute Macro

I am trying to use Execute Macro activity. I need to pass 2 parameters.One String and other Int. I read the documentation for the activity and it says,

Macro Parameters - Enables you to pass parameters when executing the macro. This field supports only IEnumerable variables.

I created a variable of this type. How should I add values to the 2 parameters?


Hi @Asiri!

Ditch the IEnumerable type and use whatever data types your macro takes as inputs. I’ll send you a workflow in an hour or two I’m afk.


That will be helpful. Thanks!
The MacroParameters property in Execute Macro only accepts IEnumerable type

Hi @Asiri
hope you are doing well
–so if we are trying to pass variables in the parameters it can be done like this
{“”+exampleVariable+“”} in the MACROS PARAMETER Property
–if we are trying to values in the parameters in the property then like this
as per your scenario

and in the MACRO we need to mention the receiving argument with @ symbol before to the argument name like this

for more details on this

hope this would help you
kindly try this and let know for any queries or clarification

Cheers @Asiri

Here is a detailed article on that :slight_smile:

Sharath Raju

revisiting this.

how would you add another variable to the existing one please?

this works well to have one variable

{“”+exampleVariable+“”} in the MACROS PARAMETER Property but i need to add another, var_RGB.