How to get a chatter "sharing via link" URL which can be accessed by anyone inside or outside of your company? This can be achieved…
SELECT FileExtension,FileType,Id,IsArchived,IsDeleted,PublishStatus, SharingOption,SharingPrivacy,Title FROM ContentDocument where Id = '0694D0000008Ub4QAE'Step2: Pass the ContentDocumentId value to the object "ContentDistribution".
SELECT ContentDocumentId, DistributionPublicUrl, Id FROM ContentDistribution where ContentDocumentId = '0694D0000008Ub4QAE'The field "DistributionPublicUrl" will contain the URL which can be shared via a link to SFDC users and non SFDC users.
There was a problem reporting this post.
Please confirm you want to block this member.
You will no longer be able to:
Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.