BPM Data Directive Invoke BO Method error CS1002 ";expected"

I’m tying to create a data directive that will send an email when MRP finishes successfully. The parameter - taskNumOfDays - I entered ttSysTaskRow.EndedOn BpmFunc.Today(), I receive error CS1002 - ; expected.

Any help would be appreciated.

Can you screenshot what you are seeing? This BPM is very possible so let’s see what you’re trying to do.

That’s not a valid c# expression. And from the parameter name, it sounds like it’s asking for the number of days, not the date.

I think if you use 1 or 2 is OK for what you’re trying to do there - that will get the history for the last 1 or 2 days. Also, systask gets updated a lot so I would add a condition before calling the BO there. Or try to use a method directive if possible.