web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Passing a record GUID ...
Power Automate
Unanswered

Passing a record GUID into a Get Row by ID action - Unexpected Results

(0) ShareShare
ReportReport
Posted on by

Hey Everyone, 

 

I am learning Power Automate. I am trying to learn how I can pull data from related records. Here is the test use case I came up with that I am trying to build in Power Automate:

 

Test Use Case: When an Account is selected in the Case record, look into the Account and find the Primary Contact. Look through all of the Opportunities related to the Primary Contact and find the the Opportunity with the highest Revenue and return the revenue value and Opportunity name and populate it in a field on the Case. 

 

rahul_s_0-1643038047237.png

 

I have the flow I have so far, above. It fails at step 3 - It tells me the Row ID (Primary Contact (Value)) is null, even though when I tested it, I ensured that the Primary Contact has a value for the selected Account. Note that I am using Select Columns in the second action since I only want to return the Primary Contact ID field on the Account. Here is an image of the failure.

 

rahul_s_1-1643038315623.png

 

What's interesting is that it runs successfully if I do the exact same thing but I go into the second step and then remove the Primary Contact ID under the Select Columns. I don't understand why it returns null if I tell the flow that I only want it to return the Primary Contact ID of the Account and then pass that GUID into the Get Row by ID action for Contact. Can someone help me understand what I am doing wrong? I plan to utilize the Select Columns and Expand Query feature a lot since it can help me return a more filtered list of values for performance purposes. Thank you!

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,511 Most Valuable Professional on at

    Hi @rahul_s,

     

    As far as I am aware the field name is _primarycontactid_value. Can you use that field instead of the primarycontactid in the select columns. When you hover the field in the third action you should also see that internal name in the tooltip btw.

     

    primarycontactid_value.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard