Skip to main content
When a user creates an order, they submit it for approval. Once the order is approved the order is unlocked but the line items cannot be changed. As I understand it, this is a standard Salesforce feature and the line items will always be locked when an order is approved.

 

But we have a situation that if an order meets certain requirements, we would like to split it into separate orders, add products to the new orders, automatically approve the new orders (via a separate approval process), and delete products off of the original order. But only when the original order has been approved.

 

In the approval process I had created a step that would check a box if the order met the specific requirements. This in turn would fire off a process and flow. The process and flow successfully did the above for a few days. Now we get a flow error: Error Occurred: The flow tried to delete these records: null. This error occurred: INSUFFICIENT_ACCESS_OR_READONLY: insufficient access rights on object id.

 

I think it's the approval process now finished locking the line items before the flow can finish. So is there a way to either stall an approval process or unlock product line items after a record has been approved?
1 resposta
0/9000