Oct 18, 2024
111 Views
Comments Off on How to get a chatter “sharing via link” URL?
0 0

How to get a chatter “sharing via link” URL?

Written by

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 from the field “DistributionPublicUrl” in “ContentDistribution” object.

Step1:  Get the document ID from the object  “ContentDocument”.

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.

Article Categories:
Fashion
Priya Singh
https://thestarbiznews.com/

Expertise: Technology Trends, Startups, Digital Disruption Bio: Priya Singh is a tech-savvy millennial with a finger on the pulse of the ever-evolving digital landscape. A graduate of Stanford's Computer Science program and a former engineer at a Silicon Valley giant, Priya has a deep understanding of the technologies shaping our future. Her passion lies in demystifying complex tech jargon and exploring the disruptive potential of emerging trends, making her articles essential reading for anyone who wants to stay ahead of the curve. When not scouring the web for the latest tech tidbits, Priya enjoys traveling to off-the-beaten-path destinations and immersing herself in diverse cultures, always seeking new inspiration and insights.