24
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, ...
13
votes
Is it possible to get a sharing link (to non SFDC users) from 'files'/'content' via apex?
The idea thread mentioned by @crmprogdev is now realized.
As of winter 15 there is now programmatic access to content deliveries.
ContentDistribution cd = new ContentDistribution();
cd.name = 'test'...
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 ...
8
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 ...
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 ...
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 ...
6
votes
Accepted
How to access "servlet/rtaImage" resources over the API
You might be able to use the OAuth accessToken in a cookie with the HTTP GET request to servlet/rtaImage depending on the scope you requested when getting it.
I believe you will need to use the full ...
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/...
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:
...
4
votes
How do I create a master detail or lookup relationship to ContentVersion?
ContentVersion can not be the parent of any custom object.
ContentVersion can be the child, via a lookup relationship to Custom or Standard objects. This is done by Setup | Customize | Salesforce CRM ...
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 ...
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 ...
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 ...
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 = ...
3
votes
Accepted
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
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
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 ...
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..!!
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
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 ...
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 ...
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->...
3
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 ...
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 ...
2
votes
Any way to query CRM Content Subscriptions?
I had the same question. I found that EntitySubscription is only available if you have chatter enabled.
2
votes
Accepted
FOR LOOP problems - keep getting error
First I would declare @i with VAR @i before your loop. I don't think that is the issue here... you need to have FOR @i = 1 TO @limit DO
...
You're missing the DO keyword. Hope this helps!
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 ...
2
votes
Accepted
Displaying a variable before it has been set to a value
I would try this:
Before your " New Blog Post..." have the following AMPScript
%%[
SET @my_content = HTTPGet("http://dev.pushproject.fancentric.... /*etc*/
]%%
Then later on have
%%[
Set @...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
content × 197apex × 34
contentversion × 33
contentdocument × 32
marketing-cloud × 27
soql × 18
files × 18
visualforce × 16
libraries × 16
ampscript × 12
email × 9
dynamic × 8
content-builder × 8
contentdocumentlink × 8
data-loader × 7
trigger × 6
chatter-file × 6
community × 5
knowledge × 5
lightning-aura-components × 4
lightning × 4
attachment × 4
images × 4
document × 4
content-delivery × 4