Topic by Ross Crockett
Content
Hey,
Has anyone had success in adding a file attachment to a Custom Object using the Connect Web Service API? I can get FileAttachments and do upload via the PHP API but can't figure out how to set the FileAttachmentCommon object in the GenericObject. I've seen exmaples on how to do this with primary objects that offer a setFileAttachments() method, but this isn't an option for Custom Objects (GenericObject).
I require a simple update of a Custom Object that adds a new attachment to the list of FileAttachments. I have attached a code snippet of where I am at, but basically I need help with the section with the comment.
Not sure how to get the FileAttachmentCommon object added as an Object Type DataValue and generic field in the Generic Object. Any help would be great!