You need to sign in to do that
Don't have an account?
Eduardo Andrade
Generate ContentDistribution external link from Apex
Hi, I can query on ContentDistribution the url of a file that I manually shared with external.
Is it possible to generate that url from Apex?
Thanks
All Answers
Yes, it is possible to generate the URL from the apex class since update() is a supported call for the ContentDistribution object. You can find the complete information about this object and its fields in the link given below:
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdistribution.htm
Please let me know if you need any other helpm on this.
Thanks,
Abhishek Bansal.
I've compiled all the info I got here for others:
https://www.mhamzas.com/blog/2020/01/09/use-salesforce-files-image-file-on-lwc-aura-or-vf-page-as-tag/
I cant see ContentDistribution Object in my org, not even in Workbench and I am looged in through Administrator credentials. Can anyone help?