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/valuecarries 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']

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:
- Select + (Add an action), search for Dataverse and select See more.
- Select Get a row by ID.
- Choose the Table name; we picked Service Requests.
- Paste a GUID or a dynamic token into Row ID.

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

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”.

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']}"
}

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 iscr85a_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 ID | List rows + Filter rows | |
|---|---|---|
| Looks up by | The GUID only | Any column (OData filter) |
| Returns | One row object | An array in body/value |
| No match | 404 NotFound, action fails | Empty array, action succeeds |
| Wrong value type | 400 BadRequest | 400 BadRequest |
| Best for | IDs from triggers, lookups, earlier steps | Request 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.

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).

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.

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.