protected override void ExecuteInternal(ExtendedPluginContext context)
        {
            var                     systemService     = context.SystemOrganizationService;
            var                     userService       = context.OrganizationService;
            var                     initiatingService = context.InitiatingUserOrganizationService;
            ITracingService         tracingService    = context;
            IPluginExecutionContext pluginContext     = context;

            /***************************
            *    Plugin Logic Here    *
            ***************************/
        }
Example #2
0
        protected override void ExecuteInternal(ExtendedPluginContext context)
        {
            var sdkWay = ((Entity)context.InputParameters["Target"]).ToEntity <Contact>();
            var target = context.GetTarget <Contact>();

            var preImage        = context.GetPreEntity <Contact>();
            var sdkGetFirstName = target.Contains(Contact.Fields.FirstName)
                ? target.FirstName
                : preImage.FirstName;

            var finalTarget = context.CoalesceTargetWithPreEntity <Contact>();
            var firstName   = finalTarget.FirstName;

            /***************************
            *    Plugin Logic Here    *
            ***************************/
        }