Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

Get a Row by ID in Power Automate: Dataverse Row ID, Errors and Safe Patterns

A flow knows exactly which service request it needs, yet the Dataverse step keeps failing with BadRequest or Does Not Exist. Nine times out of ten, the value in Row ID isn’t the row’s real ID.

In this tutorial, we’ll use get a row by id power automate flows on a real Service Requests table. We’ll find the row ID, add the action, read its columns, trim the output, compare it with List rows, and fix both errors you’ll hit.

Quick answer: Add the Microsoft Dataverse action Get a row by ID, pick the Table name, and put the row’s GUID in Row ID. The GUID lives in the table’s unique identifier column, for example cr85a_servicerequestid. If you only know a request number, use List rows with a filter instead.

What You Need Before You Start

New to Dataverse? Read what Microsoft Dataverse is first, or browse our Power Automate tutorials. For this walkthrough we used:

  • A Power Automate environment that holds the table (ours is a developer environment).
  • A Dataverse table with rows. Our Service Request table has Subject, Request Number, Status, Priority and a Customer lookup.
  • The Microsoft Dataverse connector, which shows the premium diamond icon in the action list.

What Is the Dataverse Row ID?

Every Dataverse table has a unique identifier column that stores a GUID for each row. Its logical name is the table name plus id, so our table’s is cr85a_servicerequestid. The cr85a_ part is our publisher prefix; yours will differ. Get a row by ID only accepts this GUID.

There are four easy places to find it:

  • List rows output: each item in body/value carries the ID column.
  • An expression: first() picks the ID of the first returned row.
  • Dynamic content: a token named after the table (Service Request) from an earlier Dataverse step or trigger.
  • The model-driven app URL: open the row; the value after id= is its GUID.

Here’s the Compose we used. It returned 9b376aac-c495-4a78-bdc9-5d57e2f03ce7, the Login Issue row. Our post on counting rows from List rows covers that action’s other outputs.

first(outputs('List_rows')?['body/value'])?['cr85a_servicerequestid']
Compose action Code view with the first() expression that returns the cr85a_servicerequestid of the first List rows item

Step 1: Add the Get a Row by ID Action

Go to make.powerautomate.com, switch to the environment that holds your table, and select Create > Instant cloud flow > Manually trigger a flow. Then:

  1. Select + (Add an action), search for Dataverse and select See more.
  2. Select Get a row by ID.
  3. Choose the Table name; we picked Service Requests.
  4. Paste a GUID or a dynamic token into Row ID.
Add an action pane with the Microsoft Dataverse actions listed and Get a row by ID highlighted

We used the Network Issue row’s GUID, 16cea266-434b-47a7-ab09-96e7ef02d282.

Get a row by ID parameters with the Row ID GUID and Advanced parameters Showing 4 of 4 highlighted

Step 2: Read the Row’s Columns

Save, select Test > Manually > Run flow, then open the run and select the action. Show raw outputs lists every column. Choice columns come back twice: the number and a FormattedValue label. Our row showed 770700001 and “In Progress”.

Get a row by ID raw output body with cr85a_status 770700001 and its FormattedValue In Progress highlighted

To use the values later, reference them in a Compose. The choice-label trick is explained in our post on getting a Dataverse choice column value.

{
  "Subject": "@{outputs('Get_a_row_by_ID')?['body/cr85a_subject']}",
  "RequestNumber": "@{outputs('Get_a_row_by_ID')?['body/cr85a_requestnumber']}",
  "StatusLabel": "@{outputs('Get_a_row_by_ID')?['body/cr85a_status@OData.Community.Display.V1.FormattedValue']}"
}
Row details Compose raw output showing Subject Network Issue and RequestNumber REQ-1006

The lookup’s display name came back too: _cr85a_customer_value@OData.Community.Display.V1.FormattedValue returned “Bob” without any extra step.

Step 3: Trim the Output With Select Columns and Expand Query

Open Advanced parameters and select Show all. You’ll see Return Full Metadata, Select columns, Expand Query and Partition ID.

  • Select columns: comma-separated logical names, such as cr85a_subject,cr85a_requestnumber,cr85a_status. Microsoft recommends it inside loops to cut the data each call returns.
  • Expand Query: an OData expression that pulls columns from a related table through a lookup. Microsoft’s Accounts example is primarycontactid($select=contactid,fullname); our Customer lookup’s navigation property is cr85a_Customer.

For just the lookup’s name, the FormattedValue from Step 2 is enough.

Get a Row by ID vs List Rows With a Filter

Get a row by ID only searches the ID column. If you only know a request number, ask List rows instead and take the first match:

Filter rows: cr85a_requestnumber eq 'REQ-1006'
Row count:   1
Row ID:      first(outputs('List_rows')?['body/value'])?['cr85a_servicerequestid']
Get a row by IDList rows + Filter rows
Looks up byThe GUID onlyAny column (OData filter)
ReturnsOne row objectAn array in body/value
No match404 NotFound, action failsEmpty array, action succeeds
Wrong value type400 BadRequest400 BadRequest
Best forIDs from triggers, lookups, earlier stepsRequest numbers, emails, names

In our test, a filter that matched nothing returned an empty array and the flow kept going. That’s why we prefer List rows when the value comes from a user. Wrap the follow-up steps in a check from our Power Automate if expression guide.

Fix Common Errors

BadRequest: “‘)’ or ‘,’ expected at position 4”

We put the request number REQ-1006 in Row ID. The action failed with BadRequest (code 0x80060888), because Dataverse wraps the value in parentheses and expects a GUID.

Test run raw output with status 400 and the message ')' or ',' expected at position 4 in '(REQ-1006)'

Fix: pass the GUID, or switch to List rows with a filter on the request number.

404 NotFound: “Does Not Exist”

A GUID that’s valid but deleted, or from another environment, returns 404 with “Entity ‘cr85a_servicerequest’ With Id = … Does Not Exist” (code 0x80040217).

Tests flow run overview with Get row missing GUID failed as NotFound next to the BadRequest test

How Do You Validate a GUID in Power Automate?

Power Automate has no isGuid function. Either look the row up with List rows, or let Get a row by ID fail and catch it: open the next action’s Settings > Run after and check has failed. Our try catch block in Power Automate post shows the scope version. Our tests flow used:

"runAfter": {
  "Get_row_with_request_number": ["Succeeded", "Failed"],
  "Get_row_missing_GUID": ["Succeeded", "Failed"]
}

Does Get a Row by ID Work in Another Environment?

Yes, through its twin. The plain action reads the environment the flow lives in. Get a row by ID from selected environment adds an Environment picker so a flow in dev can read a test or production table.

Next Steps

Once you have the row, you’ll usually change it. Our guide to updating a row in Dataverse with Power Automate uses the same ID token, and adding a new row to a Dataverse table shows where new IDs come from.

We’d pick one of these next if you’re building more Dataverse flows:

Frequently Asked Questions

How do I get a row by ID in Power Automate?

Add the Dataverse action Get a row by ID, choose the table and put the row GUID in Row ID. Microsoft covers every option in Get a row by ID from Dataverse.

What is the Dataverse row ID?

It’s the GUID in the table’s unique identifier column, named after the table plus id, such as cr85a_servicerequestid.

Can I get a row by a value other than the GUID?

Not with Get a row by ID. Use List rows with Filter rows, for example cr85a_requestnumber eq ‘REQ-1006’, and take the first item’s ID.

Why does Get a row by ID return Does Not Exist?

The GUID is well formed but no row with it exists in that table and environment. Check the environment, or use List rows, which returns an empty array instead of failing.

How do I validate a GUID in Power Automate?

There’s no isGuid function. Look the row up with List rows first, or set the next action’s Run after to has failed and handle the error there.