Share via


IExecutionContext.PrimaryEntityId Property

 

Applies To: Dynamics CRM 2015

Gets the GUID of the primary entity for which the pipeline is processing events.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

Guid PrimaryEntityId { get; }
property Guid PrimaryEntityId {
    Guid get();
}
abstract PrimaryEntityId : Guid with get
ReadOnly Property PrimaryEntityId As Guid

Property Value

Type: System.Guid

Type: Guid
The GUID of the primary entity for which the pipeline is processing events. For example, if the event pipeline is processing an account, this corresponds to the AccountId attribute, which is the primary key for the Account entity.

See Also

IExecutionContext Interface
Microsoft.Xrm.Sdk Namespace
Event execution pipeline

Return to top

© 2016 Microsoft. All rights reserved. Copyright