public static void TransformWebPart_UsingCSV() { string SharePointOnline_OR_OnPremise = "OP"; string UserName = "******"; string Password = "******"; string Domain = "MGMT7"; //string WebUrl = "https://intranet.poc.com/sites/TestContosoPublishingSite/"; //string WebPartType = "Content Editor"; // string WebPartType = "RemoteContentQueryWebPart"; string WebPartType = "TeaserWebPart"; //string WebPartType = "WelcomeWebPart"; //String OutPutDirectory = @"E:\v-suamso\FTC-CAMSimulation\TransformationTool\TestingResults\TransformWebPartAcrossWeb"; String OutPutDirectory = @"E:\VirendraKumar\ProjectTest\TransformWebPartAcrossWeb"; string targetWebPartFileName = "N/A"; string targetWebPartXmlFile = @"E:\v-suamso\FTC-CAMSimulation\TransformationTool\TestingResults\ConfigureNewWebPartXml\Single\AppPartXml.xml"; //string UsageFile = @"C:\DiscoveryTool\CAM\WebParts_Usage.csv"; string UsageFile = @"E:\VirendraKumar\ProjectTest\WebParts_Usage.csv"; WebPartTransformationHelper webPartTransformationHelper = new WebPartTransformationHelper(); webPartTransformationHelper.TransformWebPart_UsingCSV(UsageFile, WebPartType, targetWebPartFileName, targetWebPartXmlFile, OutPutDirectory, SharePointOnline_OR_OnPremise, UserName, Password, Domain); }
protected override void ProcessRecord() { WebPartTransformationHelper webPartTransformationHelper = new WebPartTransformationHelper(); webPartTransformationHelper.TransformWebPart_UsingCSV(WebPartUsageFilePath, SourceWebPartType, TargetWebPartFileName, TargetWebPartXmlFilePath, OutPutDirectory, SharePointOnline_OR_OnPremise, UserName, Password, Domain); }