{"id":40040,"date":"2024-12-20T12:23:49","date_gmt":"2024-12-20T06:53:49","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=40040"},"modified":"2024-12-20T12:23:49","modified_gmt":"2024-12-20T06:53:49","slug":"scan-save-data-from-images-using-ai-custom-pages-in-power-apps","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2024\/12\/scan-save-data-from-images-using-ai-custom-pages-in-power-apps\/","title":{"rendered":"Scan &#038; Save Data from Images Using AI &#038; Custom Pages in Power Apps"},"content":{"rendered":"<p>In a recent client requirement, we developed a solution to streamline business card processing by leveraging AI and Power Apps. The goal was to scan business cards, extract their data, and display it seamlessly on a custom page. To achieve this, we built a custom page in <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-apps-canvas-app\/\" target=\"_blank\" rel=\"noopener\">Power Apps<\/a> where users can upload a business card image. This triggers a <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-automate\/\" target=\"_blank\" rel=\"noopener\">Power Automate flow<\/a> integrated with an AI model that extracts key details like name, company, and contact information. The processed data is then passed back to the custom page. We implemented the following steps to achieve this.<\/p>\n<p><strong>Steps to create an AI model<\/strong><\/p>\n<p><strong>1<\/strong>. Open <a href=\"https:\/\/make.powerapps.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/make.powerapps.com\/<\/a> -&gt; Navigate <strong>AI hub<\/strong> -&gt; <strong>AI models<\/strong> -&gt; Choose <strong>Document processing<\/strong> template<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40041\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1355\" height=\"639\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Custom-Pages-in-Power-App.png 1355w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Custom-Pages-in-Power-App-300x141.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Custom-Pages-in-Power-App-1024x483.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Custom-Pages-in-Power-App-768x362.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/1Custom-Pages-in-Power-App-660x311.png 660w\" sizes=\"(max-width: 1355px) 100vw, 1355px\" \/><\/p>\n<p><strong>2<\/strong>. Click on <strong>Create custom model<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40042\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/2Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1129\" height=\"615\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/2Custom-Pages-in-Power-App.png 1129w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/2Custom-Pages-in-Power-App-300x163.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/2Custom-Pages-in-Power-App-1024x558.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/2Custom-Pages-in-Power-App-768x418.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/2Custom-Pages-in-Power-App-660x360.png 660w\" sizes=\"(max-width: 1129px) 100vw, 1129px\" \/><\/p>\n<p><strong>3<\/strong>. Choose <strong>Document type -&gt;<\/strong>\u00a0<strong>Next<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-40043\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/3Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1098\" height=\"728\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/3Custom-Pages-in-Power-App.png 1098w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/3Custom-Pages-in-Power-App-300x199.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/3Custom-Pages-in-Power-App-1024x679.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/3Custom-Pages-in-Power-App-768x509.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/3Custom-Pages-in-Power-App-660x438.png 660w\" sizes=\"(max-width: 1098px) 100vw, 1098px\" \/><br \/>\n<\/strong><strong><br \/>\n4<\/strong>. Click on <strong>ADD<\/strong> -&gt; Define the variables for the data you want to extract from the image -&gt;<strong>Done-<\/strong><strong>&gt;<\/strong><strong>Next<\/strong><\/p>\n<p><strong><img decoding=\"async\" class=\"alignnone size-full wp-image-40044\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/4Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"960\" height=\"624\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/4Custom-Pages-in-Power-App.png 960w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/4Custom-Pages-in-Power-App-300x195.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/4Custom-Pages-in-Power-App-768x499.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/4Custom-Pages-in-Power-App-660x429.png 660w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><br \/>\n<\/strong><\/p>\n<p><strong>5<\/strong>. Create a <strong>New Collection<\/strong> or <strong>Add documents<\/strong> -&gt; <strong>Next<\/strong><\/p>\n<p><strong><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-40045\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/5Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"949\" height=\"643\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/5Custom-Pages-in-Power-App.png 949w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/5Custom-Pages-in-Power-App-300x203.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/5Custom-Pages-in-Power-App-768x520.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/5Custom-Pages-in-Power-App-660x447.png 660w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><br \/>\n<\/strong><\/p>\n<p><strong>6<\/strong>. Tag the documents by selecting fields such as first name, last name, and others and mapping them to the corresponding variables -&gt;<strong>Next<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40046\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/6Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1329\" height=\"588\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/6Custom-Pages-in-Power-App.png 1329w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/6Custom-Pages-in-Power-App-300x133.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/6Custom-Pages-in-Power-App-1024x453.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/6Custom-Pages-in-Power-App-768x340.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/6Custom-Pages-in-Power-App-660x292.png 660w\" sizes=\"(max-width: 1329px) 100vw, 1329px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40047\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/7Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1443\" height=\"723\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/7Custom-Pages-in-Power-App.png 1443w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/7Custom-Pages-in-Power-App-300x150.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/7Custom-Pages-in-Power-App-1024x513.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/7Custom-Pages-in-Power-App-768x385.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/7Custom-Pages-in-Power-App-660x331.png 660w\" sizes=\"(max-width: 1443px) 100vw, 1443px\" \/><\/p>\n<p><strong>7. Train<\/strong> and publish the AI model.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40048\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/8Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1360\" height=\"628\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/8Custom-Pages-in-Power-App.png 1360w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/8Custom-Pages-in-Power-App-300x139.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/8Custom-Pages-in-Power-App-1024x473.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/8Custom-Pages-in-Power-App-768x355.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/8Custom-Pages-in-Power-App-660x305.png 660w\" sizes=\"(max-width: 1360px) 100vw, 1360px\" \/><\/p>\n<ul>\n<li><strong>Create a Custom Page and Power Automate Flow<\/strong><\/li>\n<\/ul>\n<p><strong>1<\/strong>. Create a solution in your environment -&gt; Add a <strong>custom page<\/strong> to the solution.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40049\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/9Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"948\" height=\"349\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/9Custom-Pages-in-Power-App.png 948w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/9Custom-Pages-in-Power-App-300x110.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/9Custom-Pages-in-Power-App-768x283.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/9Custom-Pages-in-Power-App-660x243.png 660w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/p>\n<p><strong>2<\/strong>. Name the page accordingly -&gt; Click on <strong>Insert<\/strong> -&gt; &#8220;<strong>Add<\/strong> <strong>Picture<\/strong>&#8220;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40050\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/10Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1306\" height=\"614\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/10Custom-Pages-in-Power-App.png 1306w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/10Custom-Pages-in-Power-App-300x141.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/10Custom-Pages-in-Power-App-1024x481.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/10Custom-Pages-in-Power-App-768x361.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/10Custom-Pages-in-Power-App-660x310.png 660w\" sizes=\"(max-width: 1306px) 100vw, 1306px\" \/><\/p>\n<p><strong>3<\/strong>. The page will appear like this. After adding the <strong>&#8216;Add<\/strong> <strong>Picture&#8217;<\/strong> Then you can design the page according to your requirements.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40051\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/11Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1359\" height=\"492\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/11Custom-Pages-in-Power-App.png 1359w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/11Custom-Pages-in-Power-App-300x109.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/11Custom-Pages-in-Power-App-1024x371.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/11Custom-Pages-in-Power-App-768x278.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/11Custom-Pages-in-Power-App-660x239.png 660w\" sizes=\"(max-width: 1359px) 100vw, 1359px\" \/><\/p>\n<p><strong>4<\/strong>. Click on <strong>ellipsis -&gt;<\/strong>\u00a0<strong>Power<\/strong> <strong>Automate<\/strong> -&gt; <strong>Add<\/strong> <strong>Flow<\/strong> -&gt; <strong>Create<\/strong> <strong>new<\/strong> <strong>flow<\/strong> -&gt; <strong>Create<\/strong> <strong>from Blank.<\/strong><\/p>\n<p><strong><img decoding=\"async\" class=\"alignnone size-full wp-image-40052\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/12Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"482\" height=\"500\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/12Custom-Pages-in-Power-App.png 482w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/12Custom-Pages-in-Power-App-289x300.png 289w\" sizes=\"(max-width: 482px) 100vw, 482px\" \/><br \/>\n<\/strong><strong><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-40053\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/13Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"567\" height=\"584\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/13Custom-Pages-in-Power-App.png 567w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/13Custom-Pages-in-Power-App-291x300.png 291w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><br \/>\n<\/strong><strong><img decoding=\"async\" class=\"alignnone size-full wp-image-40054\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/14Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1112\" height=\"583\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/14Custom-Pages-in-Power-App.png 1112w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/14Custom-Pages-in-Power-App-300x157.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/14Custom-Pages-in-Power-App-1024x537.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/14Custom-Pages-in-Power-App-768x403.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/14Custom-Pages-in-Power-App-660x346.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/14Custom-Pages-in-Power-App-380x200.png 380w\" sizes=\"(max-width: 1112px) 100vw, 1112px\" \/><br \/>\n<\/strong><strong><br \/>\n5<\/strong>. Give the name for the flow and add a text input to store the JSON-formatted image, which we will pass from the custom page.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40055\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/15Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1178\" height=\"250\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/15Custom-Pages-in-Power-App.png 1178w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/15Custom-Pages-in-Power-App-300x64.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/15Custom-Pages-in-Power-App-1024x217.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/15Custom-Pages-in-Power-App-768x163.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/15Custom-Pages-in-Power-App-660x140.png 660w\" sizes=\"(max-width: 1178px) 100vw, 1178px\" \/><br \/>\n<strong>6<\/strong>. Create a variable to store the image&#8217;s base64 data.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-40056\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/16Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"651\" height=\"203\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/16Custom-Pages-in-Power-App.png 651w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/16Custom-Pages-in-Power-App-300x94.png 300w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/p>\n<p><strong>7<\/strong>. Parse the JSON-formatted image using the <strong>&#8216;Parse<\/strong> <strong>JSON&#8217;<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40057\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/17Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"665\" height=\"367\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/17Custom-Pages-in-Power-App.png 665w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/17Custom-Pages-in-Power-App-300x166.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/17Custom-Pages-in-Power-App-660x364.png 660w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><br \/>\n<strong>8<\/strong>. Set the variable <strong>base64ImageVar<\/strong> to store the base64 image data.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40058\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/18Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"637\" height=\"168\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/18Custom-Pages-in-Power-App.png 637w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/18Custom-Pages-in-Power-App-300x79.png 300w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/p>\n<p>split(string(body(&#8216;Parse_JSON&#8217;)),\u00a0&#8216;,&#8217;)<\/p>\n<p><strong>9<\/strong>. Use the <strong>AI model<\/strong> to extract data from the image.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40059\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/19Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"646\" height=\"251\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/19Custom-Pages-in-Power-App.png 646w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/19Custom-Pages-in-Power-App-300x117.png 300w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/><\/p>\n<p>base64ToBinary(replace(variables(&#8216;base64ImageVar&#8217;)[1],\u00a0&#8216;\\&#8221;&#8221;}&#8217;,\u00a0&#8221;))<\/p>\n<p><strong>10<\/strong>. Return the extracted data as a response to the <strong>Power App<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40060\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/20Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"696\" height=\"524\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/20Custom-Pages-in-Power-App.png 696w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/20Custom-Pages-in-Power-App-300x226.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/20Custom-Pages-in-Power-App-660x497.png 660w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/p>\n<p><strong>11. Save<\/strong> the flow and go to the custom page. Now you can see your flow in the Power app<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40061\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/21Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"431\" height=\"408\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/21Custom-Pages-in-Power-App.png 431w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/21Custom-Pages-in-Power-App-300x284.png 300w\" sizes=\"(max-width: 431px) 100vw, 431px\" \/><\/p>\n<p><strong>12<\/strong>. Design the page as required. In the <strong>&#8216;OnSelect&#8217;<\/strong> property of the <strong>AddMediaButton<\/strong>, call the Power Automate flow with its name (in our scenario the name is <strong>&#8216;SendImageData&#8217;<\/strong>), which will take a JSON-formatted image as an argument and store the response in a variable called <strong>&#8216;BusinessCardReader<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40062\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/22Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1345\" height=\"629\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/22Custom-Pages-in-Power-App.png 1345w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/22Custom-Pages-in-Power-App-300x140.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/22Custom-Pages-in-Power-App-1024x479.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/22Custom-Pages-in-Power-App-768x359.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/22Custom-Pages-in-Power-App-660x309.png 660w\" sizes=\"(max-width: 1345px) 100vw, 1345px\" \/><\/p>\n<p>Set(BusinessCardReader,SendImageData.Run(JSON(<em>UploadedImage3_1<\/em>.Image, JSONFormat.IncludeBinaryData)));<\/p>\n<p><strong>13<\/strong>. Read the response from the Power Automate flow, which is stored in <strong>BusinessCardReader<\/strong>. Below is the code snippet that stores data in <strong>BusinessCardCollection<\/strong>. You can add the code for other fields and give validation.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40063\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/23Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1360\" height=\"619\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/23Custom-Pages-in-Power-App.png 1360w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/23Custom-Pages-in-Power-App-300x137.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/23Custom-Pages-in-Power-App-1024x466.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/23Custom-Pages-in-Power-App-768x350.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/23Custom-Pages-in-Power-App-660x300.png 660w\" sizes=\"(max-width: 1360px) 100vw, 1360px\" \/><\/p>\n<pre class=\"lang:css gutter:true start:1\">Set(BusinessCardReader, SendImageData.Run(JSON(<em>UploadedImage3_1<\/em>.Image, JSONFormat.IncludeBinaryData)));\r\n\r\nIf(!IsBlankOrError(BusinessCardReader),\r\n\r\nCollect(\r\n\r\nBusinessCardCollection,\r\n\r\n{\r\n\r\nFirstName: Text(BusinessCardReader.firstname),\r\n\r\nLastName : Text(BusinessCardReader.lastname),\r\n\r\nEmail: Text(BusinessCardReader.email),\r\n\r\nCompany: Text(BusinessCardReader.company)\r\n\r\n}\r\n\r\n)\r\n\r\n)<\/pre>\n<p><strong>14<\/strong>. Add a Gallery control on the second screen and display the data by setting the Items property of the Gallery to <strong>BusinessCardCollection<\/strong>. This will allow the gallery to show the extracted information from the business card images.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40064\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/24Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1050\" height=\"550\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/24Custom-Pages-in-Power-App.png 1050w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/24Custom-Pages-in-Power-App-300x157.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/24Custom-Pages-in-Power-App-1024x536.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/24Custom-Pages-in-Power-App-768x402.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/24Custom-Pages-in-Power-App-660x346.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/24Custom-Pages-in-Power-App-380x200.png 380w\" sizes=\"(max-width: 1050px) 100vw, 1050px\" \/><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-40065\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/25Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"1367\" height=\"704\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/25Custom-Pages-in-Power-App.png 1367w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/25Custom-Pages-in-Power-App-300x154.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/25Custom-Pages-in-Power-App-1024x527.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/25Custom-Pages-in-Power-App-768x396.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/25Custom-Pages-in-Power-App-660x340.png 660w\" sizes=\"(max-width: 1367px) 100vw, 1367px\" \/><br \/>\nIf(!IsBlank(ThisItem.FirstName),&#8221;Name : &#8220;&amp; ThisItem.FirstName &amp;&#8221; &#8220;&amp; ThisItem.LastName,ThisItem.FirstName &amp;&#8221; &#8220;&amp; ThisItem.LastName)<\/p>\n<p><strong>15<\/strong>. Apply this to all text fields and display them in the gallery. After running the application, it will appear as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-40066\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/26Custom-Pages-in-Power-App.png\" alt=\"Custom Pages in Power App\" width=\"721\" height=\"535\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/26Custom-Pages-in-Power-App.png 721w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/26Custom-Pages-in-Power-App-300x223.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/12\/26Custom-Pages-in-Power-App-660x490.png 660w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>This solution shows how AI and automation can make manual tasks easier and faster while improving accuracy. By using AI with custom apps, businesses can manage their data better and stay ahead in today\u2019s digital world.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/services\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone  wp-image-36207\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/Discover-How-Inogics-Power-Platform-Services-Can-Help-You-Harness-the-Power-of-Low-Code-with-Microsoft-Power-Platform.-1.png\" alt=\"Inogic's\" width=\"746\" height=\"213\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/Discover-How-Inogics-Power-Platform-Services-Can-Help-You-Harness-the-Power-of-Low-Code-with-Microsoft-Power-Platform.-1.png 700w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/Discover-How-Inogics-Power-Platform-Services-Can-Help-You-Harness-the-Power-of-Low-Code-with-Microsoft-Power-Platform.-1-300x86.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/10\/Discover-How-Inogics-Power-Platform-Services-Can-Help-You-Harness-the-Power-of-Low-Code-with-Microsoft-Power-Platform.-1-660x189.png 660w\" sizes=\"(max-width: 746px) 100vw, 746px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a recent client requirement, we developed a solution to streamline business card processing by leveraging AI and Power Apps. The goal was to scan business cards, extract their data, and display it seamlessly on a custom page. To achieve this, we built a custom page in Power Apps where users can upload a business\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2024\/12\/scan-save-data-from-images-using-ai-custom-pages-in-power-apps\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":15,"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":[1913,44],"tags":[3088],"class_list":["post-40040","post","type-post","status-publish","format-standard","hentry","category-microsoft-power-platform-services","category-power-apps","tag-custom-pages-in-power-apps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/40040","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\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=40040"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/40040\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=40040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=40040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=40040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}