You need to sign in to do that
Don't have an account?
Scott Janis 20
Automatically create public links when a file is uploaded
I have a process using FLOW File Upload, where the upload button is on the opportunity reocord and so the orginal file references the opportunity. Additionally, a process occurs where a contract record is spun up as a parent of that opportunity and another reference to the same file is created in the 'Content Document Link' object. This all works as expected.
My question is,how can I proceed to make this link into a public link automatically. I know I can do this using content delivery but is there a way to write to other objects like 'Content Distribution' where the creation of a public link is done automatcally when this file upload process occurs?
My question is,how can I proceed to make this link into a public link automatically. I know I can do this using content delivery but is there a way to write to other objects like 'Content Distribution' where the creation of a public link is done automatcally when this file upload process occurs?
Abhishek (Salesforce Developers)
Scott, I don't think it is possible through other objects.
Lokesh Kumar N
We can create a Content Distribution immediately after creating a Content Document using a trigger on Content Document from the below code