How to do an upsert in Power Automate with Dataverse
Use the Update a row action in the Microsoft Dataverse connector. Microsoft says a Row ID with no matching row turns the action into an upsert: it adds a new row that carries your ID.
Is there an Upsert action?
As of November 2026, Microsoft's Dataverse overview lists these actions: Create a new row, Update a row, Search rows with relevance search, Get a row, List rows, Delete a row, Relate rows, Unrelate rows, Execute a changeset request, file and image upload and download, and bound and unbound actions. No action named Upsert appears in that list.
The upsert behavior sits inside Update a row, as the next section shows.
How does Update a row upsert?
Pick the table. The card shows a Row ID input and the columns of the table. An asterisk marks mandatory columns. The Row ID is the unique ID of the row you update.
When no row has that Row ID, or you make a fresh one with guid(), the action inserts a new row that uses it.
If a column is blank, the update skips it, unless you pass a null value on purpose. To see hidden columns, open Show advanced options, which sits at the card's lower edge.
How do you build the upsert step by step?
Sample data only. Your table and columns will differ.
- In your flow, add the Update a row action from the Microsoft Dataverse connector and pick the table.
- In the Row ID box, add the ID you want to update. To always insert when nothing matches, use the guid() expression.
- Fill the columns you want to change. A column marked with an asterisk (*) is mandatory.
- If a column is missing, look under Show advanced options.
- Leave a column blank to skip it. Pass a null value only when you mean to clear it.
How do you set a lookup column?
A lookup needs the form entity set name, then the item ID in brackets. Microsoft's example is contacts(aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb), which uses sample data.
Most tables use the plural of the table name as the set name, but check it. In Power Apps, go to Tables, switch the filter to All, choose the table, then in Table properties expand Tools and pick Copy set name.
To check every entity set name at once, Microsoft says to open [Organization URI]/api/data/v9.2/ in your browser, where [Organization URI] is your environment URL. You find that Web API endpoint under Developer resources in Power Apps. Use Ctrl+F on the list to confirm the name exists.
How do you fill a multiselect column?
The Microsoft page says the interface accepts only one option. To pick several, switch the input method to Enter custom value, then enter a unique name for each option, separated by commas.
What does Return Full Metadata do?
It is an advanced option. Microsoft says it controls whether the action loads all columns from the table or only the essential ones, for better performance. If you leave it unset, the flow returns full metadata automatically when it uses dynamic content or expressions that need it.
How do you check whether a row exists first?
Run List rows with a Filter rows value, then use a Condition on the row count. On a Dataverse List rows action, the default limit is 5,000 rows. A narrow filter keeps the result small.
Our guide to the Join action helps when you must turn a list of returned IDs into one text value for a message.
What about licenses?
Before you build, read our note on premium connector licenses and check Microsoft Learn's page for the Dataverse connector against your plan.
Need a second opinion on the flow?
Al Davies builds tools that cut busywork and missed steps for teams. The first call is free and takes 45 minutes. Bring the table name and one sample row.
FAQ
Does Dataverse have an Upsert action in Power Automate?
Not in the action list on Microsoft's overview page. Update a row performs an upsert when the Row ID does not exist.
What does guid() do here?
It makes a new unique ID. If no row has that ID, Update a row creates one with it.
Are blank columns cleared?
No. Microsoft says the update skips blank columns unless you give an explicit null value.
How do I find the entity set name for a lookup?
Use Copy set name under Tools in the table's properties in Power Apps.
Can I pick two choices in a multiselect column?
Yes. Switch to Enter custom value and separate the option names with commas, per Microsoft.
Sources
- Overview of how to integrate flows with Dataverse (Microsoft Learn)
- Use a flow to update a row in Dataverse (Microsoft Learn)
- Use lists of rows in flows (Microsoft Learn)