Skip to content

Add method to ForceClient to read documents from Salesforce API #62

Description

@cmortazavi

When querying the ContentVersion object, the "VersionData" field that is returned is in the form of a URL such as
"services/data/v56.0/sobjects/ContentVersion/0688c000008XvddAAC/VersionData"

This url is apparently the sObjectBlobRetrieve. See below StackExchange article as well as Salesforce documentation
https://salesforce.stackexchange.com/questions/300845/download-contentversion-versiondata-in-python
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_blob_retrieve.htm

According to Salesforce if a user wants to actually get the File, they need to make a web request to this url like

httpClient.GetByteArrayAsync

This should be a method in the ForceClient class

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions