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
| GUID | status_title |
abc123 | Pending Action 1 |
| def456 | Pending Action 2 |
| xyz789 | Pending 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.