developerforce/Force.com-Toolkit-for-PHP

Access Files module

tekoyaki opened this issue · 2 comments

Is there a way to access the new-ish Files module that replaced Notes & Attachments using the SOAP API? I cannot seem to find the module on the docs. Or is the change simply on the force.com side and backend is all the same, still using Attachment?

Saaha commented

Hello,
Actually, it's on Salesforce side, the only thing you need to maybe update is the wsdl and create connection with a recent one.
See SOAP API Developer Guide - Attachment

Edit: Tired, I missred your comment. I think there is no File object accessible with Soap. It seems for some objects, there is a middle implementation and with Soap you need to continue with old Object but with Apex code you can use newest Object.

Thanks.

After reading a lot of release notes and posts, I found that the "Files" module is actually named "ContentDocument" in force.com, and "Files" in Salesforce Chatter: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdocument.htm