I'm running into a confusing problem. I've created a flow that automatically updates fields on the child "OrderItem" records underneath a Product2 record.
I run into an apex CPU time limit exceeded error. Okay, so I start reviewing the debug logs. What I find is that somehow, they flow I've created is somehow causing "Order" records to get evaluated with their workflow rules -- we have a lot of rules there, so that times it out.
So I'm trying to find what's causing "Order" records to be evaluated. Problem is, the new flow I've created on "OrderItem" only handles brand-new created fields. (I know that rules without narrow criteria would lead to this issue, but I've already looked through all the rules in debug log and don't see anymore candidates.)
My question is, does updating "OrderItem" records somehow automatically cause "Orders" above them to re-evaluated for workflows? That would be an odd quirk but Salesforce does have quirks.
Otherwise, how can I diagnose how this is happening? I've looked thoroughly and don't see any Workflow Rules, Process Builders, Flows, or Apex Triggers in the debug log that contain DMLs in them on "Order" records -- which, I would expect to find at least one that does, leading to the Order workflows to get evaluated -- but I don't find any.
Note, ultimately this process does cause a rollup field on a custom object looking up to "Order".
If it would help, let me know if you'd like me to attach the debug log for this problem.