I'm able to create records of entities and want to upload annotations (file attachments) but while the annotation is created and I get the GUID for the annotation, its completely empty holding no data.
I implemented, actually copy & pasted, the code from SDK\SampleCode\CS\BusinessDataModel\Annotation in samples in the SDK. Are there any other tricks to it? As mentioned I get a GUID in return that is a GUID for a empty annotation.
Annotation setupAnnotation = new Annotation()
{
Subject = "Example Annotation",
FileName = "ExampleAnnotationAttachment.txt",
DocumentBody = Convert.ToBase64String(new UnicodeEncoding().GetBytes("Sample Annotation Text")),
MimeType = "text/plain"
};
// Create the Annotation object.
var guid = _orgService.Create(setupAnnotation);
This should be rather simple, but if I use CRM REST Builder to fetch the annotation with that GUID everything is empty:
filesize: null ,
overriddencreatedon: null ,
objecttypecode: null ,
mimetype: null ,
documentbody: null ,
filename: null ,
notetext: null ,
*This post is locked for comments
I have the same question (0)