Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Annotation -- Regrading Annotation entity whether I set IsDocument to true or false, it becomes true

$
0
0

```c#

Here is my code:

var caseNote = new Annotation
{
ObjectId = existingCases.Entities.First().ToEntityReference(),
Subject = request.Title,
NoteText = request.Description,
FileName = request.FileName,
DocumentBody = string.IsNullOrEmpty(request.FileName) ? null : request.FileData,
MimeType = string.IsNullOrEmpty(request.FileName) ? null : MimeTypes.GetMimeType(request.FileName!),
IsDocument = false
};

// Create note
Guid noteId = await this.crmService.CreateAsync(caseNote);

return new CreateCaseNoteCommandResult
{
Id = noteId
};

```

As you can see, I set IsDocument equals false, but when I queried the database, it always equals true


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>