{"id":28909,"date":"2021-08-09T12:08:13","date_gmt":"2021-08-09T12:08:13","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=28909"},"modified":"2023-09-08T12:57:56","modified_gmt":"2023-09-08T07:27:56","slug":"perform-changes-in-power-apps-portal-with-newly-introduced-microsoft-power-platform-cli","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/08\/perform-changes-in-power-apps-portal-with-newly-introduced-microsoft-power-platform-cli\/","title":{"rendered":"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI"},"content":{"rendered":"<h2 style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/h2>\n<p style=\"text-align: justify;\">Microsoft recently introduced Microsoft Power Platform Command Line Interface to perform various operations on Microsoft Dataverse environments, Power Apps Portal, PCF, Plugin, Solution, Admin, and Canvas by using Visual Studio Code.<\/p>\n<p style=\"text-align: justify;\">In this blog, we will be focusing on Power Apps Portal and will see how we can connect Portal using Microsoft Power Platform CLI and perform various operation on the same.<\/p>\n<p style=\"text-align: justify;\">To be precise, we will create a new web page using CLI and check it on the portal.<\/p>\n<p style=\"text-align: justify;\">However, there are some prerequisites that we need to configure before start working on Power Apps Portal.<\/p>\n<p style=\"text-align: justify;\">First, we need to configure the Power Apps Portal for our CRM.<\/p>\n<p style=\"text-align: justify;\">Login to <a href=\"https:\/\/make.powerapps.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/make.powerapps.com\/<\/a> and click Portal from Blank.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image001-ink-10.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28910 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image001-ink-10.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1439\" height=\"885\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image001-ink-10.png 1439w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image001-ink-10-300x185.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image001-ink-10-768x472.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image001-ink-10-1024x630.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image001-ink-10-660x406.png 660w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">After clicking the button, a popup will appear where we need to provide a suitable name for the portal and address.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image002-ink-3.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28911 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image002-ink-3.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1207\" height=\"774\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image002-ink-3.png 1207w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image002-ink-3-300x192.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image002-ink-3-768x492.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image002-ink-3-1024x657.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image002-ink-3-660x423.png 660w\" sizes=\"(max-width: 1207px) 100vw, 1207px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Then click on the Create button and wait for the portal to become ready to use.<\/p>\n<p style=\"text-align: justify;\">While the portal is being configured, we need to install the Power Platform VS Code Extension in our Visual Studio Code.<\/p>\n<p style=\"text-align: justify;\">Open the Visual Studio, click the extension button and search for the Power Platform VS Code Extension. Once it is visible, click the install button.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image003.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28912 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image003.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1698\" height=\"927\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image003.png 1698w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image003-300x164.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image003-768x419.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image003-1024x559.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image003-660x360.png 660w\" sizes=\"(max-width: 1698px) 100vw, 1698px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Here we are done with prerequisites and ready to connect the Power Apps Portal.<\/p>\n<p style=\"text-align: justify;\">Now create new folder and open that into Visual Studio Code. The Power Apps Portal data will be downloaded in this newly created folder.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image004-ink-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28913 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image004-ink-1.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"856\" height=\"418\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image004-ink-1.png 856w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image004-ink-1-300x146.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image004-ink-1-768x375.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image004-ink-1-660x322.png 660w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Open the Terminal in VS Code.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image005.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28914 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image005.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"835\" height=\"565\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image005.png 835w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image005-300x203.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image005-768x520.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image005-660x447.png 660w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Now we need to authenticate it in order to connect Power Apps Portal. To authenticate we will use below command:<\/p>\n<p style=\"text-align: justify;\"><strong>Command: <\/strong><strong>pac auth create &#8211;url <em>&lt;Dynamics CRM Url&gt;<\/em> \u2013un <em>&lt;User ID&gt;<\/em> -p <em>&lt;Password&gt;<\/em><\/strong><\/p>\n<p><strong><em>For example:<\/em><\/strong><strong> pac auth create &#8211;url https:\/\/orgname.crm.dynamics.com \u2013un admin@orgname.onmicrosoft.com -p pass@123<\/strong><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image006.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28915 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image006.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1392\" height=\"386\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image006.png 1392w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image006-300x83.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image006-768x213.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image006-1024x284.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image006-660x183.png 660w\" sizes=\"(max-width: 1392px) 100vw, 1392px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">You can check if you have successfully connected to your environment by running the command.<\/p>\n<p style=\"text-align: justify;\"><strong>Command: <\/strong><strong>pac org who<\/strong><\/p>\n<p style=\"text-align: justify;\">This will show you the organization details.<\/p>\n<p style=\"text-align: justify;\">Once successfully authenticated now we need to download the portal data into our system so that we can work offline into our portal and then upload it back to cloud.<\/p>\n<p style=\"text-align: justify;\">To download the Power Apps portal data we need to run the below commands.<\/p>\n<p style=\"text-align: justify;\"><strong>Command: pac paportal list<\/strong><\/p>\n<p style=\"text-align: justify;\">This will show you the listing of portal websites and website ids into your connected environment. The WebsiteId will be used in the command to download the Portal data.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image007.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28916 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image007.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1270\" height=\"354\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image007.png 1270w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image007-300x84.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image007-768x214.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image007-1024x285.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image007-660x184.png 660w\" sizes=\"(max-width: 1270px) 100vw, 1270px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Command: pac paportal download &#8211;path <em>&#8220;&lt;Directory Path&gt;<\/em>&#8221; &#8211;webSiteId <em>&lt;Portal WebsiteId&gt;<\/em><\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>For Example:<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>pac paportal download &#8211;path &#8220;E:\\Sam\\PowerAppsCLI&#8221; &#8211;webSiteId d78574f9-20c3-4dcc-8d8d-85cf5b7ac141<\/strong><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image008.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28917 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image008.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1248\" height=\"359\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image008.png 1248w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image008-300x86.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image008-768x221.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image008-1024x295.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image008-660x190.png 660w\" sizes=\"(max-width: 1248px) 100vw, 1248px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Once it is downloaded, all portal data can be seen in the folder and since we have already opened the folder in our VS Code we just need to refresh it.<\/p>\n<p style=\"text-align: justify;\">Now to create new custom webpage we need to know things we required to update.<\/p>\n<ul style=\"text-align: justify;\">\n<li><strong>YML extension files<\/strong>: &#8211; yml is serialized human readable text document file, which is actually not a Markup Language. Using this we will be setting our web page properties.\n<ul>\n<li><strong>How we can set property?<\/strong> It will be like key value pair and the key will be logical name of the property and the value for the key needs to specify after the colon (:).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Our custom page should be having the below properties and its values.<\/p>\n<ul style=\"text-align: justify;\">\n<li><strong>Parent Page(adx_parentpageid)<\/strong> : Home Page<\/li>\n<li><strong>Page Template(adx_pagetemplateid)<\/strong>: Full Page without Child Links<\/li>\n<li><strong>Publishing State(adx_publishingstateid)<\/strong> : Published<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">As can be seen above, we will be using the <strong><em>\u201cHome Page\u201d<\/em><\/strong> as the value of the <strong>adx_parentpageid<\/strong>, <strong><em>\u201cFull Page without Child Links\u201d<\/em><\/strong> as the <strong>adx_pagetemplateid<\/strong> and <strong><em>\u201cPublished\u201d<\/em><\/strong> as the <strong>adx_publishingstateid.<\/strong><\/p>\n<p style=\"text-align: justify;\">Moreover, to set the above properties we first need to get unique ids for each of these properties. As each of them are attributes of type lookup in Dynamics 365 CRM and to map respective records in the lookup fields we require their respective Ids.<\/p>\n<p style=\"text-align: justify;\">To get the unique id of the <strong><em>Home Page<\/em><\/strong>, expand the Web Pages folder and find <strong><em>home<\/em><\/strong>. Then expand it and open the <strong>Home.webpage.yml.<\/strong> After that copy the value of <strong>adx_webpageid<\/strong>. This is the value we shall use for the <strong>adx_parentpageid<\/strong> attribute of our custom page.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image009.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28918 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image009.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1186\" height=\"739\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image009.png 1186w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image009-300x187.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image009-768x479.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image009-1024x638.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image009-660x411.png 660w\" sizes=\"(max-width: 1186px) 100vw, 1186px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">To get the unique id of Page Template, expand the <strong>page-templates<\/strong> folder from main folder, look for the <strong>Full-Page-without-Child-Links.pagetemplate.yml<\/strong> page template file and copy the value of <strong>adx_webtemplateid. <\/strong>This is the value we shall use for the <strong>adx_pagetemplateid<\/strong> attribute of our custom page.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image010.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28919 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image010.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1183\" height=\"627\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image010.png 1183w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image010-300x159.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image010-768x407.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image010-1024x543.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image010-660x350.png 660w\" sizes=\"(max-width: 1183px) 100vw, 1183px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Similarly, we need to find the id of Publishing State. In the main folder search <strong>publishingstate.yml<\/strong> file and copy the value of <strong>adx_publishingstateid<\/strong>. This is the value we shall use for the <strong>adx_publishingstateid<\/strong> attribute of our custom page.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image011.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28920 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image011.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1180\" height=\"610\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image011.png 1180w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image011-300x155.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image011-768x397.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image011-1024x529.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image011-660x341.png 660w\" sizes=\"(max-width: 1180px) 100vw, 1180px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Now we have all values for our required properties.<\/p>\n<p style=\"text-align: justify;\">To create new custom web page, we will expand the Web Pages folder and within it copy &amp; paste any Web Page. For instance, we copied category page as shown below:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image012.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28921 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image012.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"857\" height=\"685\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image012.png 857w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image012-300x240.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image012-768x614.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image012-660x528.png 660w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">After pasting all required things now we will update folder and files as per our requirement.<\/p>\n<p style=\"text-align: justify;\">We changed the web page name to <strong>custom-page<\/strong> and also renamed all files inside the folder. After updating the name, we need to set\/update the properties inside the <strong>\u201cCustom-Page.webpage.yml\u201d<\/strong> file.<\/p>\n<p style=\"text-align: justify;\">You can check the changes we did in below screenshot:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image013.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28922 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image013.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1209\" height=\"552\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image013.png 1209w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image013-300x137.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image013-768x351.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image013-1024x468.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image013-660x301.png 660w\" sizes=\"(max-width: 1209px) 100vw, 1209px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Now in the \u201c<strong>Custom-Page.en-US.webpage.yml<\/strong>\u201d we will be adding the same values as we have set in the above step except for the <strong>adx_rootwebpageid<\/strong>. In the <strong>adx_rootwebpageid<\/strong> we will set the value of <strong>adx_webpageid<\/strong> from the <strong>\u201cCustom-Page.webpage.yml\u201d<\/strong> file.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image014.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28923 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image014.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1345\" height=\"549\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image014.png 1345w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image014-300x122.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image014-768x313.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image014-1024x418.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image014-660x269.png 660w\" sizes=\"(max-width: 1345px) 100vw, 1345px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">After updating the yml files, we can now update the html files and that will be shown in our portal.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image015.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28924 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image015.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1360\" height=\"606\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image015.png 1360w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image015-300x134.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image015-768x342.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image015-1024x456.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image015-660x294.png 660w\" sizes=\"(max-width: 1360px) 100vw, 1360px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Once changes are done, save the changes. And now we are ready to upload our portal data into cloud.<\/p>\n<p style=\"text-align: justify;\">For uploading the changes, we will use below command:<\/p>\n<p style=\"text-align: justify;\"><strong>Command: pac paportal upload &#8211;path <\/strong><strong><em>&#8220;&lt;Directory Path&gt;<\/em><\/strong><strong>&#8220;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>For Example: pac paportal upload &#8211;path &#8220;<\/strong><strong> E:\\Sam\\PowerAppsCLI<\/strong><strong>&#8220;<\/strong><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image016.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28925 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image016.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"1258\" height=\"299\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image016.png 1258w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image016-300x71.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image016-768x183.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image016-1024x243.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image016-660x157.png 660w\" sizes=\"(max-width: 1258px) 100vw, 1258px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Result:<\/strong><\/p>\n<p style=\"text-align: justify;\">We completed our changes and uploaded those changes on cloud. Now we will check if the changes are reflected in our Portal or not.<\/p>\n<p style=\"text-align: justify;\">Open the portal home page and since parent page of our custom page is home then after the portal url we will add \u201c\/&lt;partial name of the page&gt;\/\u201d to access our page.<\/p>\n<p style=\"text-align: justify;\"><strong>For example:<\/strong> &lt;portal url&gt;\/custom-page\/<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image017-ink-4-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28926 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image017-ink-4-1.png\" alt=\"Perform changes in Power Apps Portal with newly introduced Microsoft Power Platform CLI\" width=\"864\" height=\"523\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image017-ink-4-1.png 864w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image017-ink-4-1-300x182.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image017-ink-4-1-768x465.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/08\/image017-ink-4-1-660x400.png 660w\" sizes=\"(max-width: 864px) 100vw, 864px\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\"><strong>Conclusion: <\/strong><\/h2>\n<p style=\"text-align: justify;\">Using Microsoft Power Platform CLI, we are able to work on the portal in offline mode and after doing the changes, we are able to upload them in one go. In addition, it will help developers to migrate portal data from one environment to other environment with very less effort.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/dynamics-365-crm-sharepoint-security-metadata-sync\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28708 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/07\/1-1.jpg\" alt=\"Sharepoint Security Sync\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/07\/1-1.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/07\/1-1-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/07\/1-1-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/07\/1-1-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Microsoft recently introduced Microsoft Power Platform Command Line Interface to perform various operations on Microsoft Dataverse environments, Power Apps Portal, PCF, Plugin, Solution, Admin, and Canvas by using Visual Studio Code. In this blog, we will be focusing on Power Apps Portal and will see how we can connect Portal using Microsoft Power Platform\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/08\/perform-changes-in-power-apps-portal-with-newly-introduced-microsoft-power-platform-cli\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[38,2053,2763,2361],"tags":[2360,1931],"class_list":["post-28909","post","type-post","status-publish","format-standard","hentry","category-microsoft-powerapps","category-power-apps-portals","category-power-pages","category-technical","tag-cli","tag-microsoft-power-platform"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=28909"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28909\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=28909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=28909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=28909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}