function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kartik.skartik.s 

What package does Attachment belong too?

Hi All, I am trying to insert an attachment into Salesforce and i guess "Attachment" object is to be used to get this done. But i am not able to figure out the package which it belongs too. Could anybody please name the full package for Attachment class? Any help would be deeply appreciated. Thanks.
SuperfellSuperfell
that would depend on what tools you're using and how they're configured, but try com.sforce.soap.enterprise.sobject as a starting point.
kartik.skartik.s
Managed to get it working, by using SObject to create a Map for the Attachment. And i am in fact using Partner WSDL. So enterprise WSDL is probably not an option for me. Thanks for the help.
SuperfellSuperfell
Right, there is no attachment class in the partner WSDL (this being the point of the partner WDSL).