Hot answers tagged

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, ...
user avatar
  • 256
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'...
user avatar
  • 9,607
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 ...
user avatar
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 ...
user avatar
  • 101
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 ...
user avatar
  • 63k
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 ...
user avatar
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 ...
user avatar
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/...
user avatar
  • 2,232
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: ...
user avatar
  • 962
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 ...
user avatar
  • 63k
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 ...
user avatar
  • 28.2k
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 ...
user avatar
  • 439k
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 ...
user avatar
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 = ...
user avatar
  • 12.9k
3 votes
Accepted

Exporting Content from Salesforce

you can try FileExporter app from appexchange.
user avatar
  • 372
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. &...
user avatar
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&...
user avatar
  • 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 ...
user avatar
  • 2,618
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..!!
user avatar
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 ...
user avatar
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 ...
user avatar
  • 3,273
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 ...
user avatar
  • 6,363
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 ...
user avatar
  • 17.2k
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->...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 28.3k
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.
user avatar
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!
user avatar
  • 3,207
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 ...
user avatar
  • 21
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 @...
user avatar
  • 3,207

Only top scored, non community-wiki answers of a minimum length are eligible