Microsoft Dynamics CRM 2013 – Plugin Messages – AddMember – deep dive

SdkMessage.Name SdkMessageRequest.Name SdkMessage.CategoryName
AddMember AddMemberList None

The AddMember Message is called when you add a entity to a marketing list.

What happens when you add an entity to a marketing list …

08.10.2013 11:36:13.236 :: INFO :: Entity: list => Message: AddMember => Stage: 10
08.10.2013 11:36:13.237 :: INFO :: Entity: list => Message: AddMember => Stage: 20
08.10.2013 11:36:13.257 :: INFO :: Entity: list => Message: AddMember => Stage: 40

For each entity you selected to add to the marketing list the AddMember message is triggered (Stage 10-20-40 => pre Validation, pre Operation and post Operation).

Here is the corresponding context. If you look at the properties you will find that the listid (= Guid of marketinglist) and the enitityid (= Guid of account, contact or lead) are members of the InputParameters. The entity-type is not part of the parameterbag, because the system knows which entitytype is allowed for the marketinglist you are trying to add the item.

In the post-stage the outputparameter Id is the guid of the created  listmember (in the sql database this is an entry in the ListMemberbase-table.

08.10.2013 11:36:13.234 :: INFO :: Start XrmLoggerPlugin ======================================================================== >>>
08.10.2013 11:36:13.234 :: INFO :: MessageName: AddMember
08.10.2013 11:36:13.234 :: INFO :: PrimaryEntityName: list
08.10.2013 11:36:13.235 :: INFO :: PrimaryEntityId: 00000000-0000-0000-0000-000000000000
08.10.2013 11:36:13.235 :: INFO :: Stage: 10
08.10.2013 11:36:13.235 :: INFO :: BusinessUnitId: 7647d68b-471d-e311-b013-000c2926dde4
08.10.2013 11:36:13.235 :: INFO :: CorrelationId: 8cf9ec1d-1259-4b6c-8a72-9296c52c6b2d
08.10.2013 11:36:13.235 :: INFO :: Depth: 1
08.10.2013 11:36:13.235 :: INFO :: InitiatingUserId: 0cd683a0-541d-e311-b013-000c2926dde4
08.10.2013 11:36:13.235 :: INFO :: InputParameters:
08.10.2013 11:36:13.235 :: INFO ::  >  Key: ListId / Value: 6a82f56a-9c2d-e311-b696-000c2926dde4
08.10.2013 11:36:13.235 :: INFO ::  >  Key: EntityId / Value: fc708f4b-2e2c-e311-8137-000c2926dde4
08.10.2013 11:36:13.235 :: INFO :: IsExecutingOffline: False
08.10.2013 11:36:13.235 :: INFO :: IsInTransaction: False
08.10.2013 11:36:13.235 :: INFO :: IsOfflinePlayback: False
08.10.2013 11:36:13.235 :: INFO :: IsolationMode: 1
08.10.2013 11:36:13.235 :: INFO :: Mode: 0
08.10.2013 11:36:13.235 :: INFO :: OperationCreatedOn: 10/8/2013 9:36:13 AM
08.10.2013 11:36:13.235 :: INFO :: OperationId: 00000000-0000-0000-0000-000000000000
08.10.2013 11:36:13.235 :: INFO :: OrganizationId: eba3ca00-3338-49dd-b206-8ed1aacb1c3e
08.10.2013 11:36:13.235 :: INFO :: OrganizationName: crmdemo
08.10.2013 11:36:13.235 :: INFO :: OutputParameters:
08.10.2013 11:36:13.235 :: INFO :: OwningExtension: Microsoft.Xrm.Sdk.EntityReference
08.10.2013 11:36:13.235 :: INFO :: ParentContext: 
08.10.2013 11:36:13.235 :: INFO :: PostEntityImages: Microsoft.Xrm.Sdk.EntityImageCollection
08.10.2013 11:36:13.235 :: INFO :: PreEntityImages: Microsoft.Xrm.Sdk.EntityImageCollection
08.10.2013 11:36:13.235 :: INFO :: RequestId: 
08.10.2013 11:36:13.235 :: INFO :: SecondaryEntityName: none
08.10.2013 11:36:13.235 :: INFO :: SharedVariables: Microsoft.Xrm.Sdk.ParameterCollection
08.10.2013 11:36:13.235 :: INFO :: UserId: 0cd683a0-541d-e311-b013-000c2926dde4
08.10.2013 11:36:13.235 :: INFO :: Ende XrmLoggerPlugin ======================================================================== >>>

08.10.2013 11:36:13.236 :: INFO :: Start XrmLoggerPlugin ======================================================================== >>>
08.10.2013 11:36:13.236 :: INFO :: MessageName: AddMember
08.10.2013 11:36:13.236 :: INFO :: PrimaryEntityName: list
08.10.2013 11:36:13.236 :: INFO :: PrimaryEntityId: 00000000-0000-0000-0000-000000000000
08.10.2013 11:36:13.236 :: INFO :: Stage: 20
08.10.2013 11:36:13.236 :: INFO :: BusinessUnitId: 7647d68b-471d-e311-b013-000c2926dde4
08.10.2013 11:36:13.236 :: INFO :: CorrelationId: 8cf9ec1d-1259-4b6c-8a72-9296c52c6b2d
08.10.2013 11:36:13.236 :: INFO :: Depth: 1
08.10.2013 11:36:13.236 :: INFO :: InitiatingUserId: 0cd683a0-541d-e311-b013-000c2926dde4
08.10.2013 11:36:13.236 :: INFO :: InputParameters:
08.10.2013 11:36:13.236 :: INFO ::  >  Key: ListId / Value: 6a82f56a-9c2d-e311-b696-000c2926dde4
08.10.2013 11:36:13.236 :: INFO ::  >  Key: EntityId / Value: fc708f4b-2e2c-e311-8137-000c2926dde4
08.10.2013 11:36:13.236 :: INFO :: IsExecutingOffline: False
08.10.2013 11:36:13.236 :: INFO :: IsInTransaction: True
08.10.2013 11:36:13.236 :: INFO :: IsOfflinePlayback: False
08.10.2013 11:36:13.236 :: INFO :: IsolationMode: 1
08.10.2013 11:36:13.236 :: INFO :: Mode: 0
08.10.2013 11:36:13.236 :: INFO :: OperationCreatedOn: 10/8/2013 9:36:13 AM
08.10.2013 11:36:13.236 :: INFO :: OperationId: 00000000-0000-0000-0000-000000000000
08.10.2013 11:36:13.236 :: INFO :: OrganizationId: eba3ca00-3338-49dd-b206-8ed1aacb1c3e
08.10.2013 11:36:13.236 :: INFO :: OrganizationName: crmdemo
08.10.2013 11:36:13.236 :: INFO :: OutputParameters:
08.10.2013 11:36:13.236 :: INFO :: OwningExtension: Microsoft.Xrm.Sdk.EntityReference
08.10.2013 11:36:13.236 :: INFO :: ParentContext: 
08.10.2013 11:36:13.236 :: INFO :: PostEntityImages: Microsoft.Xrm.Sdk.EntityImageCollection
08.10.2013 11:36:13.236 :: INFO :: PreEntityImages: Microsoft.Xrm.Sdk.EntityImageCollection
08.10.2013 11:36:13.236 :: INFO :: RequestId: 
08.10.2013 11:36:13.236 :: INFO :: SecondaryEntityName: none
08.10.2013 11:36:13.236 :: INFO :: SharedVariables: Microsoft.Xrm.Sdk.ParameterCollection
08.10.2013 11:36:13.236 :: INFO :: UserId: 0cd683a0-541d-e311-b013-000c2926dde4
08.10.2013 11:36:13.236 :: INFO :: Ende XrmLoggerPlugin ======================================================================== >>>

08.10.2013 11:36:13.256 :: INFO :: Start XrmLoggerPlugin ======================================================================== >>>
08.10.2013 11:36:13.256 :: INFO :: MessageName: AddMember
08.10.2013 11:36:13.256 :: INFO :: PrimaryEntityName: list
08.10.2013 11:36:13.256 :: INFO :: PrimaryEntityId: 00000000-0000-0000-0000-000000000000
08.10.2013 11:36:13.256 :: INFO :: Stage: 40
08.10.2013 11:36:13.257 :: INFO :: BusinessUnitId: 7647d68b-471d-e311-b013-000c2926dde4
08.10.2013 11:36:13.257 :: INFO :: CorrelationId: 8cf9ec1d-1259-4b6c-8a72-9296c52c6b2d
08.10.2013 11:36:13.257 :: INFO :: Depth: 1
08.10.2013 11:36:13.257 :: INFO :: InitiatingUserId: 0cd683a0-541d-e311-b013-000c2926dde4
08.10.2013 11:36:13.257 :: INFO :: InputParameters:
08.10.2013 11:36:13.257 :: INFO ::  >  Key: ListId / Value: 6a82f56a-9c2d-e311-b696-000c2926dde4
08.10.2013 11:36:13.257 :: INFO ::  >  Key: EntityId / Value: fc708f4b-2e2c-e311-8137-000c2926dde4
08.10.2013 11:36:13.257 :: INFO :: IsExecutingOffline: False
08.10.2013 11:36:13.257 :: INFO :: IsInTransaction: True
08.10.2013 11:36:13.257 :: INFO :: IsOfflinePlayback: False
08.10.2013 11:36:13.257 :: INFO :: IsolationMode: 1
08.10.2013 11:36:13.257 :: INFO :: Mode: 0
08.10.2013 11:36:13.257 :: INFO :: OperationCreatedOn: 10/8/2013 9:36:13 AM
08.10.2013 11:36:13.257 :: INFO :: OperationId: 00000000-0000-0000-0000-000000000000
08.10.2013 11:36:13.257 :: INFO :: OrganizationId: eba3ca00-3338-49dd-b206-8ed1aacb1c3e
08.10.2013 11:36:13.257 :: INFO :: OrganizationName: crmdemo
08.10.2013 11:36:13.257 :: INFO :: OutputParameters:
08.10.2013 11:36:13.257 :: INFO ::  >  Key: Id / Value: d054d780-9c2d-e311-b696-000c2926dde4
08.10.2013 11:36:13.257 :: INFO :: OwningExtension: Microsoft.Xrm.Sdk.EntityReference
08.10.2013 11:36:13.257 :: INFO :: ParentContext: 
08.10.2013 11:36:13.257 :: INFO :: PostEntityImages: Microsoft.Xrm.Sdk.EntityImageCollection
08.10.2013 11:36:13.257 :: INFO :: PreEntityImages: Microsoft.Xrm.Sdk.EntityImageCollection
08.10.2013 11:36:13.257 :: INFO :: RequestId: 
08.10.2013 11:36:13.257 :: INFO :: SecondaryEntityName: none
08.10.2013 11:36:13.257 :: INFO :: SharedVariables: Microsoft.Xrm.Sdk.ParameterCollection
08.10.2013 11:36:13.257 :: INFO :: UserId: 0cd683a0-541d-e311-b013-000c2926dde4
08.10.2013 11:36:13.257 :: INFO :: Ende XrmLoggerPlugin ======================================================================== >>>

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation