Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
[Part 2] - Create a Barcode enabled Inventory Management System using SharePoint and PowerApps - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

2019-04-16

In this post, we will learn how to develop the Inventory system using SharePoint & PowerApps.

This tutorial consists of 2 parts,

  • Part 1 or I’ll call it as Bahubali Beginning: Create Barcode enabled Inventory list in SharePoint, which tells you step-by-step how to do the data configuration for the Inventory within SharePoint.
  • Part 2 or Bahubali Conclusion (this guide): Utilize SharePoint inventory list in PowerApps for User experience.

Let’s get started…

Create an app in PowerApps

We can create PowerApps directly from a SharePoint List, (as shown below).

Click on the List (in my case “sample inventory”)>PowerApps from list ribbon>Create an App.

SharePoint list

 

Or, go to https://web.powerapps.com/ >Click on Start from data> Create>

 

SharePoint (Phone layout)>

Create Connection if you have not created before else using existing connection and select site in which our list is present.

 

Then select our list ‘Sample Inventory’ (in my case)

 

Hurray, now your PowerApps is successfully configured with SharePoint list data.

Setup PowerApps

Develop the PowerApp

Now let’s develop the PowerApps screens.

Step1: Create the Browse Screen:

Add Barcode Scanner control from ribbon and place it beside the search.

Step 2. Update Browse Gallery’s items

SortByColumns(Filter('Sample Inventory',StartsWith(OData__dlc_BarcodeValue, BarcodeScanner3.Value)),"Title", If(SortDescending1, Descending, Ascending))

OData__dlc_BarcodeValue represents SharePoint fields which hold the Barcode value.

BarcodeScanner3.Value will give value after scanning the barcode.

Change layout of gallery from Properties>Layout

Note: I changed the layout because I don’t have an image to show in the gallery. If your Inventory system stores image for every inventory, then you can use default gallery with the image.

Step 3. Let’s work on Detail Screen.

We display Barcode image we have to change in the property of the control as below.

Select Barcode DataCardValue control>go in Advanced tab> find Image property in Data section and set it to,

Image= "{siteURL}/_layouts/15/barcodeimagefromitem.aspx?ID="&BrowseGallery1.Selected.ID&"&list={listGUID}"

Step 4. In Edit Screen, remove unnecessary fields like attachment etc.

Note: you can have columns according to your requirements in Detail and Edit screen.

Step 5. Save and publish it. (You can give cosmetic touch up as per need)

Let’s test the PowerApp!

To test this, open the “Inventory Management System” (as shown in figure 1), then Scan the barcode from any matching SharePoint items from within the Sample Inventory list.

In the figure below, we’re scanning a bar code for a bookcase (figure 1) and we find it (figure 2).

Hurray 🙂 your application is ready to use. Test the result

(Visited 7,755 times, 1 visits today)

About the author 

Anil Pal

SharePoint | Office365 Developer | PowerApps | MS Flow

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.