My Client wants to upload Image files from Account and generate a link for this image file and save it in a custom field on Account. This link should be Public Accessible (access from outside without the salesforce login prompt).
I tried using the
ContentDownloadUrl field on
For this I wrote a simple trigger on
My problem is that a record inserted to
ContentDistribution object and
ContentDownloadUrl field populated when only user manually share the file from "Share via Link" menu option.
Is there any way to automate this process? Just populate this Public Accessible link using a APEX trigger when user upload an image?
Note : client wants to put this link inside a
<img src=""> tag of his another site.