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 / GUID reference across ...
Power Apps
Unanswered

GUID reference across environments

(1) ShareShare
ReportReport
Posted on by 125

I am building an app using Dataverse as the data source in a dev environment.

 

There are instances where I perform lookups against a hard coded GUID within the app to reference a specific record. For example, in a Statuses table I may do a lookup on a specific record via the GUID. 

Statuses

GUIDstatus_title

abc123

Pending Action 1
def456Pending Action 2
xyz789Pending Action 3

 

I have now realised that when I export the solution and import it into a UAT/PROD environment, I assume these GUID references will be different as I will have to build out the status records again. 

 

Is it best to avoid directly referencing the GUID field for the above reason? I was trying to use an immutable field (such as GUID) as the reference and avoid using something like status_title to reference, as the wording may change over time. I may create an additional hardcoded reference column such as status_id as a work around if it is an issue. 

I have the same question (0)
  • Kristian_Cole Profile Picture
    195 on at

    Good afternoon, if your hardcoded GUID is a custom config table that you are referring to you will need to export the data to import and then you can refer to it in your application.

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    @Tono_Analyst2 I would second @Kristian_Cole 's answer and recommend using Configuration Migration Tool for that purpose - https://learn.microsoft.com/en-us/power-platform/admin/manage-configuration-data

  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    As per the other responses, generally use Export/Import or the Configuration Migration Tool

     

    The only downside of using the Configuration Migration Tool, is that it will take all the data out of the selected tables (and as you are taking it out of Dev that data is not necessarily all 'clean').  If using Export/Import, you can delete rows in the exported file (or filter prior to exporting) before importing. 

     

    If doing Data Export/Import the main trick is to map the exported GUID to the primary key column during the import

    • Export to Excel
    • Unhide first 3 hidden columns (GUID is in column A)
    • Delete column B & C
    • Save as CSV, or XML 2003 (not the plain XML option)
    • When you Import into the new environment Update the Mapping, so the GUID column in your file is mapped to the "Primary Key"

     

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    @Fubar I'm not sure what you mean by taking "all the data". For ages, it's possible to provide filters in CMD so it will be only the subset of the data available in the environment to remove "non-clean" data. Also, it's possible to provide the list of columns to be exported not taking all the available columns of the entity.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard