In ForAll we are in a record context, but what if we want the entire record? I would suggest that "ThisItem" or some other identifier for the entire record. It's very inconvenient and change-intolerant having to reference each field specifically when I want to patch every record in one collection to another.
ForAll( Collection, Patch(DataSource, DataSourceRecord, ThisItem) ) vs.
ForAll( Collection, Patch(DataSource,
I mainly want to use this to sync an offline collection with a sharepoint list. The collections have exactly the same structure. The behavior *could* include matching records by ID when no "DataSourceRecord" is specified (and generate IDs for new records created with Defaults(DataSource)), but even without that this would be so much cleaner.
Another syntax (with automatic ID-matching) for collections of identical structure might be:
Or specify a match method (with Collection names to avoid naming collisions):