Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Barcode Scanner and SMS


I am trying to create an app for courier company which work like this:

1. Customer will select the items from e-commerce website. All items will be fed into customer related record where all information related to him like Name, Phone, Address, selected item's Barcode etc is stored.

2. Once the courier company scan the items before dispatch, same time one SMS will be sent to the customer saying "your item is ready for Dispatch and reached within 24 hours".

3. Basically Scenerio is: we have the customer records along with selected item's barcode stored in database (excel). Once the Courier company scan same item then our app should automatically scan the records in database and once the barcode match with the one stored in database one SMS should go to the customer.

            I have tried creating it by assigning one variable to ONSCAN property of Scan button. This variable.value should be used to search the database. And once the search is successful then how can i send the SMS? How shall I do it?

Appreciate if someone can support in defining the Code.



Community Champion
Community Champion

You will filter your gallery off the item that is scanned so you have just the one item in the gallery and then I would suggest you push that info into Flow to send a SMS or you could do the SendEmail and send it to the email that is through your carrier. Like:



Responsive Resident
Responsive Resident



You can do the following to achieve this:


1. On Scan of the barcode get the record from database (excel) and collect the record data in a collection.

2. Two ways to send SMS (a. When user clicks button, launch the phone's sms window with prepopulated number and message body, b. In the background send sms to a number with a message body)

Both of these can be achieved in powerapps. This link helps you for that (

3. Create a button (Send SMS) on click of button, call the microsoft flow which you have created in previous step by passing the collection value.


Feel free to let me know if this answers your question.


If this answers your question, give a thumsup and mark it as verified.


Pavan Kumar Garlapati

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,431)