function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LakshmanLakshman 

Can I add a custom url column in related list?

Hi All,

 

I have a related list within which I want to add a URL field which would be set from my apex class. The scenario is as below:

 

I have an Custom Object A which has Custom object B in it.

Now in this Custom object B's related list we have Action, Name etc columns.

I want to add a new column URL with value View(link will be dynamically added by Apex class) and when user clicks on this url it will show attachment which is stored in custom object B.

So my question is that can I dynamically add a URL field in this related list or I will have to create an inline Visualforce page for this?

If yes then how should I proceed?

 

Please let me know if anyone needs more details for this.

Thank you!

 

Regards,

Lakshman

bob_buzzardbob_buzzard

You won't be able to set a field into the related list dynamically unfortunately.  I've done something similar in the past using a trigger on attachment that populated a field on the parent with a link to the attachment.