Attachments problems with DIAPI
I want to add one or more attachments to an activity (contacts object in sap).
I have successfully added an attachment to sap using the attachments2 object.
I try to add an attachment to the activity with the following code:
oContact.AttachmentEntry = 123 // where 123 is the code of the attachment given by attachments2 object oContact.Attachments.Add oReturn = oContact.Update()
When I get the list of the attachments associated with the activity, no attachments is returned by the function
Attachments of the contacts object.
Is there also a way to attach more than one file?
Executing more than once the above code don't have the expected result, it only overwrites the attachment entry.