Note Attachment - DownloadAttachment() receive Empty ResponseJSON
Hello,
I'm trying to get an attachment from Notes Record using c# sdk.
The problem is that I get an empty response even if attachment exists.
Please see the code below:
1. First I get the "Note" instance.
- ZCRMRecord recordIns = ZCRMRecord.GetInstance("Notes", {_note_ID_});
2. get The attachment - try to download attachment
- FileAPIResponse response = recordIns.DownloadAttachment({_attachment_ID_});
3. received:
- {STATUS_CODE=OK,RESPONSE_JSON=,RESPONSE_HEADERS=X-RATELIMIT-LIMIT=0;X-RATELIMIT- REMAINING=0;X-RATELIMIT-RESET=0;}
______________________________________
Also have tried another way:
1. Get account
- ZCRMModule accountsInstance = ZCRMModule.GetInstance("Accounts");
2. Search account by criteria
- ZCRMRecord account = accountsInstance.SearchByCriteria(.........)
3. Get all Notes
- List<ZCRMNote> notes = account .GetNotes();
4. Loop through notes list
5. Get Note Attachments
6. Try to Download attachment
- var attachment = note.Attachments[0]
- var tst = item.DownloadAttachment(attachment.Id);
- //Receive empty response
- {STATUS_CODE=OK,RESPONSE_JSON=,RESPONSE_HEADERS=X-RATELIMIT-LIMIT=0;X-RATELIMIT-REMAINING=0;X-RATELIMIT-RESET=0;}