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
Varun AnnadataVarun Annadata 

Is it possible to create a custom field with lookup or master detail to Attachments on a custom object?

Akshay_DhimanAkshay_Dhiman
Hi Varun,

It is not possible to create a custom field with lookup or master detail to Attachments on a custom object because every custom and standard object contains a related list with Notes and Attachments. You can add this field to your custom object by checking a checkbox at the time you are creating a custom object.

User-added image



After that go to the page layout and click Edit. Select Related list and drag the Notes and Attachment tab to the related list section and click on Save.

User-added image
User-added image
User-added image

Hope this may help you.

Regards,
Akshay