In my app I have a need to patch a collection with data from another collection.
It sort of works, but I know I am missing something and so far have not been successful in figuring it out.
Scenario:
Choice is made in app and collect action populates the collection. If a second choice is made the new data is patched to the collection that was just populated. This isn't the typical repeating table scenario, however.
Multiple items are being populated into the collection each time.
- Data Source: SharePoint list
- Collection: Market2
- Collection: Market4
- Dropdown Control with Regions
- User selects region - Markets2 is populated with all the countries belonging to that region
- User selects 2nd region - Markets 4 is populated with all the countries in that region

- Markets4 is patched to Markets2, adding all the newly selected countries.

As you can see in the images below the patch is only patching one record in Markets4 to Markets2 and not all the fields, only the Country and Country Code. Patch(Markets2, {Column3: Region}.... or Patch(Markets2, {Column3: Title}.... return the same results. No errors either.
Markets4 Collection

Markets2 collection after patch
