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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using Get Record Actio...
Power Automate
Unanswered

Using Get Record Action in Common Data Service

(0) ShareShare
ReportReport
Posted on by 37

Hi all,

I'm trying to use the 'Get Record' Action from the Common Data Service (CDS) Connector to lookup a record in CDS and then either do an Update or Insert, but I'm having trouble figuring out what to put in the 'Item identifier' section.

 

My flow is a Json object that has the ID in it and I'm parsing that Json and attempting to use the ID to look up the record in CDS.  It is a custom entity and I have made the ID the key.

 

Here is the error I get from Get Record:

"status": 400,
"message": "Invalid value: 1128138 provided for item ID"
 
In the very next step, just to make sure it's there, I have a 'Create Record' action and it returns this error:
"status": 412,
"message": "A record that has the attribute values ID already exists. The entity key ID requires that this set of attributes contains unique values. Select unique values and try again."
 
So I know the record exists, but I can't seem to figure out exactly what to put in that Item Identifier field.  Please help Smiley Happy !
Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Using Get Record Action in Common Data Service

    Hi @AnotherRedbeard ,

     

    Item identifier is similar to GUID, generated automatically, not ID like 1128138 you configured, as below:

    43.PNG

    If you use the obtained ID value to configure Item identifier field, you cannot get the record.

    • Since you need to find the record by ID, you could configure List records-Filter Query to get the record. ID field has a unique value in Entity, so only one record will be obtained.

     

    For example, I created ID field in my entity with a unique value of type Whole Number and set it to Key.

    • Get its Name as shown below, then configure Filter Query.

    45.PNG46.PNG

    • Note that if ID field is of type string, you need to enclose it in single quotes.

    47.PNG

     

    Finally, determine whether there is a record corresponding to ID value in the Entity.

    • Enter "id" in input box when configuring Record identifier, and then select Dynamic content corresponding to Unique identifier for entity instances generated by the system.44.PNG

     

    Please take a try.

     

    Best Regards,

  • AnotherRedbeard Profile Picture
    37 on at
    Re: Using Get Record Action in Common Data Service

    Thanks @v-bacao-msft , that is what I ended up doing and thank you for explaing the record identifier...that makes more sense now.

  • moizmh Profile Picture
    6 on at
    Re: Using Get Record Action in Common Data Service

    I was trying the same thing but got the flow working with just specifying the ItemInternalId in "Record Identifier"

     

    Annotation 2019-08-14 201145.jpg

     

    Hope this helps (others).

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard