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
bathybathy 

A visualforce page to display all related child records(detail pages) and email this as an attachment

Hi,

Can any one guide me how to display a visualforce page with all the related child record's detail pages(I dont mind about the size of the page). 
I will explain this clearly.


We have a parent object ob1 (parent object also is displayed using visualforce page) and four child objects c1,c2,c3,c4. What I need is to send all these objects as an attachment to the email sent to internalstaff in a single button click. First I need to know can this be achieved. If it is achievable then can any one guide me in coding?

Thank You.