I am looking to use application studio to convert a BPM to application studio
The BPM does a salesorder.update and when saving it checks if the shipby date is in a weekend or not. using the following very basic code in the Method directive:
dsOrderRelRow.ReqDate.HasValue &&
(dsOrderRelRow.ReqDate.Value.DayOfWeek == DayOfWeek.Saturday ||
dsOrderRelRow.ReqDate.Value.DayOfWeek == DayOfWeek.Sunday)
or alternatively as used in a datadirective:
ttOrderRelRow.ReqDate.HasValue &&
(ttOrderRelRow.ReqDate.Value.DayOfWeek == DayOfWeek.Saturday ||
ttOrderRelRow.ReqDate.Value.DayOfWeek == DayOfWeek.Sunday)
I now want to use the condition widget in Application studio to basically do the same, but I struggle to fill the expression of the condition with the correct syntax.
The actions and hooks are clear to me in application studio, I know which events I want to use (not when saving this time, but after a field changes, before saving)
Anyone able to help convert this?