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
Robert ZentgrafRobert Zentgraf 

ID of Document should be stored against a custom object

Hi,

I have created a custom object, where I added a button to upload an image (by using SFDC Standard):
e.g. https://cs14.salesforce.com/p/doc/DocumentUploadUi?pid=00lD0000001Cz87

Now I want to save the ID of this new Document on my custom object (this field is a text field).

How can I receive this information from the document? Additional, the document is created by the user, which owns the custom object. So both should be the same.

Regards
Robert
Shashikant SharmaShashikant Sharma
Could you explain more on how you are uploading the document ? Are you saving it as an attachment ?