Skip to main content

We use a custom Object called "Account Affiliations". This Object has a Master-Detail relationship with Accounts, and this is where we would like to show our Enhanced Related List. There are two Lookup fields on the Account Affiliation Object:  1. (Account) "Consultant/Broker" 

2. (Contact) "Consultant/Broker Contact Name"  When the Enhanced Related List is added to the Account Lightning Page, the "Consultant/Broker" and "Consultant/Broker Contact Name" are displaying as those Record IDs. 

 

#CRM Configuration

Enhanced Related List showing Id of Lookup field values

 

If possible, we would like these to display as the actual NAME of the "Consultant/Broker" and "Consultant/Broker Contact"  For reference, I've added screenshots of the Metadata Labels and Lightning Page Component  

Active Account Affiliations - 2.jpg

  

Active Account Affiliations - 3.jpg

Active Account Affiliations - 4.jpg

2 respuestas
  1. Tom Bassett (Vera Solutions) Forum Ambassador
    2 oct 2021, 15:08

    Hello, 

     

    In the database the values are stored as IDS so it does makes sense that the list is is simply displaying what is stored. 

     

    There are a few workarounds to this that I can think of of the bat;

     

    (1) Create a formula field that references the name of the related object and then display that formula field in the related list linked to the ID

     

    (2) Try to how to adjust the syntax so you tell the component to display the name for example Contact__c.Name 

     

    You'd have to try option two for yourself as I'm not sure this will actually work, option 1 should work without any issues. 

     

    Thanks Tom

0/9000

Hi @Denny Chandra is there a function to export the related list into a CSV document? I need to create a button which I'm planning to add on the wrapper that I've implemented but I would like to know if there's already a function I could reference to get the generated query or would I have to create my own code to generate the same query?

 

#Data Management

 

@CMTD

3 respuestas
  1. Coby Press (Black Cloud) Forum Ambassador
    16 abr, 16:25

    Made this video explaining out of the box alternative - https://youtu.be/mRycLGoITf0

0/9000
1 respuesta
0/9000

Does anyone has the source code for this? Because I need to do few modifications to make it work for my need. It would be much appreciated if anyone can route to me github source repository for this "CMTD Enhanced Related List". Many thanks in advance.

1 respuesta
  1. 21 oct 2025, 13:30

    Hi @Vijayakumar Kenchugundu

     

    This is a managed package, which means the source code is protected and you won’t be able to modify or update it directly. 

     

    If it were an unmanaged package, you would have full access to the code and could make any necessary changes. 

     

    If this helped, please mark it as the Best Answer so others can find it too.

0/9000

Is there any possibility in CMTD Enhanced List to wrap the long texts in multiple lines primarily for long Text Area 

2 respuestas
0/9000

Hi all, 

 

I just installed the CMTD item in dev and I am having difficulties setting it up. 

What I am trying to do is show related Locations on an account. 

I set up the Enhanced Related List in the custom metadata as I thought it should be, but it is still giving me an error. Does anyone know how to solve this please? 

 

The Account ID on Location is stored (extra) in this field; Parent_Account_ID__c 

 

I appreceate the help! 

 

With kind regards, Gea 

 

Error invalid conversion from runtime type System.Location to SObjectSchermafbeelding 2025-08-26 104410.pngSchermafbeelding 2025-08-26 104436.pngSchermafbeelding 2025-08-26 104945.png

5 respuestas
  1. Sushil Kumar (UKG) Forum Ambassador
    28 ago 2025, 18:09

    @Gea Vermeer-Visscher Yeah thats what i was suggesting. It seems the package is doing dynamic initialization of the object. Since SF has standard class name with same name, its not able to distinguish. This can be package limitation for this specific object if its not working as suggested in the article. 

0/9000

I have users in the permission set whose Production tab is not opening. All components in the Production tab belong to the custom component "CMTD Enhanced Related List." doed any one know how i can give them access to see the production tab .

1 respuesta
  1. 26 jun 2025, 10:34

    HI @Yusra Elmahboub

     

     

     

    If users can't open the Production tab, and it's using the CMTD Enhanced Related List component, here are a few things you can check to resolve the issue:

    1. Tab Access in Permission Set 

      Make sure the Production tab is visible in the users’ permission set or profile. If it’s a custom tab, set it to

      “Default On”..
    2. Object & Field Permissions 

      The component may be referencing objects and fields. If users don't have at least

      read access to those objects/fields, the tab may not load properly.
    3. Component Access (if custom or packaged) 

      If the component is from a managed package, ensure that users have access to any Apex classes or Visualforce pages it uses. If it’s a custom-built LWC, make sure there aren’t Apex controller-level permission restrictions affecting visibility.

    4. Lightning Record Page Assignment 

      If the tab is part of a Lightning page (like a custom object or record page), verify that the Lightning page assignment includes the correct profiles, apps, or record types for those users.

    5. Component Visibility Filters 

      Check if any component visibility filters are applied that could be hiding the tab or section based on profile, permission, or record data.

    If users still face issues, try checking the browser console for errors or setting up a debug log when the tab fails to load.

    Let us know if you can share more details like the error message or tab setup. Also, 

     

    Hope this helps! 

     Also, if you find this content helpful please mark it as the best answer. 

0/9000

I am trying to query this object Benefit Schedule Assignment but it throws an error 'Invalid Object API Name 'BenefitScheduleAssignment' 

 

This object exists in API v59. From what API version does CMTD Enhancement Related List supports?

0/9000

@Denny Chandra

I see there have been a few posts in the past about showing all tasks or events when using the related list for tasks or events. I just tried to use this for a project and ran into this same issue.  

 

With the dynamic related lists standard component, I imagine this component is getting less use. But there's still one area where dynamic related lists don't work - activities.  

 

So I tried to create a related list with this but realized that archived activities are not displaying. Tasks and events over a year old don't show up unless the query specifies "ALL ROWS." The query for this component does not include this by default.  

 

Since ALL ROWS also shows deleted records, to get this to work like the other activity related lists, you would need to add IsDeleted = False to the WHERE clause and ALL ROWS to the end of the query. This could either be done automatically for related lists on Tasks and Events or have a component property that users could check a box to "Display Archived Tasks or Events."  

 

If the code is somewhere online, happy to open a pull request with this change. Otherwise I'll probably just create a custom component for this scenario. 

3 respuestas
  1. 17 jun 2025, 01:41

    Hi Paul,

    I think you can probably log a case with salesforce.

    They might have some other suggestion along with changing auto archival time period.

    Thanks

0/9000

Hi, 

I have two users with identical profile, role and permissions; however, one user is able to see the Name field on the CMTD enhanced related list, while the other user cannot view it. Both users have the same access rights to the field, so this inconsistency is unexpected. Any insights or suggestions on what might be causing this discrepancy would be appreciated. 

Name field not displaying as expected on CMTD list

 

 

2 respuestas
  1. 13 jun 2025, 01:48

     Hi @Alessio Ilari ,  

    Thank you for your input. That said , as shown in the screenshot, while the "Name" column header is visible to the user, the corresponding values in that column are not displayed.  

     Do you have any thoughts on what might be causing this? 

0/9000