Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to read provisioning template xml values into CSOM in SharePoint online Azure function

$
0
0

I have a PnP provisioning XML template as shown in below.

-------------------------------------------------------------------------------------------------------------------------------------------

<?xml version="1.0"?>

-<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2019/09/ProvisioningSchema">

<pnp:Preferences Generator="OfficeDevPnP.Core, Version=3.14.1910.1, Culture=neutral, PublicKeyToken=5e633289e95c321a"/>


-<pnp:Templates ID="CONTAINER-TEMPLATE-8A98801966044DD78F79DAB46AE2E0BE">


-<pnp:ProvisioningTemplate ID="TEMPLATE-8A98801966044DD78F79DAB46AE2E0BE" Scope="Undefined" Version="0">


-<pnp:ClientSidePages>


-<pnp:ClientSidePage LCID="0" PageName="98B3B38A52805CAB.aspx" ThumbnailUrl="" Title="Manage Project Portfolio" Overwrite="true" PromoteAsTemplate="false" PromoteAsNewsArticle="false">

<pnp:Header AuthorByLineId="-1" AuthorByLine="["i:0#.f|membership|chandan@vgmsid.onmicrosoft.com" ]" Authors="[{"id": "i:0#.f|membership|chandan@vgmsid.onmicrosoft.com","upn": "Chandan@vgmsid.onmicrosoft.com","name":"Chandan Sahani","role": ""} ]" AlternativeText="" TopicHeader="" ShowPublishDate="false" ShowTopicHeader="false" TextAlignment="Center" LayoutType="FullWidthImage" ServerRelativeImageUrl="{site}/SiteAssets/SitePages/98B3B38A52805CAB/4096-TopBackground.PNG" Type="Custom"/>


-<pnp:Sections>


-<pnp:Section Type="TwoColumnLeft" Order="1">


-<pnp:Controls>


-<pnp:CanvasControl Order="1" Column="1" ControlId="3e47fe13-9deb-4d11-9b3b-377732da53f8" WebPartType="Text">


-<pnp:CanvasControlProperties>

<pnp:CanvasControlProperty Value="<div> <div> <div> <div> <div> <h2>Purpose</h2> <p>Securing and optimizing the execution of the product- and technology project portfolio plan as well<br> as the maintenance plan.</p> </div> </div> </div> </div> </div> " Key="Text"/>

</pnp:CanvasControlProperties>

</pnp:CanvasControl>

</pnp:Controls>

</pnp:Section>


-<pnp:Section Type="OneColumn" Order="2">


-<pnp:Controls>


-<pnp:CanvasControl Order="1" Column="1" ControlId="2a718f4b-4754-45c9-bade-65e991fff3b9" WebPartType="Text">


-<pnp:CanvasControlProperties>

<pnp:CanvasControlProperty Value="<div> <div> <div> <div> <div> <h2>Description</h2> <div>Monitor the execution of the product- and technology project portfolio plan as well as the maintenance plan.</div><div>Track deviation that occurs during the year and find the best solution to solve it.</div> <div>Prepare and initiate all new projects.</div> <div>Manage Project Portfolio training material can be found here:<span>&nbsp;</span><a href="http://phoenix.volvogroup.net/phoenix/encrypt/encrypt?method=4EC453628079380EE16144D1C31BA31692B0C0FD0DD004413768D409F606D46865BB9B2B1A10F88E0FAAC40D2C5A3559"><b><u>Manage Project Portfolio training material</u></b></a></div></div> </div> </div> </div> </div> " Key="Text"/>

</pnp:CanvasControlProperties>

</pnp:CanvasControl>

</pnp:Controls>

</pnp:Section>

</pnp:Sections>

</pnp:ClientSidePage>

</pnp:ClientSidePages>

</pnp:ProvisioningTemplate>

</pnp:Templates>

</pnp:Provisioning>

---------------------------------------------------------------------------------------------------------------------------------------

How can i read the "pnp:CanvasControlProperty " value that is "Purpose" from the above XML using CSOM code by using azure fucntion


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>