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?

Thanks!

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.

2 Likes

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

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

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

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:

Regards,
Sharath Raju