Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOQL Datatable Flow Action: Error when updating records in collection #118

Open
solo-1234 opened this issue Feb 22, 2022 · 0 comments
Open

Comments

@solo-1234
Copy link
Contributor

Hi! I have a soql datatable (embedded in flexipage) that passes selected records to a flow action. The flow loops through the selectedRecords, modifies a field on each, adds it to a new collection, and then tries to update the new collection.

In this use case the datatable contains fields from parent (lookup) records. When I try to run the Update Records I get an error:
INVALID_FIELD_FOR_INSERT_UPDATE: Object__c: bad field names on insert/update call: Lookup_field__r

My current workaround is to use apex to requery the selectedRecords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant