Script

Wednesday, June 3, 2020

PowerApps AI Builder : Scan Business Card and Create Record in D365 CE


PowerApps AI Builder gives a great option to scan the business card.

In this post, we going to see how to use Business Card Reader control and creating a contact record in D365 CE using Power Automate

Step 1 : Login to PowerApps using https://make.powerapps.com



Step 2 : Select AI Builder -> Build and click on the Business Card Reader



Step 3 : Select Use in an app



Step 4: App page will open with business card reader control added in the screen. Rename the BusinessCardReader1 control as BCR



Step 5 : Add the controls to the screen to capture the business card details



Step 6 : To capture Full Name from business card, select the full name text control and add the expression as BCR.FullName



Step 7 : To capture Address City from business card, select the City text control and add the expression as BCR.AddressCity





Step 8 : Remaining fields will be mapped in the same way

Step 9 : From the PowerApps builder window, select Action -> Power Automate
Selecting Create a new flow from the dialog will take you to Power Automate window
Establish a connection and add a new step to Create a new record in CRM



Step 10 : Select the field to map and click Add Dynamic Content. Selecting Ask in PowerApps will create a mapping variable in power automate. It allow us to pass the data as a parameter from PowerApps. We can pass multiple values as parameter in this way
Once the field mapping is completed, Save the flow




Step 11 : Select the Save button and add the expression as CreateContact.Run(param1,param2,…..)
CreateContact : Name of the flow we created in previous step




Step 12 : We can see the mapping the created in power automate is displayed as parameters



Step 13 : Expression after setting value for parameters



Demo :



Contact record created in D365 CE with the details captured in PowerApps


No comments:

Post a Comment