cancel
Showing results for 
Search instead for 
Did you mean: 

Business Card Scanner

Introduction:
This is a continuation of the Business Card Scanner using Microsoft PowerApps vBlog I had recorded back in August, 2018. This blog walks you through step-by-step to build the key features you need. Majority of the explanation is done in the video, this blog provides formulas and links to helpful articles.
 
The blog is broken into three step process as shown below:
 - Step 1: Preparing all the connections. This includes the Azure Cognitive Services Vision
 - Step 2 : Building the App in PowerApps.
 - Step 3: Building the workflow in Flow.
 
Here is the step-by-step video:
 
 

Formulas:
In conjunction with the above video, here are the formula:
OnSelect formula for 'Add your company name here' button
 
Capture.JPG
 
Set(CompanyNameTextVar,(Concatenate(CompanyNameTextVar," ",ScannedGallery.Selected.Title2.Text)))
 
OnSelect formula for 'Add your full name button here' button
 
Capture2.JPG
 
Set(FullNameTextVar,(Concatenate(FullNameTextVar," ",ScannedGallery.Selected.Title2.Text)))
 
OnSelect formula for 'Add your postal address here' button
 
Capture3.JPG
 
Set(AutoAddressTextVar,(Concatenate(AutoAddressTextVar," ",ScannedGallery.Selected.Title2.Text)))
 
OnSelect formula for 'Add your email address here' button
 
Capture4.JPG
 
Set(EmailAddressVar,(Concatenate(EmailAddressVar," ",ScannedGallery.Selected.Title2.Text)))
 
OnSelect formula for 'Add your phone number here' button
 
Capture5.png
 
Set(PhoneNumberVar,(Concatenate(PhoneNumberVar," ",ScannedGallery.Selected.Title2.Text)))
 
OnSelect formula for 'Add your Twitter handle here' button
 
Capture6.png
 
Set(TwitterHandleVar,(Concatenate(TwitterHandleVar," ",ScannedGallery.Selected.Title2.Text)))
 
OnSelect formula for 'Add your Website site url here' button
 
Capture7.png
 
Set(WebSiteVar,(Concatenate(WebSiteVar," ",ScannedGallery.Selected.Title2.Text)))
 
Items formula for Scanned Gallery.
 
Capture8.png
 
Split(First(ScannedImages).text,Char(10))
 
OnSelect formula for the Click Button in the Scan Screen
 
Capture9.png
 
ClearCollect(ScannedImages,BusinessCardScanner.Run(Camera1.Stream));
Navigate(Mainscreen,ScreenTransition.Fade)
 
The OnSelect formula on the Submit button
 
Capture10.png
 
UpdateContext({AddRecordSmiley Tongueatch(ContactInfo, Defaults(ContactInfo),{FullName:FullNameTextInput.Text,PostAddressSmiley TongueostalAddressTextInput.Text,
EmailAddress:EmailAddressTextInput.Text,
PhoneNumberSmiley TonguehoneNumberTextInput.Text,
TwitterHandle:TwitterTextInput.Text,
Website:WebsiteTextInput.Text})});
Reset(FullNameTextInput);Reset(PostalAddressTextInput);Reset(EmailAddressTextInput);Reset(PhoneNumberTextInput);Reset(TwitterTextInput);Reset(WebsiteTextInput);
Clear(ScannedImages)

Helpful Links:
 - Split function
 - First version of 'Business Card Scanner' video Business Card Scanner using Microsoft PowerApps
 
Conclusion:
Attached to this blog is a zipped file that has images, the PowerApps MSAPP file and the Flow zipped file. Do now unzip the Flow zipped file. After you have created the connectors you can import the App and Flow in your tenant.
Meet Our Blog Authors
Labels