You need to sign in to do that
Don't have an account?
James Billings
Share via link - create in code?
Does anyone know if I can create a public share link for a file via code?
I can do it via the Files UI, and I can then find this in the ContentDistribution object, but it still requires the user to have generated the link to begin with.
Ideally I want to do this in code as part of a trigger. Any suggestions?
I can do it via the Files UI, and I can then find this in the ContentDistribution object, but it still requires the user to have generated the link to begin with.
Ideally I want to do this in code as part of a trigger. Any suggestions?
James Billings
Answering my own question - it appears that creating a new ContentDelivery record with PreferencesAllowOriginalDownload = true for my new ContentVersion generates the link on creation, so it was actually quite easy!