19 votes
Accepted

Relationship between ContentVersion object and Document object

Content Document: It Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files. The maximum number of documents that can be published is 30,000,000. This ...
Sam's user avatar
  • 238
8 votes
Accepted

Where are the documents from the Documents tab in Lightning?

Documents are not available in Lightning Experience. You need to switch back to Classic to access them. https://help.salesforce.com/articleView?id=lex_gaps_limitations_files_and_content.htm&type=...
Jeff's user avatar
  • 909
7 votes

What contributes to Salesforce File Storage?

As per Salesforce docs: File storage includes files in attachments, Files home, Salesforce CRM Content, Chatter files (including user photos), the Documents tab, the custom File field on ...
Tushar Sharma's user avatar
7 votes

Add watermark to PDF document

Yes you can do this when you render a visualforce page as a pdf. Just create a static resource that has your watermark image, and add the following lines to your Visualforce Page. <style> ....
Mitch Spano's user avatar
  • 1,525
5 votes

Document.fullScreen API implementation in Lightning Web Components(LWC)

Locker is currently preventing access to the fullscreen API, not LWC. You can try out the following snippet of javascript in the Locker console. document.body.requestFullscreen // Locker OFF: ...
pmdartus's user avatar
  • 2,617
4 votes
Accepted

Replacing HTML Document error

This is because you are already using the HTML in the branding header of your community. So it is locked out. Remove it first from the community and the do the replacement and add it back to the com.. ...
leo fontani's user avatar
4 votes
Accepted

Save text in Document object of Salesforce in ISO-8859-1/ANSI/ASCII format

The String type in Salesforce is always a UTF-8 String. The most practical way to make sure it's an actual ISO-8859-1 string is to use a base-64 encoded string and send it directly into the blob via ...
sfdcfox's user avatar
  • 481k
3 votes

Replacing HTML Document error

One additional suggestion if the answer does not work for you (as was my case) If the file you used under Community Management | Administration | Branding wasn't originally in the Document folder ...
cropredy's user avatar
  • 69.8k
3 votes
Accepted

Access Document(pdf or doc) without Salesforce login

An easier approach would be to use Chatter Files. When you upload a file to chatter, you have an option to Share via Link. That link is publically available. E.g. the 2 links below are from my Dev ...
Aayush K's user avatar
  • 1,500
3 votes
Accepted

Inserting a PDF Record as attachment Maximum view state size limit (135KB) exceeded

Since you are storing the Blob value of the PDF in the class variable b, the entire Blob is considered part of the Visualforce view state, so the page can't be rendered. One option is to only use ...
Jeremy Nottingham's user avatar
3 votes
Accepted

images not displaying in word document

I had a very similar issue while exporting it to excel. Image not getting displayed in exported excel from VF page Build your url like this https://mydomain.my.salesforce.com/servlet/servlet....
Prady's user avatar
  • 12.2k
3 votes
Accepted

Collaboration of Files

Collaboration on files is available in salesforce as salesforce files but at this point it lacks the ability of real time editing like google drive .You can set workflow around salesforce content ...
Mohith Shrivastava's user avatar
3 votes
Accepted

Show formula field image in Visualforce Site

To get access to images in SITES, simply add the images into a zip file and save as a public static resource. Reference the static resource using VF markup: <apex:image url="{!URLFOR($Resource....
cropredy's user avatar
  • 69.8k
3 votes

Navigate to the Documents Tab

If you have a little bit of programming skill and can use Execute Anonymous, you can also discover the Tab url dynamically using the Document object's Key Prefix. In this case, the prefix is 015, so ...
Adrian Larson's user avatar
  • 149k
3 votes
Accepted

Navigate to the Documents Tab

Click on + Sign at end of all tabs visible to you , this will take you to all tabs sorted alphabetically, search for document.
Ishwar Mete's user avatar
  • 1,492
3 votes

Can I display video in Lightning Component which is stored in Documents or SF Files?

If you have video stored in the salesforce files , you can use the lightning:fileCard component to show the preview of the video <aura:component> <lightning:fileCard fileId="...
Mohith Shrivastava's user avatar
3 votes
Accepted

Jquery document.ready function is not working after calling apex method

The general pattern to use here is to re-run the jQuery logic once the re-render is complete: <script type="text/javascript"> function addChangeListener() { var j$ = jQuery.noConflict(); ...
Keith C's user avatar
  • 135k
2 votes

Where Are Attachments Stored?

Open Developer console and in the query editor use the following query to find your document/attachment and the folder/parent in which it exists For documents, Select Id,Name,Folder.Name,createddate ...
Shankish's user avatar
  • 440
2 votes
Accepted

How to upload to "My Personal Documents"

If you're in Classic, from your Home page, click on the + sign all the way to the right of the Menu at the top of the page where your Objects and Apps are are listed to get a list of all Apps. Then ...
crmprogdev's user avatar
  • 40.9k
2 votes

How to pass the XML as a url in DOMParser

On item 1, not too clear what your problem is, but to call the code with a URL you would use: Strign url = 'https://...'; new DomDocument().parseResponseDom(url); (See the DOM.Document documentation ...
Keith C's user avatar
  • 135k
2 votes
Accepted

How to fetch images on VF Page which were stored in a Document folder

Instead of using Document I would recommend using Attachment. So form where you get doctor details along with doctor image should be VF Page <apex:page showHeader="false" controller="...
Vigneshwaran G's user avatar
2 votes
Accepted

Documents in Customer Communties

Here's some advice. Take it or leave it. Exposing documents externally is possible in salesforce, but it's not easy or scalable. For our communities we have switched over to an Amazon S3 bucket. ...
Ross Bassett's user avatar
2 votes

Jquery document.ready function is not working after calling apex method

Your jQuery is adding a change handler to an element (#table) that is affected by a partial page rerender in Visualforce. When getPrice() is executed, Visualforce rerenders the contents of the <...
David Reed's user avatar
  • 92.1k
2 votes
Accepted

Unable to get all elements in List<Dom.XmlNode>

Unlike JSON (where Salesforce provides us a good tool to parse and deserialize), working with XML in Apex is a lot more manual. The classes in the Dom namespace (Document and XmlNode) parse the XML, ...
Derek F's user avatar
  • 59.3k
1 vote

Document and ContentVersion

Document Represents a file that a user has uploaded. Unlike Attachment records, documents are not attached to a parent object. ContentVersion Represents a specific version of a document in Salesforce ...
glls's user avatar
  • 20k
1 vote

File Name and File Extension not displaying after uploading file into Salesforce Document

After adding this line of code: var doc = new sfdcDocument(); doc.Name = "test"; doc.FolderId = "xxxxxxxxxx"; //FolderID of Salesforce folder in which document get uploaded. doc.Type = "pdf";...
Utkarsh Dubey's user avatar
1 vote

Documents in Customer Communties

Options that I can think of: Create a knowledge article and upload the PDF to that article, than link to the knowledge article on your page Convert your PDF to a web page and than render the page as ...
gNerb's user avatar
  • 9,441
1 vote
Accepted

Bulk API - Upload documents (files and URL) through CSV

I can see in the source for BulkConnection the version of createBatchWithFileAttachments you are calling. That method attempts to use the string file as a path relative to the rootDirectory. That ...
Daniel Ballinger's user avatar
1 vote
Accepted

Displaying image in visualforce page from document as well as from object

Try something like this: <apex:page standardController="Contact" recordsetvar="Accounts"> <apex:pageBlock> <apex:pageBlockTable value="{!Accounts}" var="a"> &...
Raul's user avatar
  • 18.7k
1 vote

Displaying image in visualforce page from document as well as from object

I believe the following change should work: <apex:column> <apex:image url="{!blankvalue(a.Upload_Image__c, image)}" width="50" height="50"> </apex:image> </apex:...
sfdcfox's user avatar
  • 481k

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