25
votes
Accepted
ContentDocumentLink filter error on ContentDocumentID using IN clause
the solution is to add your keySet() from Map to a new Set() and use that in the query filter using IN:
Ex:
Set<Id> newSet = mapOfContentVersion.keySet();
[SELECT ContentDocumentID, ...
- 266
9
votes
ContentDocumentLink filter error on ContentDocumentID using IN clause
I encountered the same error in my query for ContentDocumentLink records:
"Implementation restriction: ContentDocumentLink requires a filter by a single Id on ContentDocumentId or LinkedEntityId ...
- 111
8
votes
ContentDocumentLink filter error on ContentDocumentID using IN clause
This must be a recent update (this year), because I had code working filtering on a Set with no problem, and suddenly noticed today it no longer worked. I resolved the issue by first casting the Set ...
- 341
7
votes
ContentDocumentLink filter error on ContentDocumentID using IN clause
In addition to @harish answer, the underlying problem is similar to using object.field notation as bind variables in dynamic SOQL - even though the use case is static SOQL
For static SOQL - does not ...
- 66.8k
7
votes
Accepted
How to share files uploaded in "Files" related list to Community Users
Files uploaded via this related list will only be visible to internal users, and this field is not editable.
One thing you can do is post the file to the record via the Chatter publisher, and ...
- 811
5
votes
Exporting Content from Salesforce
We needed these content to be exported urgently. So, couldn't tried any AppExchange App.
Every salesforce content has it's download URL like :
http://Your_ORG_URL/sfc/servlet.shepherd/version/...
- 2,352
5
votes
How to get ContentVersion Public Link?
I'm still trying to figure this out myself, but I believe what you are looking for is the DistributionPublicUrl field on the ContentDistribution object. I think the query would be something like:
...
- 962
4
votes
Accepted
Background images in Content Builder
No, it's not possible in SFMC.
There are several ways to approach this. The best way I've seen is to break up the email components into Content Areas.
You could do something like this:
Upload ...
- 29.3k
4
votes
do all orgs have 'content' package requirements
It appears that Content is available in all editions. However, it may not be enabled in some orgs. Therefore, your "pre-installation instructions" will need to include the need to go to Setup and ...
- 462k
4
votes
Salesforce Files Vs Salesforce CRM Content
Hope you have gone through these differences before posting the question.
Refer Differences Between Files, Salesforce CRM Content, Salesforce Knowledge, Documents, and Attachments
CRM Content needs ...
- 35.7k
4
votes
Accepted
Files with Content Delivery & Public Links as a CDN
You can programmatically create a public link from a ContentVersionId and then get the download URL like this:
ContentDistribution publicLink = new ContentDistribution(ContentVersionId = ...
- 13.2k
4
votes
Accepted
Find the name of an image based on its URL in Marketing Cloud
By far, the easiest method to determine the name from the image URL is to enable Predictive File URLs. If your solution needs to account for images uploaded before the enablement of that feature, or ...
- 1,881
3
votes
Error while uploading content document through visualforce page with javascript to invoke Force.com REST API
I see you are using Viusalforce and I feel you are messing with Session ID .I tested below code and works in my org
<apex:page standardController="Case">
<p>
Select a file to upload.
&...
3
votes
Accepted
3
votes
Salesforce Crm content general questions
First of all, from the screenshot you provided it looks like you are looking for Salesforce for Non-profit organization (free first 10 licenses and discounted after).
In regard of your questions 1&...
- 3,054
3
votes
Accepted
How to make this sub query work
What you're trying to do is called a semi-join (or an anti-join if you use NOT IN). These are useful for gathering table A if it contains or does not contain some relational object (e.g. find all ...
- 2,668
3
votes
Accepted
How to create custom field in content object
For Salesforce Classic
Step 1: In quick find box search for salesforce file
Step 2: click on Field, you will be directed to this page
Create your Custom Field..!!
- 391
3
votes
Accepted
Is there an API that can be used to programitically regenerate previews
Salesforce support confirmed that at present there is no option to programmatically regenerate the previews.
I was able to generate a Selenium script that iterated through all of my contentversionids ...
3
votes
Accepted
Rating content files in Apex
It's ContentVersionRating object revealed by Salesforce in latest version 42.0.
ContentVersionRating
Represents a rating on a version of a file. This
object is available in API version 42.0 ...
- 3,363
3
votes
Accepted
How to fetch contentNote records as per the contact record?
There exists a relation between ContentNote and ContentDocumentLink. In order to get the ContentNote or ContentVersion, there are different ways of achieving it.
Using 2 SOQL's
You will have to ...
- 6,466
3
votes
Accepted
Real time dynamic emails
Looking at e.g. Movable Ink and other vendors is a good start, as the only supported feature in Marketing Cloud is Live Image, which can only replace an image based on a specific rule (e.g. show image ...
- 19.1k
3
votes
Accepted
Content Distribution Records are not getting created
To enable Deliver Content from the library:
Enable Content Delivery function for the org and Create Public links for the profile/permission set.
Change to Classic
Enter Setup
Expand Customize->...
- 46
3
votes
Find the name of an image based on its URL in Marketing Cloud
I have found the most success to be using the REST API simple query with the like operator. The caveat being instead of using the whole URL, you use just the image name at the end. E.g. myimage.png ...
- 29.7k
2
votes
Full list of Tags used by Content
TagDefinition gives us the list of tag names used across eligible objects but not for the Content documents.
You can get that list by parsing the log that is generated by this script. Not at all a ...
- 21
2
votes
Exporting Content from Salesforce
You can create the report for that data you want to export with all the filter criteria you need. And then export that data directly from reports.
- 1,184
2
votes
Exporting Content from Salesforce
We use the Salesforce Dataloader for manual queries where we want to select individual fields and then have a weekly download that backs up our entire database in it's current condition.
Backups are ...
- 275
2
votes
Content Delivery Wizard: No files returned
I think the problem is that the 'Library Administrator' permission does't have the 'Content Delivery' permission. I had the same problem and this solved it. See this article: https://help.salesforce....
- 21
2
votes
Can we use SOSL to search content libraries
Here is little experiment that I did for this ,
Uploaded a word document(14 pages long) in the Content Object .
The next thing I did was to pick a very random word thats there in the document .
Ran ...
2
votes
Accepted
BeforeDelete Trigger on ContentDocumentLink object not firing
I know this is quite late response, I totally forgot about this question. Anyhow, just updating this question so that if anyone does encounter such an issue, he/she may find solace.
I'm not sure if ...
- 5,782
2
votes
How to share files uploaded in "Files" related list to Community Users
Replace YOUROBJECTAPI with your object api name and it will share only files uploaded on a that object
trigger shareFilesWithCommunityUsers on ContentDocumentLink(before insert){
Schema....
- 13.5k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
content × 199apex × 33
contentversion × 33
contentdocument × 33
marketing-cloud × 28
files × 19
soql × 18
libraries × 17
visualforce × 16
ampscript × 12
email × 9
content-builder × 8
contentdocumentlink × 8
data-loader × 7
dynamic × 7
trigger × 6
chatter-file × 6
community × 5
knowledge × 5
lightning-aura-components × 4
lightning × 4
attachment × 4
images × 4
document × 4
contentworkspace × 4