{"id":1422,"date":"2017-11-09T19:45:12","date_gmt":"2017-11-10T00:45:12","guid":{"rendered":"https:\/\/toddbaginski.com\/blog\/?p=1422"},"modified":"2018-06-04T14:47:05","modified_gmt":"2018-06-04T18:47:05","slug":"how-to-convert-a-powerapp-from-one-layout-to-another","status":"publish","type":"post","link":"https:\/\/toddbaginski.com\/blog\/how-to-convert-a-powerapp-from-one-layout-to-another\/","title":{"rendered":"How to convert a PowerApp from one layout to another"},"content":{"rendered":"<p>When you create a PowerApp, you must choose which layout to use. You can pick the Phone layout or the Tablet layout.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1423\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PA-Layout-Options.png\" alt=\"PowerApp Layout Options\" width=\"193\" height=\"278\" srcset=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PA-Layout-Options.png 193w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PA-Layout-Options-101x146.png 101w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PA-Layout-Options-35x50.png 35w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PA-Layout-Options-49x70.png 49w\" sizes=\"auto, (max-width:767px) 193px, 193px\" \/><\/p>\n<p>After you have created a PowerApp in one layout, many times you also want to create it in the other layout.\u00a0 Currently, there is no out of the box functionality that allows you to do this.\u00a0 PowerApps can take many hours to develop when they include a lot of functionality and integrations with other systems.\u00a0 You don&#8217;t want to recreate the entire PowerApp from scratch.\u00a0 So how can you do it without wasting time?<\/p>\n<p>Here&#8217;s the magic recipe.\u00a0 In this example I have already created a mobile layout PowerApp and I convert it to a tablet layout.<\/p>\n<ol>\n<li>Export the mobile layout PowerApp.<\/li>\n<li>Create a new tablet layout PowerApp.<\/li>\n<li>Export the tablet layout PowerApp.<\/li>\n<li>Rename the .msapp files by adding the .zip extension.<\/li>\n<li>Extract the mobile export file to one directory.<\/li>\n<li>Extract the tablet export file to another directory.<\/li>\n<li>In the mobile export directory, open the properties.json file.<\/li>\n<li>In the tablet export directory, open the properties.json file.<\/li>\n<li>Enter a value in the Name element in the tablet properties.json file.\u00a0 This is the name of the PowerApp.<\/li>\n<li>Copy the LocalConnectionReferences element from the mobile to the tablet file.<\/li>\n<li>Copy the OriginatingVersion value from the mobile to the tablet file. <img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1425\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PowerApp-Properties.JSON_-1.png\" alt=\"PowerApp Properties.JSON\" width=\"729\" height=\"258\" srcset=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PowerApp-Properties.JSON_-1.png 729w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PowerApp-Properties.JSON_-1-300x106.png 300w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PowerApp-Properties.JSON_-1-260x92.png 260w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PowerApp-Properties.JSON_-1-50x18.png 50w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2017\/11\/PowerApp-Properties.JSON_-1-198x70.png 198w\" sizes=\"auto, (max-width:767px) 480px, 729px\" \/><\/li>\n<li>Open the mobile export .zip file in an archive tool like WinRAR, WinZIP, etc.<\/li>\n<li>DRAG the tablet properties.json file into the mobile export .zip file to replace the properties.json file in the archive.<br \/>\n<strong>Note:<\/strong> You have to drag and drop the file into the archive, zipping the files in the directory will not work.<\/li>\n<li>Close the archive tool.<\/li>\n<li>Remove the .zip extension from the mobile export file.<\/li>\n<li>Open PowerApps studio in the desktop or web browser.<\/li>\n<li>Click Open.<\/li>\n<li>Click Browse.<\/li>\n<li>Select the mobile export .msapp file.<\/li>\n<li>Click OK.<\/li>\n<li>Click App Settings.<\/li>\n<li>Click Screen size + orientation.<\/li>\n<li>In the Size radio button, select 3:2.<\/li>\n<li>Click Apply.<\/li>\n<li>Click Save.<\/li>\n<li>In the Size radio button, select 16:9.<\/li>\n<li>Click Apply.<\/li>\n<li>Click Save.<\/li>\n<\/ol>\n<p><span style=\"color: #ff6600;\"><strong>BOOM!<\/strong> <\/span>Now you can start re-positioning all of your controls on the screen!<\/p>\n<p>Here&#8217;s a video where I demonstrate how to do it.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/Bb_8koHvzw0?rel=0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you create a PowerApp, you must choose which layout to use. You can pick the Phone layout or the Tablet layout. After you have created<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":1428,"comment_status":"open","ping_status":"open","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":[103,104,121],"tags":[42,10,5,54,112],"class_list":["post-1422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-office-365","category-powerapps","tag-cloud","tag-custom-development","tag-helpful-code","tag-mobile","tag-powerapps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/comments?post=1422"}],"version-history":[{"count":2,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1422\/revisions"}],"predecessor-version":[{"id":1427,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1422\/revisions\/1427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media\/1428"}],"wp:attachment":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media?parent=1422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/categories?post=1422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/tags?post=1422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}