Uploading PDF Attachments to Lead records using Zoho SDK v2.0.1.0
I am working on a c# application that utilizes the Zoho SDK v2.0.1 to create Lead records. Once the Lead record is successfully created, I need to upload the relevant PDF file as an attachment.
Once the CommonUtil.ValidateFile() method confirms that the filepath exists and is of acceptable size, I call the UploadAttachment() method on the ZCRMRecord instance. The returned APIResponse object confirms that the operation succeeded (STATUS_CODE=OK, Status = "success"), and the included ZCRMAttachment object provides the attachment's Id.
My issue is that the ZCRMAttachment's 'FileName' property is null and its 'Size' is 0. Opening ZohoCRM confirms that no attachments are associated with the Lead record.
How can the UploadAttachment() operation simultaneously succeed and fail? Am I missing another step in the upload process?
Any help in resolving this issue will be greatly appreciated.
Thanks and Regards,
Josh K.