I am currently working on a BPM on SaleOrder and I need the BPM to fire only when the OrderDate >= Oct 1, 2021. I tried using the BPM widgets saying if OrderHed.OrderDate of the added row is more or equal to BpmFunc.Date(2021,10 ,1 ) but is not working.
Does The BPM not compile, provide and error, or simple not seem to do what you want?
Try using something other than the “Added Row” (Changed or Updated ??). Because i think the OrderDate of the added row would always be today’s date. Only after it exists can you change it. And then at that point you’re not “adding” it.
There are no errors, it’s just not doing anything.
I did try to change it to updated or changed and even All rows but still not doing anything. I agree with the OrderDate is always set to today’s date, I also tried adding if OrderHed.OrderDate has changed from any to other but it’s just not doing anything
Have you run a trace to see which BO methods are called, and in what order?
I think there’s a method for changing the date (might only apply to need by or shipby date changes). But if some other method changes the date before Update is called, then the date won’t be changed during the update. Update might not even be called if another method alreaded updated OrderHed.
And I think there’s a MasterUpdate (or UpdateMaster) method that might be called instead.
Not sure if it’s an option, but do you need it to only run if that date is changed or with any change if the date is >= October 1, 2021? Could you possibly write the conditional for the date based on its value and not whether the value has changed?