Hi @Aditya16
Did I answer this question for you before? its so oddly similar.
This Statement, is not a question, but it's also inaccurate.
- It seems that only value from primary key of a table can be used as lookup and other columns cannot be used hence CompanyID instead of CompanyName is visible , and it is not useful as CompanyName should be visible instead of CompanyID.
.
You can easily use any field you want, based on the LookUp, but it sounds like you do not know how, so you are making statements that are not true.
Also, when you look at the Tables in Dataverse, through the UI, you do in fact see the Name (if its the primary field) not the GUID.
So I am not following
Also this question is moot and makes inaccurate statements, learn how to use LookUps to get other values.
- Should CompanyName be made a primary key and CompanyID as a Alternate key to resolve the issue of lookup and then create a additional column "CompanyNameLookup" in the Product table that would display the CompanyName from the Company table. PowerAutomate can be used to update the value of CompanyId based on the value selected in CompanyName.
Since there was no actual real question, per se, I responded in kind.
However to tell you how you correctly do it.
1. If you are in a Canvas App, you simply use the Current Record from TableA to do this
TableA.MyLookUpTableName.MyLookUpTableValue.
2. If you are in a power automate, you simply do a Get item by id, where the ID is equal to the Dynamic Property listed as FieldName (Value)
3. If you want to pass the GUID of the lookup to power automate froma canvas app
TableA.MyLookUpField.TableName
If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey