Posts

Showing posts from May, 2020

Therapy coding for Dynamics 365 CE - Business Process Flow creation for a custom entity then activation BPF related codes finally adding it to a custom solution as a component

Hello,  Here is the console application of BPF creation, activation and appending to Test Solution: #region create business process flow string nameoftheEntityBPFtobeCreatedfor = "new_test"; CrmServiceClient service = null; try { service = Your_Connection_Obkject; if (service.IsReady) { #region Demonstrate #region Define workflow XAML // Define the workflow XAML. string xamlWF; string GuidMain = Guid.NewGuid().ToString(); String GuidforControlClassId = Guid.NewGuid().ToString(); String GuidforLabelId = Guid.NewGuid().ToString(); String GuidforStepLabelId = Guid.NewGuid().ToString(); xamlWF = @" <Activity x:Class=""XrmWorkflow" + GuidMain.Replace("{", "").Replace("}", "").Replace("-", "") + @""" xmlns=""http://schemas.microsoft.com/netfx/2009/xaml/activities"