Hi all,
I am converting from Salesforce to Sugar. I have imported all my various accounts, contacts, calls, meetings etc.
The last thing I want to do is to import all of the Salesforce attachments and link them to the relevant object in Sugar. I am assuming I can't use Import, but will need to do it via the API. Is there any sample code floating around to demonstrate this?
Thanks!
I am converting from Salesforce to Sugar. I have imported all my various accounts, contacts, calls, meetings etc.
The last thing I want to do is to import all of the Salesforce attachments and link them to the relevant object in Sugar. I am assuming I can't use Import, but will need to do it via the API. Is there any sample code floating around to demonstrate this?
Thanks!
The documents themselves go into the upload directory named with the id of the parent object with no file extension. The records go into the notes table. I created the sql from the Attachment CSV to insert the records into the notes table. You do have to figure out what kind of object it is for the parent_type as the SF CSV doesn't have that.
HTH