Skip to content

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

@solo-1234

Description

@solo-1234

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions