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
crsofacrsofa 

Custom List Button

Hi

 

Just lookig for a little advice.  On the Account object I have a related list - Call Reports.  I would like to create a custom button to add to this related list.  I need the button to get the Account Id and insert it in a URL and then launch the URL to a custom report I've created.  Can apex code be inserted in a URL? 

 

Thanks

 

new2forcenew2force

hey in order to create a list button . u ahve to got that  object  and create list button over there and when u open this in the account detail paeg, u can see the list button there,. u should also make this button visible.

 

for example,

 

in ur cse,, call reports is arelated list. so u have to go to this object and create list button and  make it visible in the pge layout .of either account page layout or call reports obejct page layout. or make it visible in both obejct layouts

 

i hope this solves ur question

 

one more thing with list button, u cant open VF page as we open VF page with custom button