Exemple #1
0
        static void Main(string[] args)
        {
            Console.Title = "The Syncer";
            IntPtr hWnd = FindWindow(null, "The Syncer");

            if (hWnd != IntPtr.Zero)
            {
                ShowWindow(hWnd, 0);
            }

            // Step one we first find all new terminated accounts in Exigo with GUID's
            RemoveTerminatedAccounts RTA = new RemoveTerminatedAccounts();

            // Step two we change the status and customer type of the account in CRM and remove the GUID from Exigo so changes to account
            /// no longer affect crm.
            RTA.RemoveTermsNow();
            /// Following 2 lines are step 3, here we are adding the guid's for all accounts in CRM that have exigo id numbers on them
            /// where CRM GUID (Other 8) is blank in Exigo this allows end users to add an ID number to a CRM account and the Syncer will populate/overwrite with Exigo Record.
            UpdateExigoGuids UEG = new UpdateExigoGuids();

            UEG.ExecuteUpdate();
            UpdateModifiedAccounts UMA = new UpdateModifiedAccounts();

            UMA.IncrementalUpdate();
            NewAccountsControl MAC = new NewAccountsControl();

            MAC.CreateNewAccounts();
            DataControls.Settings.Logging.logger.WriteAllLogs();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            //  DataControls.UpdateModifiedAccounts up = new DataControls.UpdateModifiedAccounts();
            // up.IncrementalUpdate();
            //DataControls.Settings.Logging.logger.WriteAllLogs();
            //DataControls.Updater uma = new DataControls.Updater();
            //uma.DeleteAllOnes();

            RemoveTerminatedAccounts RTA = new RemoveTerminatedAccounts();

            RTA.RemoveTermsNow();
            UpdateExigoGuids UEG = new UpdateExigoGuids();

            UEG.ExecuteUpdate();
            UpdateModifiedAccounts UMA = new UpdateModifiedAccounts();

            UMA.IncrementalUpdate();
            NewAccountsControl MAC = new NewAccountsControl();

            MAC.CreateNewAccounts();
            DataControls.Settings.Logging.logger.WriteAllLogs();
        }