You need to sign in to do that
Don't have an account?
Anjuna
How to create external object from flow?
We tried to create record for an external object using "Create Object" in flow. But we are getting an error -You have uncommitted work pending. Please commit or rollback before calling out.
Can anyone help us resolve the same?
Can anyone help us resolve the same?
As the error suggests, Callouts are not allowed when there is an uncommitted transaction pending.You need to make callout in a separate context.
See https://help.salesforce.com/s/articleView?id=000328873&type=1 and
https://trailblazer.salesforce.com/issues_view?id=a1p3A000000jkyuQAA&title=you-have-uncommitted-work-pending-please-commit-or-rollback-before-calling-out-is-thrown-when-invoking-database-updateimmediate
If this information helps, please mark the answer as best. Thank you