public override void RegisterEvents()
 {
     RegisteredEvents.AddRange(new RegisteredEventBuilder(PipelineStage.PreOperation, MessageType.Create).
                                   ForEntities(dlab_AutoNumbering.EntityLogicalName).
                                   WithExecuteAction(RegisterIncrementor).Build());
     RegisteredEvents.AddRange(new RegisteredEventBuilder(PipelineStage.PreOperation, MessageType.Delete).
                                   ForEntities(dlab_AutoNumbering.EntityLogicalName).
                                   WithExecuteAction(UnregisterIncrementor).Build());
     RegisteredEvents.AddRange(new RegisteredEventBuilder(PipelineStage.PreOperation, MessageType.Update).
                                   ForEntities(dlab_AutoNumbering.EntityLogicalName).
                                   WithExecuteAction(ProcessStateChange).Build());
 }
        public override void RegisterEvents()
        {
            RegisteredEvents.AddRange(
                new RegisteredEventBuilder(PipelineStage.PreOperation, MessageType.Create, MessageType.Update).
                ForEntities(Account.EntityLogicalName, Contact.EntityLogicalName, Lead.EntityLogicalName).
                WithExecuteAction(ExecuteCrmPhoneNumber).Build());

            RegisteredEvents.AddRange(
                new RegisteredEventBuilder(PipelineStage.PreOperation, MessageType.Create, MessageType.Update).
                ForEntities(BusinessUnit.EntityLogicalName, Competitor.EntityLogicalName, Site.EntityLogicalName, SystemUser.EntityLogicalName).
                WithExecuteAction(ExecuteCrmAddresses).Build());
        }
Exemplo n.º 3
0
 public override void RegisterEvents()
 {
     RegisteredEvents.AddRange(new RegisteredEventBuilder(PipelineStage.PostOperation, MessageType.Create, MessageType.Update).
                               ForEntities(Contact.EntityLogicalName).Build());
 }
 public override void RegisterEvents()
 {
     RegisteredEvents.AddRange(new RegisteredEventBuilder(PipelineStage.PreOperation, MessageType.Create).Build());
 }