CrmServiceClient.CreateAnnotation Method (String, Guid, Dictionary<String, CrmDataTypeWrapper>, Guid)

 

Applies To: Dynamics CRM 2015

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

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

Syntax

public Guid CreateAnnotation(
    string targetEntityTypeName,
    Guid targetEntityId,
    Dictionary<string, CrmDataTypeWrapper> fieldList,
    Guid batchId = null
)
public:
Guid CreateAnnotation(
    String^ targetEntityTypeName,
    Guid targetEntityId,
    Dictionary<String^, CrmDataTypeWrapper^>^ fieldList,
    Guid batchId = null
)
member CreateAnnotation : 
        targetEntityTypeName:string *
        targetEntityId:Guid *
        fieldList:Dictionary<string, CrmDataTypeWrapper> *
        batchId:Guid = null -> Guid
Public Function CreateAnnotation (
    targetEntityTypeName As String,
    targetEntityId As Guid,
    fieldList As Dictionary(Of String, CrmDataTypeWrapper),
    batchId As Guid
) As Guid

Parameters

  • batchId
    Type: System.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

Return Value

Type: System.Guid

See Also

CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright