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.



Super User
Super User

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:





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


Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users


We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (11,905)