@johnjohn123
Your collection should always have the same schema as the records that you wish to apply them to - or at least as close a possible.
So, if this is a collection of SharePoint records, then the ID will either have a value (existing) or be Blank() (new).
With that combination, using a formula such as this:
Path(yourDataSource, yourCollection)
will create new records and update existing records.
Note: the above formula implies and exact match to the records.
If the records do not match, then formulas like this will be equivalent:
Patch(yourDataSource,
ForAll(yourCollection,
{ID: ID,
someColumn: someCollectionColumn
}
)
)
I hope this is helpful for you.