Skip to main content
20 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
  • 258
10 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
  • 929
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,625
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
5 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
  • 497k
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,687
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
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
  • 136k
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

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
  • 72.1k
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
  • 151k
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
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
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
  • 136k
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
  • 93.2k
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
  • 62.7k
2 votes

POSTMAN form-data in APEX

In RFC 2388, published in August 1998, it was noted that an additional header was needed to transfer the data in non-binary formats, such as quoted-printable or base64. This is the Content-Transfer-...
sfdcfox's user avatar
  • 497k
1 vote

Need to give guest profile access to documents

If the document is marked as Externally Available checkbox, then if the image is sent in email template to the external user then that can be displayed without login into Salesforce. Refer Display and ...
Santanu Boral's user avatar
1 vote
Accepted

SteelBrick - Generate Document in Word(doc) Format

hii Saumya if you want to generate the document in docx format then i thnk import the data and then converted it into docx format here is the link which maybe helpful for youThis will provide you to ...
Radhe's user avatar
  • 104
1 vote
Accepted

Using Apex or API, how to determine who has access to a Document Folder?

As far as I can tell, the only object that exposes this is the DocumentFolder object, which is only in the Metadata API. Calling the Metadata API from Apex Code is non-trivial, but as long as you ...
sfdcfox's user avatar
  • 497k
1 vote
Accepted

Saved image in Documents and I need to reference as URL

In Salesforce Classic under the documents tab if you select the image you have uploaded and hit the view file button as shown below. you can then get the /servlet/ section from the URL of the image ...
Art of Cloud's user avatar
1 vote
Accepted

Uploading from large CSV file without Dataloader?

This happens because the "view state" happens to be limited to only 135kb. Typically, when you're uploading files, you need to remember that you can't store files in the view state. Instead, mark the ...
sfdcfox's user avatar
  • 497k
1 vote

How exactly do you update/insert documents in apex?

You can upsert based on Name (but sadly, not developer name). You'll get an exception if the name is not unique, though: upsert d Document.Name; Also, you didn't actually specify a name, so you need ...
sfdcfox's user avatar
  • 497k
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
  • 20.2k
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,510
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.8k

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