Forum Discussion

ABSOmar's avatar
ABSOmar
Regular Visitor
7 months ago
Solved

"Upsert" write behaviour applied to a dataverse table

Hello Community,   I'm actually trying to implement a copy from my lakehouse to a dataverse table using a copy activity in a pipeline, i already have data in my dataverse table to update it every m...
  • deborshi_nag's avatar
    7 months ago

    Hello ABSOmar 

     

    Upsert matches on Alternate Key (if specified), otherwise on the primary key (GUID)
     
    In the Destination → Advanced settings for the Dataverse connector, Write behavior must be Upsert. For matching:
    • If you provide an “Alternate key name”: The copy activity will match existing rows using that alternate key (a unique combination of one or more columns you’ve defined on the target table). If a match is found, it updates; otherwise it inserts
    • If you leave “Alternate key name” empty: The upsert falls back to the table’s primary key (GUID)—i.e., the logical <entity>id column—based on the value you supply in the incoming data for that column. If the GUID matches an existing row, it updates; if the GUID is new, it inserts.

    Hope this helps! Kindly Accept this as a Solution or a Thumbs Up!