Discussions
BUG? Message with Attachments
I seem to have discovered a problem in WSDL 2.6 that doesn't allow you to post a message with more than one (1) attachments.
The process works fine if you send one, and only one attachment, but does not save the message against the transaction or entity if it has more than one attachment.
So using the following with the appropriate number of files added to the array:
[netsuiteserviceref].File[] f = new [netsuiteserviceref].File[1]
works
[netsuiteserviceref].File[] f = new [netsuiteserviceref].File[2] or
[netsuiteserviceref].File[] f = new [netsuiteserviceref].File[10]
does not.
The service responds with a isSuccess = true, but the message is never attached to the entity/transaction. Spent ages trying to figure out if one of the attachment types was causing the problem, but eventually tried sending each of the attachments, one by one, and that worked fine. So even sending a message with 2 basic PDFs attached, does not work.