I have a small problem with visual flow. I try to execute callout in flow through
@InvocableMethod but before this callout, I do update a record(standard update action in Visual flow not in apex code(update)), and I got issues:
"You have uncommitted work pending. Please commit or rollback before calling out"
Yes I know that I can not execute DML before callout but I try to perform my DML(update) in subflow and then execute callout and I got issues too and when trying callout transfer to subflow I got issues too.
- Can you explain why?
- Flow and subflow is it different transaction?