We're looking to include criteria in a workflow to send a Purchase Order back to Pending Approval status if the amount changes by more than $2000.... a dev we previously utilized had criteria similar to this screenshot. Is old.total a valid piece of data? How have other tackled sending a PO back to Pending Approval is the amount changes?
m
MGBC
01/03/2024, 9:50 PM
I think that is referencing the “old record” record in the visual builder but never used it in the formula builder so not sure
Usually I make a custom field on the PO called “last approved amount”. When the PO reaches the approved state I store the total in this last approved amount field
Then you can use that to compare to the current total and make easier calculations and conditions off that field
r
Rich Keller
01/03/2024, 10:53 PM
Thanks for the feedback, that sounds very manageable.
d
Dylan Fields
01/04/2024, 4:00 PM
Yeah, I've done something similar to what MavenCloud said. Though I feel like my solution was probably a lot more (unnecessarily) complex lol.
Dylan Fields
01/04/2024, 4:09 PM
Though, to be fair, my team wanted to have a tolerance built in ie some changes are ok, while other aren't. Also taking into account tax line items vs non-tax line items. Anyway, it works but the construction even confuses me often, and I built it.