CrmServiceClient.CreateAnnotation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This creates a annotation [note] entry, related to a an existing entity
Required Properties in the fieldList
notetext (string) = Text of the note,
subject (string) = this is the title of the note
public Guid CreateAnnotation (string targetEntityTypeName, Guid targetEntityId, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> fieldList, Guid batchId = default);
member this.CreateAnnotation : string * Guid * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> * Guid -> Guid
Public Function CreateAnnotation (targetEntityTypeName As String, targetEntityId As Guid, fieldList As Dictionary(Of String, CrmDataTypeWrapper), Optional batchId As Guid = Nothing) As Guid
Parameters
- targetEntityTypeName
- String
Target Entity TypeID
- targetEntityId
- Guid
Target Entity ID
- fieldList
- Dictionary<String,CrmDataTypeWrapper>
Fields to populate
- batchId
- Guid
Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately