I started with this brand new workflow and hope to accomplish the very minimum requirement and add more once the basic is confirmed working.
Let's say this is the very minimum requirement : There could be multiple edits on the PO, but as long as the PO total is below $10, the Approve button will appear, and once the button is clicked, the PO will be approved. When the PO is edited again, it starts all over again, and shows pending approval.
Since we wanna have the workflow run every time the PO is edited, and checks the amount whether it's above $10 or under, I feel the workflow Event Definition should be On Create and On View or Update as in picture 1, but I could be wrong, and I wasn't so sure about the Trigger Type either.
The Approve button does appear / disappear as expected (when it's below $10 or above $10). When I click Approve, it seems it goes to Approved state, and immediately goes to Submit state again as in picture 2, which is not good.
And if I add the below condition to the workflow, and change trigger type and select Create and Edit for event types.
PO can be approved, but it doesn't go back to the beginning of the workflow once I edit the PO again. Probably because the system sees the PO is already approved, and doesn't go through the workflow again.
So I'm confused. As long as we can accomplish the very basic requirement, I can follow your instruction and rebuild this. Thank you for your insights!!!
1.
2.