Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Business Card Reader

(0) ShareShare
ReportReport
Posted on by 52
 
Community,
 
In our organization, we've customized the Contact entity to include custom fields for better managing our contacts' information. Specifically, we have added custom dropdown fields to record countries and states more accurately according to our internal categorization.

Our challenge arises when we try to utilize the business card reader feature to streamline the entry of contact information into Dynamics 365. It appears that the business card reader is designed to map scanned information only to the system's default fields. Unfortunately, this limitation prevents us from directly populating our custom country and state fields, impacting our data entry workflow and data consistency.

Is there a way to configure the business card reader or Dynamics 365 to allow mapping of scanned information directly into custom fields, specifically dropdowns for countries and states in the Contact entity? If direct configuration is not possible, are there any workarounds or best practices that can help us integrate this feature with our custom fields effectively? Perhaps a plugin or a script that can reroute the information post-entry?

We aim to make the data capturing process as seamless as possible while maintaining the integrity and specificity of our data categorization. Any advice, solutions, or points towards relevant documentation would be greatly appreciated.
Thank you in advance for your time and assistance!
 
 
  • Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Business Card Reader
    Hi,
     
    Has the issue been solved?
    Have there been any updates? Please feel free to ask me if you have any questions!
    If it has been resolved, can you mark the response as an answer?
     
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Business Card Reader
    Hi,
     
    You can customize the Business Card control mapping to a custom single-line text field.
     
    Then add the onchange event to this field to display the corresponding country in the customized country dropdown field based on the country value populated in this field.
    There are six countries in the Custom Country drop-down field.
     
    The code is as follows.
     
    function onchange(executionContext) {
        var formContext = executionContext.getFormContext();
     
        //Gets the custom field value
        var customField = formContext.getAttribute("cr8a7_customsinglelinefield").getValue();
        //Gets the custom country field reference
        var customCountry = formContext.getAttribute("cr8a7_customcountry");
     
        //If the custom field value is null, exit the function.
        if(!customField){
            return;
        }
     
        // Displays the value corresponding to the custom country option set field based on the value of the custom field.
        switch(customField){
            case "United States":customCountry.setValue(1);break;
            case "France":customCountry.setValue(2);break;
            case "United Kingdom":customCountry.setValue(3);break;
            case "India":customCountry.setValue(4);break;
            case "Japan":customCountry.setValue(5);break;
            case "Canada":customCountry.setValue(6);break;
     
            //If the mapped country is not included in the Option Set field, a prompt dialog box pops up.
            default: alert(`The mapped country: ${customField} is not included in the option set.`)
        }
     
    }
     
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans