Esempio n. 1
0
        public void Run()
        {
            var service = XrmCommand.GetService();

            DataTransferService = new DataTransferService(service);
            DataTransferService.SetDefaultProperties();

            var data       = DataTransferService.DataReader.GetDataFromCrm(FetchXml);
            var parsedData = DataTransferService.DataTransformer.TransformDataForFile(data);

            DataTransferService.DataWriter.WriteDataToFile(parsedData, WorkingDirectory);
        }
Esempio n. 2
0
        public void Run()
        {
            var service = XrmCommand.GetService();

            DataTransferService = new DataTransferService(service);
            DataTransferService.SetDefaultProperties();

            // TODO, read guid map from user input.
            var guidMap    = new Dictionary <Guid, Guid>();
            var data       = DataTransferService.DataReader.ParseDataFromFile(WorkingDirectory);
            var parsedData = DataTransferService.DataTransformer.TransformDataForCrm(data);

            var version = DataTransferService.DataReader.GetCrmVersion();

            DataTransferService.DataWriter.ImportDataToCrm(parsedData, version, guidMap, false, false, false);
        }