Exemplo n.º 1
0
        protected override void Execute(CodeActivityContext context)
        {
            CrmConnection connection = CrmConnection.Parse(CrmConnectionString.Get(context));

            using (OrganizationService orgService = new OrganizationService(connection))
            {
                Common.UpdateSolution update = new Common.UpdateSolution(orgService);

                update.Update(UniqueSolutionName.Get(context), Version.Get(context));
            }
        }
Exemplo n.º 2
0
        protected override void Execute(CodeActivityContext context)
        {
            CrmConnection connection = CrmConnection.Parse(CrmConnectionString.Get(context));

            using (OrganizationService orgService = new OrganizationService(connection))
            {
                Common.ExportSolution export = new Common.ExportSolution(orgService);

                OutputFile.Set(context, export.Export(Managed.Get(context),
                                                      OutputFolder.Get(context),
                                                      UniqueSolutionName.Get(context),
                                                      ExportAutoNumberingSettings.Get(context),
                                                      ExportCalendarSettings.Get(context),
                                                      ExportCustomizationSettings.Get(context),
                                                      ExportEmailTrackingSettings.Get(context),
                                                      ExportGeneralSettings.Get(context),
                                                      ExportIsvConfig.Get(context),
                                                      ExportMarketingSettings.Get(context),
                                                      ExportOutlookSynchronizationSettings.Get(context),
                                                      ExportRelationshipRoles.Get(context)));
            }
        }
Exemplo n.º 3
0
        protected override void Execute(CodeActivityContext context)
        {
            CrmConnection connection = CrmConnection.Parse(CrmConnectionString.Get(context));


            using (OrganizationService service = new OrganizationService(connection))
            {
                using (CIContext ciContext = new CIContext(service))
                {
                    var query = from s in ciContext.SolutionSet
                                where s.UniqueName == UniqueSolutionName.Get(context)
                                select s;
                    Solution solution = query.FirstOrDefault <Solution>();

                    if (solution == null)
                    {
                        throw new Exception(string.Format("Solution {0} could not be found", UniqueSolutionName));
                    }

                    SolutionDetails.Set(context, solution);
                }
            }
        }
Exemplo n.º 4
0
 protected override void Execute(CodeActivityContext context)
 {
     ConnectionAttributes.Set(context, CrmConnectionConverter.ConvertFromConnectionString(CrmConnectionString.Get(context)));
 }