Simran-Sohal / LEX-Field-Set-Component

Salesforce Lightning Components
MIT License
8 stars 10 forks source link

Indirect Lookup relationship link not working #5

Open juanmtriguero opened 5 years ago

juanmtriguero commented 5 years ago

When adding Indirect Lookups fields to the component, the name of the related object looks fine, but when clicking on the link the URL shows the External ID instead of the Salesforce ID, so the redirect doesn't work.

Repro:

  1. Create External ID field on object A
  2. Create External Object B
  3. Create Indirect Lookup in B pointing to External ID field in A
  4. Create Field Set in B containing the field
  5. Add the component to the object B record page and select the Field Set created
  6. Create a record of A with External ID populated
  7. Create a record of B in the external system with the field containing the External ID
  8. The link appears in record B in Lightning with the Name of A's record populated
  9. Click the link and it will give an error (bad URL)