Business Card Scanner
darogael
123
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.
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:
- 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
Set(CompanyNameTextVar,(Concatenate(CompanyNameTextVar," ",ScannedGallery.Selected.Title2.Text)))
OnSelect formula for 'Add your full name button here' button
Set(FullNameTextVar,(Concatenate(FullNameTextVar," ",ScannedGallery.Selected.Title2.Text)))
OnSelect formula for 'Add your postal address here' button
Set(AutoAddressTextVar,(Concatenate(AutoAddressTextVar," ",ScannedGallery.Selected.Title2.Text)))
OnSelect formula for 'Add your email address here' button
Set(EmailAddressVar,(Concatenate(EmailAddressVar," ",ScannedGallery.Selected.Title2.Text)))
OnSelect formula for 'Add your phone number here' button
Set(PhoneNumberVar,(Concatenate(PhoneNumberVar," ",ScannedGallery.Selected.Title2.Text)))
OnSelect formula for 'Add your Twitter handle here' button
Set(TwitterHandleVar,(Concatenate(TwitterHandleVar," ",ScannedGallery.Selected.Title2.Text)))
OnSelect formula for 'Add your Website site url here' button
Set(WebSiteVar,(Concatenate(WebSiteVar," ",ScannedGallery.Selected.Title2.Text)))
Items formula for Scanned Gallery.
Split(First(ScannedImages).text,Char(10))
OnSelect formula for the Click Button in the Scan Screen
ClearCollect(ScannedImages,BusinessCardScanner.Run(Camera1.Stream));
Navigate(Mainscreen,ScreenTransition.Fade)
The OnSelect formula on the Submit button
UpdateContext({AddRecord:Patch(ContactInfo, Defaults(ContactInfo),{FullName:FullNameTextInput.Text,PostAddress:PostalAddressTextInput.Text,
EmailAddress:EmailAddressTextInput.Text,
PhoneNumber:PhoneNumberTextInput.Text,
TwitterHandle:TwitterTextInput.Text,
Website:WebsiteTextInput.Text})});
Reset(FullNameTextInput);Reset(PostalAddressTextInput);Reset(EmailAddressTextInput);Reset(PhoneNumberTextInput);Reset(TwitterTextInput);Reset(WebsiteTextInput);
Clear(ScannedImages)
EmailAddress:EmailAddressTextInput.Text,
PhoneNumber:PhoneNumberTextInput.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.
Comments
-
Business Card Scanner
I have an error on the ClearCollect Function for the ClickButton on the ScanScreen. It says that the ScannedImages Name is invalid.
The same in the Items Function for the ScannedGallery, it says the same. The ScannedImages Name is invalid.
When do you define the ScannedImages Collection in your Video? Somehow i missed that...
*This post is locked for comments