Alex Poole

Pragmatic PHP, MySQL, Marketing & Technology

Alex Poole header image 2

SugarCRM SOAP API - using the set_note_attachment method

June 17th, 2010 by alex

Docs are still a bit thin on the ground for the new Sugar SOAP API.

I dug around loads of legacy cr*p trying to get this working.

Then I ended up reading the WSDL, which might not be your idea of fun either.

Here’s the important bit:

$attachment = Array(
"id" => $note_id,
"filename" => "test.pdf",
"file" => $file,
);

$result = $soapclient->call("set_note_attachment", array('session' => $session_id, 'note' => $attachment));

Note please, that the params are passed through with the element name “note”, not “attachment”, “data” or some other such.
This way it, er works :)

You can get the rest of it here: https://www.sugarcrm.com/forums/showthread.php?t=56045

Tags:   No Comments

Leave a Comment

0 responses so far ↓

There are no comments yet...Kick things off by filling out the form below.