Hello, thanks for the answer
Unfortunately, it seems that I had a concept error. I thought that I was supposed to be able to get the value of the SKUNumber
already resolved when the server code was hit. Is there ANY way to do such a thing just using macros? (get the resolved value of the macro on the server code, that is passed as a parameter)
To get pass this issue, I ended up using macro methods instead, and got it to work like this:
MacroMethod isSupplier = new MacroMethod("IsSupplier", IsSupplier)
{
Comment = "Checks the supplier of the product against the provided Supplier ID.",
Type = typeof(bool),
MinimumParameters = 1
};
isSupplier.AddParameter("SKUID", typeof(int), "The item Skunumber.");
MacroMethods.RegisterMethod(isSupplier);
And then on the actual transformation I used
{%IsSupplier(SKUID)%}
(Just in case someone has the same predicament as I did).
Thanks!