Related List Quick Links throws error relatedListQuickLinksGrid [Cannot read property 'relatedListId' of undefined]
Last updated 2022-02-10 ·Reference W-8119549 ·Reported By 15 users
Summary
When using the related list quick links component on a flexipage, and the list contains an external data source which returns an error in the response
The component then displays an error to the screen similar to below
[Cannot read property 'relatedListId' of undefined]
eval()@/lst/relatedListQuickLinksGrid.js:1:6744
b.get relatedLists [as relatedLists]()@/lst/relatedListQuickLinksGrid.js:1:6713
R()@/lst/relatedListQuickLinksGrid.js:1:1933
This can be caused by a bad request response such as below
errorCode: "EXTERNAL_OBJECT_CONNECTION_EXCEPTION"
Issue is similar to below
https://trailblazer.salesforce.com/issues_view?id=a1p4V000001JidrQAC
ref:
View Related List Data Quickly with Related List Quick Links
https://releasenotes.docs.salesforce.com/en-us/winter18/release-notes/rn_forcecom_lab_related_list_quick_links_comp.htm
Repro
We assume your organization has already have an External Data source and External Objects defined. Also a Salesforce Object (lets say Account) page enabled with Related List Quick Links and data coming from multiple sources including External Data source.
When you open Account record page will display an error to the screen
Similar to below
[Cannot read property 'relatedListId' of undefined]
eval()@/lst/relatedListQuickLinksGrid.js:1:6744
b.get relatedLists [as relatedLists]()@/lst/relatedListQuickLinksGrid.js:1:6713
R()@/lst/relatedListQuickLinksGrid.js:1:1933
Workaround
Possible option to utilize different related list component
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.