public static void GetWebPartProperties() { string SharePointOnline_OR_OnPremise = "OP"; string UserName = "******"; string Password = "******"; string Domain = "MGMT7"; string WebUrl = "https://intranet.poc.com/sites/TestContosoPublishingSite/"; string pageUrl = "/sites/TestContosoPublishingSite/Pages/TestWebPartTransformation.aspx"; string outPutDir = @"E:\v-suamso\FTC-CAMSimulation\TransformationTool\TestingResults\GetWebPartProperties"; //string webPartID = "d72fd359-2294-4434-b77c-514cc8ebafc5"; string webPartID = "c7d8da93-0d50-4587-89d6-cd4e3663c660"; WebPartTransformationHelper webPartTransformationHelper = new WebPartTransformationHelper(); webPartTransformationHelper.GetWebPartProperties(pageUrl, webPartID, "N/A", WebUrl, outPutDir, SharePointOnline_OR_OnPremise, UserName, Password, Domain); }
protected override void ProcessRecord() { WebPartTransformationHelper webPartTransformationHelper = new WebPartTransformationHelper(); webPartTransformationHelper.GetWebPartProperties(PageUrl, StorageKey, WebUrl, OutPutDirectory, SharePointOnline_OR_OnPremise, UserName, Password, Domain, "web"); }