I have already changed it to be a string:
It doesn’t like passing a date type via the query execution parameter so I changed it to a string. This is what I have in my function, which works when I call it via the Schedule Epicor Function.
dsBAQ.ExecutionParameter[0].ParameterValue = ApplyDate;
It has to be something in the way I am callling it from my custom form code.
