{"id":315,"date":"2021-03-25T11:01:21","date_gmt":"2021-03-25T11:01:21","guid":{"rendered":"http:\/\/4us2use.at\/?p=315"},"modified":"2021-03-25T11:03:27","modified_gmt":"2021-03-25T11:03:27","slug":"copy-paste-from-excel-into-canvas-power-app","status":"publish","type":"post","link":"http:\/\/4us2use.at\/?p=315","title":{"rendered":"Copy &#038; Paste from Excel into Canvas Power App"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong>Problem:<\/strong><\/p>\n\n\n\n<p>Power App doesn&#8217;t provide functionality to just paste copied content from Excel into a table or a gallery. But it&#8217;s annoying people, if they have to type all the values from a calculated Excel file 1:1 into the Power App.<br>So I found a workaround, that people can just copy &amp; paste values from a standardized table, with which values they need to start an approval workflow for many times.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Solution:<\/strong><\/p>\n\n\n\n<p>First we create a simple input form on Power App, containing a Text Input field, a table and a button. In my demo I use a SharePoint list as data source. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1024\" height=\"382\" src=\"http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp01-1024x382.png\" alt=\"\" class=\"wp-image-316\" srcset=\"http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp01-1024x382.png 1024w, http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp01-300x112.png 300w, http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp01-768x287.png 768w, http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp01.png 2035w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>Then create a Flow with a Power App trigger.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"771\" height=\"1024\" src=\"http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp02-771x1024.png\" alt=\"\" class=\"wp-image-317\" srcset=\"http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp02-771x1024.png 771w, http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp02-226x300.png 226w, http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp02-768x1019.png 768w, http:\/\/4us2use.at\/wp-content\/uploads\/2021\/03\/eximp02.png 953w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>Link the button to the Flow and pass in the text value.<\/p>\n\n\n\n<p><strong>Collection of formulas for you to copy:<\/strong><\/p>\n\n\n\n<p>Formula for the button:<br>\nYOURFLOWNAME&#8217;.Run(TextInput1.Text);Refresh(YOURDATASOURCE)<\/p>\n\n\n\n<p>Expression to get the rows:<br>split(decodeUriComponent(replace(replace(uriComponent(variables(&#8216;strRawTxtInput&#8217;)),&#8217;%09&#8242;,&#8221;),&#8217;%0A&#8217;,&#8217;#NEWLINE#&#8217;)),&#8217;#NEWLINE#&#8217;)<\/p>\n\n\n\n<p>Expression to get the columns:<br>split(decodeUriComponent(replace(uriComponent(items(&#8216;ForEachRow&#8217;)),&#8217;%09&#8242;,&#8217;#TAB#&#8217;)),&#8217;#TAB#&#8217;)<\/p>\n\n\n\n<p>Have fun \ud83d\ude09<br><br> <br> <span id=\"post-ratings-315\" class=\"post-ratings\" data-nonce=\"06aeefe9b9\"><img id=\"rating_315_1\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"1 Star\" title=\"1 Star\" onmouseover=\"current_rating(315, 1, '1 Star');\" onmouseout=\"ratings_off(3.5, 4, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_315_2\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"2 Stars\" title=\"2 Stars\" onmouseover=\"current_rating(315, 2, '2 Stars');\" onmouseout=\"ratings_off(3.5, 4, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_315_3\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"3 Stars\" title=\"3 Stars\" onmouseover=\"current_rating(315, 3, '3 Stars');\" onmouseout=\"ratings_off(3.5, 4, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_315_4\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_half.gif\" alt=\"4 Stars\" title=\"4 Stars\" onmouseover=\"current_rating(315, 4, '4 Stars');\" onmouseout=\"ratings_off(3.5, 4, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img id=\"rating_315_5\" src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/stars\/rating_off.gif\" alt=\"5 Stars\" title=\"5 Stars\" onmouseover=\"current_rating(315, 5, '5 Stars');\" onmouseout=\"ratings_off(3.5, 4, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/> (<strong>2<\/strong> votes, average: <strong>3.50<\/strong> out of 5)<br \/><span class=\"post-ratings-text\" id=\"ratings_315_text\"><\/span><\/span><span id=\"post-ratings-315-loading\" class=\"post-ratings-loading\"><img src=\"http:\/\/4us2use.at\/wp-content\/plugins\/wp-postratings\/images\/loading.gif\" width=\"16\" height=\"16\" class=\"post-ratings-image\" \/>Loading...<\/span>  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Power App doesn&#8217;t provide functionality to just paste copied content from Excel into a table or a gallery. But it&#8217;s annoying people, if they have to type all the values from a calculated Excel file 1:1 into the Power App.So I found a workaround, that people can just copy &amp; paste values from a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/4us2use.at\/?p=315\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Copy &#038; Paste from Excel into Canvas Power App&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,6],"tags":[],"_links":{"self":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/315"}],"collection":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=315"}],"version-history":[{"count":3,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/315\/revisions"}],"predecessor-version":[{"id":321,"href":"http:\/\/4us2use.at\/index.php?rest_route=\/wp\/v2\/posts\/315\/revisions\/321"}],"wp:attachment":[{"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4us2use.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}