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
sam sjsam sj 

query notesandattachment

Instead of standard related list of notes and atachments in customObject A, I want to transfer that notes and attachment data from customObject A to customObject B.
Here comes the actual requirement: Both objects are having standard page layouts. And no data (notes/attachment) should be created again for second object. We need to just display((notes/attachment)) what it is there for CustomObjectA records.

 For this I am going for inline VF page in customObject B. How to create custom list of notes and attachment (not just using relatedlist tag in vf page, as i dont need edit or delete options).I want to build whatever is required. I am unable to query data from NotesAndAttachment object(objectA). Is there a better solution for this?