You need to sign in to do that
Don't have an account?
Joe Prempeh 7
How can I access Files in Notes and Attachments through REST API?
I am looking for a way to access the Notes and Attachments section on a custom object called Assets__c. I am using the Force.com REST API to access the platform, and on the UI, there is a notes and attachment section that lists the files that have been uploaded using Chatter. I want to know the URL and method by which I can access these files and how/if I will get a direct link to those attachments that I can then use client side.
Any help would be incredible! Thanks!
Any help would be incredible! Thanks!
A direct SOQL query is also possible against Note (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_note.htm) and Attachment (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_attachment.htm)
All Answers
A direct SOQL query is also possible against Note (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_note.htm) and Attachment (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_attachment.htm)
Here are the calls I have tried so far:
GET /connect/files/describe
GET /connect/files/[recordId]
GET /services/data/v41.0/sobjects/SalesforceFiles
We converted our Attachements/Notes into the Lightning Files system a few months back, and I am trying to specifically access a file's Record Id:
0690P000002hZOF
^ Does that even look like the Object prefix for the Files sobject? I wish Salesforce gave mapping table that let users map prefixes to the Object name...