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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataverse API lookup
Power Apps
Unanswered

Dataverse API lookup

(0) ShareShare
ReportReport
Posted on by 4

Hello everyone,

I'm designing an API layer that needs to update data within the dataverse. One thing that concerns me is the management of GUIDs. From what I understand, to populate the lookup field, I need to use the GUID of the row and cannot use the primary key of the row. Is what I'm saying correct?

Additionally, I wanted to ask something. Imagine the scenario where I have an order with lines inside as JSON. The lines have a lookup to the order. Now, if I use the dataverse APIs, will it return the GUID of the order just created? This is necessary for me because I don't want to make too many calls to the dataverse. Do you have any ideas on how I can retrieve this GUID? Thanks in advance.

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    I'm not sure what you mean with "Primary Key" of the record. Technically, on the DB level "Primary Key" is the recordid that is Guid (for Account table - accountid field, for Contact table - contact e.t.c).

    If you have some kind of external unique id you can use the feature that is called "Alternate Key" - https://learn.microsoft.com/en-us/power-apps/developer/data-platform/define-alternate-keys-entity

    It would be possible to rely on that key and perform an upsert operation for records and use it to populate lookups in the related records.

    When the record is created - id of the record is returned in response so you can rely on it.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard