Sunday, November 17, 2019

QR/Barcode Scanning Mobile App using PowerApps integrate with Business Central & Dynamics NAV

Hello Friends,

As Mobile App development becomes very easy using PowerApps,

I have Created an App that will scan the Barcodes and QR Codes from Mobile App and Stores the scanned data into Business Central/Dynamics NAV

You can also develop this within minutes.

Just go through following steps.

Go to https://make.powerapps.com and login with your Microsoft account.

Create one Blank Canvas App.


























On the screen, just insert Barcode Scanner Control as follows.















Now insert the Gallery control to display the Scanned Data.















Now write a piece of code on “onScan” trigger of Scanner to collect the Scanned data into PowerApps Collection. “Collect(ScannedData,BarcodeScanner1.Value)”















Now Set the “Data source” Property of Gallery Control with “ScannedData”














Now Create one Microsoft flow to store these data into Business Central or any other data sources.
Go to the MS flow portal(http://flow.microsoft.com)

Create a new flow as follows.







Choose the PowerApps and set the Name as: “Insert Data” and click on create.














Meanwhile create one table(with Two fields “Entry No.”(Auto Inc.) and Scanned Value(Text[250])”) and page into Business Central to store scanned data into it; Publish the Page into Web service, as we are going to use OData URL to push Data into Business Central; and ready with OData URL along with User Name and Web Service Access Key; we’ll be using this into Flow creation.

Let’s go back to the MS Flow.


Click on New Step to and search for the “Initialize Variable” action.























Rename the Action name as “JsonFromPowerApps”; put the same name into Name Field; Type = String and Value = “Ask in PowesApps”.





















Add next Step and search for “Parse JSON”.













  • In Content Field select the “JsonFromPowerApps”. And put the JSON Schema as follows:
{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "Value": {
                "type": "string"
            }
        },
        "required": [
            "Value"
        ]
    }
}































Add next step to call Business central OData service to insert the Data into Table.














Set the Method = POST; URI = “Your OData URL of Business Central”
Body = { “Scanned_Value”: “Value of Parse JSON” } and set the authentication as “Basic” as follows.














Save the Flow and go back to the PowerApps.

Add one Button to this screen and set the Text = “Insert Data”.















Select the button and go to the Action > Flows as follows.
















Select and Add the Flow which we have created.



















Now on the “onSelect” trigger, write the piece of code to call the flow from PowerApps as follows.
Set(JsonData,JSON(ScannedData));InsertData.Run(JsonData);Clear(ScannedData)
















Now go to File menu and Save this app as “Barcode with BC”.














Its time to Test this App now.
Download the “PowerApps” from Google Play store or from Apple Store for iOS Devices.
Login with Microsoft Account in which we have created PowerApps Mobile App.

You will see the App “Barcode with BC” that we just have created.
























Open the App and you will notify with the Camera permission, tap on Allow on this.

























Now tap on Scan Button to start Code Scanning; you can see the scanned data into Gallery


























































After scanning multiple codes tap on “Insert Data” to store these data into Business Central Table (It will call MS Flow and Inserts the Data into BC).
You can see the data comes into Business central within milliseconds.













You can also share innovative thoughts to develop another App like this.

Thank you for reading.
If you have any query than write in comment box

Keep Sharing....Keep Growing....

50 comments:

  1. hie im having an authentication error on "apply to each " stage in power automate . which username and password am i suppose to use on the basic authentication?

    ReplyDelete
  2. Best blog on the scanner I have ever seen. I am a businessman and for my work propose, I had to contract onsite3d so that I can check my extend. They did an astonishing work. They moreover took a toll moo from their client. Amazing virtual data acquisition Vancouver, BC

    ReplyDelete
  3. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. spyfone

    ReplyDelete
  4. Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. https://yehprice.com

    ReplyDelete
  5. This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea. what is iptv

    ReplyDelete
  6. Enjoy millions of the latest Android apps, games, music, movies, TV, books, magazines & more. Apps

    ReplyDelete
  7. Enjoy millions of the latest Android apps, games, music, movies, TV, books, magazines & more. Visit here

    ReplyDelete
  8. The iGaming and online betting games industry is comprised of casino games, poker and sports betting online. In a highly competitive market, our iGaming SEO strategies will make your brand stand out and achieve the projected goals. 전남 출장 마사지

    ReplyDelete
  9. URL Encoder. Enter text to URL encode or decode. Converts the text into a percent encoded string URL CODE

    ReplyDelete
  10. Then spend much time finding ways to promote your business for real results. Beware of promotional companies that sound too good to be true.Hand Sanitiser Alcohol Free

    ReplyDelete
  11. Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good. Business Article

    ReplyDelete
  12. Gangaur Realtech is a professionally managed organisation specializing in real estate services where integrated services are provided by professionals to its clients seeking increased value by owning, occupying or investing in real estate. More

    ReplyDelete
  13. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.Concrete Scanning Services LUTHERVILLE TIMONIUM MD

    ReplyDelete
  14. suitable reveal, you have got denoted out a few brilliant factors, I likewise suppose this s a completely suitable internet site. i will visit anew for more mood contents and also, propose this website to every single one. thank you. https://www.blaze.me/dispensary-pos-software/

    ReplyDelete
  15. Today's world is filled with business identity thieves and con artists who are very clever, fast and determined to quickly take advantage of people who owns businesses but do not ensure necessary precaution have been put in place to protect their businesses. Identity theft has been labeled as a crime that affects many people each and every year. york pa business directory

    ReplyDelete
  16. Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks https://thegmailgoogle.blogspot.com/2020/10/dr-beauty-cosmet.html

    ReplyDelete
  17. Thankyou for this wondrous post, I am glad I observed this website on yahoo. Learn Microsoft Dynamics 365 Business Central

    ReplyDelete
  18. This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: Free Mobicip Coupons

    ReplyDelete
  19. I am definitely enjoying your website. You definitely have some great insight and great stories. obtener residencia en andorra

    ReplyDelete
  20. Thank you for taking the time to publish this information very useful! VoIP cheap

    ReplyDelete
  21. Great survey, I'm sure you're getting a great response. Outlook CRM

    ReplyDelete
  22. Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. pubg hileleri

    ReplyDelete
  23. I would recommend my profile is important to me, I invite you to discuss this topic... Nerve Control 911

    ReplyDelete
  24. For anyone with a passion for technology, this degree is a serious pathway to success. An MBA (Technology Management) is an online MBA degree that one can do from the convenience of home. So what does this course entail? http://www.hostnamaste.com/blog/seo-checklist-for-writing-fully-optimized-content/

    ReplyDelete
  25. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. best facility maintenance solutions

    ReplyDelete
  26. The material and aggregation is excellent and telltale as comfortably. dissertation writing services Technology

    ReplyDelete
  27. Thank you for content. I like it and my site is different for your site. please visit my site. เครดิตฟรี

    ReplyDelete
  28. Business Needs assessment includes an analysis of the underlying business drivers and objectives and overall context of business need that has been established for the client's Data Warehouse. When business needs have been defined, the assessment process examines the approach to capturing business requirements, their completeness, the priorities of the requirements, and alignment of the data warehouse release strategy and deliverables to the needs. best public adjusters

    ReplyDelete
  29. What is the truth about owning, starting, and building a home-based business? In this review we will examine the advantages and disadvantages in addition to some tips and hints. Success in this type of business requires self-discipline and self-motivation, you are your own boss. Is owning a home-based business worth the stress and challenges of working for yourself and making a significant amount of residual and passive income? مصور درون

    ReplyDelete
  30. Today's world is filled with business identity thieves and con artists who are very clever, fast and determined to quickly take advantage of people who owns businesses but do not ensure necessary precaution have been put in place to protect their businesses. Identity theft has been labeled as a crime that affects many people each and every year. Emissions

    ReplyDelete
  31. A functional and feature-rich business Kajabi vs clickfunnels is a power in your hand to reach over 6 billion mobile device subscribers around the world. Be it startups or large companies, every organization wants its application to take place in the customer's' smart devices.

    ReplyDelete
  32. In today's era, mobile Elyments App have become the part of everybody's life and businesses are looking more into it. With mobile app also comes mobile engagement. Wondering what is it? Mobile engagement is a term defined as a consistent interaction between the users and the mobile application for a long time.

    ReplyDelete
  33. This comment has been removed by the author.

    ReplyDelete
  34. Building a business requires considerable time and effort, and how do you maintain your business legacy? Read on to learn how you can help protect your business in the future through business succession planning Reddit best cryptocurrency

    ReplyDelete
  35. New web site is looking good. Thanks for the great effort. cell phone tracker

    ReplyDelete
  36. r free QR Code generator. Different QR Codes types have different applications. However, you can achieve the following outcomes through QR Code Chimp online generator
    QR Code Generator,QR Generator,QR code scanner,QR code Maker

    ReplyDelete
  37. Every good Going out of business must have a roadmap that tells exactly how the company is, its potentials and makeup. This important document serves as a guarantee for assistance by any technical or financial institution. It is thus imperative that young entrepreneurs consider developing their own business plan for their enterprises.

    ReplyDelete
  38. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. iPhone black friday sale

    ReplyDelete
  39. Developing an enticing top-notch business plan can be a daunting task. Yet it could be highly rewarding if the right strings are pulled. This article is targeted at business lovers who are keenly interested in taking their businesses to the next level. Freedom Insurance

    ReplyDelete
  40. This comment has been removed by the author.

    ReplyDelete
  41. The scanner automatically detects a barcode, a QR code, or a data-matrix code when in view. The control doesn't support scanning in a web browser. The barcode scanner control is only supported on Android and iOS devices. All other platforms will show a warning that some features of the app won't work. Read: Contact for: business central price

    ReplyDelete

  42. Thanks for sharing detail information about QR/Barcode Scanning Mobile App using PowerApps integrate with Business Central & Dynamics NAV. QR bar codes can be placed virtually anywhere, making them very functional for a wide variety of businesses. Create QR Code (vCard plus) with your contact and social details. Print code in high quality on your business card. Comes with Add to Contacts button to make it easy for your prospective clients just scanning the QR code and save your contact.

    ReplyDelete