Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 23811

This tag can be used for file related questions of any kind.

0 votes
3 answers
1k views

Which object should be used in storing files?

The Attachment object looks like the correct choice if you have a file you want to relate to only one record. ContentDocument with ContentDocumentLink looks good if you have a single file you want to …
3 votes
1 answer
7k views

Enable Query All Files permission

I see from the release notes that you can allow a user to query all files, even ones they don't own. I'm having trouble giving myself that permission. … I have a system admin profile, with view all data when I go to app permission under the system admin profile, it doesn't allow me to check the Query All Files permission What am I missing to enable this …
1 vote
1 answer
5k views

querying and creating folders/files from within a library

I have a library called Test, which has a folder in it called 123. The folder contains a single pdf file. I'm able to successfully query that file using the following SOQL statement. SELECT Id, Ti …
3 votes
Accepted

Enable Query All Files permission

It appears that you cannot give profiles the permission Query All Files. You need to create a permission set with that permission, that is found under App Permissions, and assign it to the user. …
Tyler Zika's user avatar
  • 2,922
1 vote
1 answer
1k views

SOQL all files in folder

Using Files, is that possible? …
0 votes
Accepted

SOQL all files in folder

SELECT Id, Title, FileExtension FROM ContentFolderItem WHERE ParentContentFolderId IN (SELECT Id FROM ContentFolder WHERE Name = 'Folder Name')
Tyler Zika's user avatar
  • 2,922
2 votes
2 answers
1k views

Display Salesforce File in lightning component

I see from this question that you can display an image in a lightning component. Will this work for a pdf file? Using the exact same code, it doesn't appear so. I did try using lightning:fileCard to …
4 votes
1 answer
3k views

Create and Link Document to multiple records using rest api

From the docs I've successfully been able to create a document in Salesforce using Inserting a New Document. I'd like to be able to link this document to multiple cases. From what I understand, it app …