Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable - Master-Detail field showing the id instead of the Master's Name #1595

Open
jessepink opened this issue Oct 9, 2024 · 2 comments

Comments

@jessepink
Copy link

I have an object, "Sales Order Lines" that has a Master-Detail relationship with another object "Sales Order", that when I try to include that field in the datatable for Sales Order Lines, it just shows the id text instead of the expected Name field on the Sales Order record (which is what it does for Lookup fields.).
object field
flow example

@ericrsmith35
Copy link
Collaborator

In order for a lookup or master/detail field to display as a link, it must be “reparentable”

In order to have the Datatable display a Lookup field as a link to the record rather than just the recordId value in the field, the running User must have Edit access to the object whose records are being displayed in the Datatable. For example, if you have a Datatable for Contact records and include the AccountId(Lookup) field, the running User needs to have Edit access for the Contact object in order for the AccountId field to show as a clickable link with the Account’s Name. Without Edit access to the Contact record, the Datatable will display, as unclickable, the Account’s recordId value. For information on how you can temporarily add then remove Edit access in a Flow, read the referenced Help Article and/or complete the referenced Trailhead.
Help Article: Create a Flow That Can Activate or Deactivate a Session-Based Permission Set
Trailhead: Session-Based Permission Sets and Security

Running User has Edit access to the Contact object
image

Running User does not have Edit access to the Contact object
image

@scanlan111
Copy link

i have a similar situation, my org has a large managed package where i cannot change the lookup field to be reparentable

ive had to create a formula text field to get the link to show right.

'HYPERLINK("Sales Order", "/" + CASESAFEID( Sales_Order__c ) )'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants