Forum Discussion
ABSOmar
7 months agoRegular Visitor
"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...
- 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!
deborshi_nag
7 months agoSuper User
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!
ABSOmar
7 months agoRegular Visitor
Very clear, Thank you deborshi_nag !