Hi Codiax,
Please refer following code, its working for me....
string _subject = nt.Attributes.Contains("subject") ? nt.GetAttributeValue<string>("subject") : "";
string _filename = nt.Attributes.Contains("filename") ? nt.GetAttributeValue<string>("filename") : "";
Entity note = new Entity("annotation");
note["subject"] = _subject;
note["filename"] = _filename;
note["documentbody"] = nt.Attributes["documentbody"];
if (emailguid != Guid.Empty)
{
note["objectid"] = new EntityReference("email", emailguid);
}
Guid attachmentId = service.Create(note);
Entity note1 = service.Retrieve("annotation", attachmentId, new ColumnSet(true));
Entity attachment = new Entity("activitymimeattachment");
attachment["subject"] = _subject;
string fileName = _filename;
attachment["filename"] = _filename;
byte[] fileStream = new byte[] { };
attachment["body"] = Convert.ToBase64String(fileStream);
attachment["mimetype"] = "text / plain";
attachment["attachmentnumber"] = 1;
attachment["objectid"] = new EntityReference("email", emailguid);
attachment["objecttypecode"] = "email";
service.Create(attachment);