1. Create Solution and add CRM Plugin project inside:
2. Create new plugin and register it to handle some available action (I used creation of account in post mode):
3. Open class of your plugin and fix line
base.RegisteredEvents.Add(new Tuple<int, string, string, Action<LocalPluginContext>>(40, "Create", "account", new Action<LocalPluginContext>(ExecuteHandleCustomAction)));
base.RegisteredEvents.Add(new Tuple<int, string, string, Action<LocalPluginContext>>(40, "slick_CustomActionsTest", null, new Action<LocalPluginContext>(ExecuteHandleCustomAction)));
<Step CustomConfiguration="" Name="HandleCustomAction" Description="Handles Custom Action" Id="00000000-0000-0000-0000-000000000000" MessageName="Create" Mode="Synchronous" PrimaryEntityName="account" Rank="1" SecureConfiguration="" Stage="PostOutsideTransaction" SupportedDeployment="ServerOnly">
<Step CustomConfiguration="" Name="HandleCustomAction" Description="Handles Custom Action" Id="00000000-0000-0000-0000-000000000000" MessageName="slick_CustomActionsTest" Mode="Synchronous" PrimaryEntityName="none" Rank="1" SecureConfiguration="" Stage="PostOutsideTransaction" SupportedDeployment="ServerOnly">
No comments:
Post a Comment