DYNAMICS 365 ATTACH A NOTE TO A RECORD WITH C#
To attach a note to to an entity using C#, use the code below. The note entity is “annotation”.
For example, you could attach a note to a case (incident):
To attach a note to to an entity using C#, use the code below. The note entity is “annotation”.
For example, you could attach a note to a case (incident):
string entitytype = "incident"; |
Entity Note = new Entity("annotation"); |
Guid EntityToAttachTo = Guid.Parse("FDA93807-4EF3-E711-80F2-3863BB2E34E8"); // The GUID of the incident |
Note["objectid"] = new Microsoft.Xrm.Sdk.EntityReference(entitytype, EntityToAttachTo); |
Note["objecttypecode"] = entitytype; |
Note["subject"] = "Test Subject"; |
Note["notetext"] = "Test note text"; |
service.Create(Note); |
The data is available for 28 days but we can filter out the data for 30 days and its not a live telimetry. We can get the list of data ba...
No comments:
Post a Comment