Introduction
A CRUD operation is the most basic thing for all applications. In PowerApps, we can create a CRUD operation with SharePoint List in many ways like using the form, grid, data table, etc.
In this article, we will create a CRUD operation using a grid view as a SharePoint quick edit. So let's start the step by step implementation.
Implementation
Create SharePoint lists as below,
- Create a list called Employees Information with the below field,
Let's start the PowerApps Implementation,
- Move to the PowerApps
- Go to the Create > Canvas app from blank
- Give App name and select format
Now we will add required controls like Gallery, Labels, Icons and Text Inputs
Add TextInput, DatePicker, and Icons (for Save, Edit, and Cancel) inside the gallery as below,
After successfully adding all controls on the screen, our screen looks like this,
Add Data Source for mapping controls and save back to SharePoint list
- Go to the View on top ribbon > Select Data source > Search SharePoint > Add Connection > Connect to the SharePoint Site > Select list (Employees Information).
- Set Default Properties for txtName and txtAddress controls as below,
- Set DefaultDate Property for datePicker control as below,
- Set OnStart property of App creating a variable called ItemID = 0
Create Record
On clicking the add icon, we will create a row inside the gallery with all the above-added controls.
Set OnSelct property on iconAdd as below,
- Set(
- ItemID,
- Patch(
- 'Employees Information',
- Defaults('Employees Information'),
- {'Name (Title)': ""}
- ).ID
- )
Edit Record
- Let's create logic for editing and saving button selection
- On Selection of Edit Button, we will get selected item ID and set the variable called ItemID.
- Set OnSelect property of btnEdit as below,
- Select(Parent);
- Set(
- ItemID,
- ThisItem.ID
- )









Chinni ReddyPosted Nov 2, 2021, 7:23 AM
Its not working for me all formulaes showing error me. Kindly assist me anybody for this article?
Reddiprasad APosted Jun 3, 2021, 3:36 PM
Nice Article, but where is the "btnSelect"
Amit KumarPosted Mar 15, 2021, 7:56 PM
Very nice article. Thanks for sharing.
Emilio RoquetaPosted Dec 11, 2020, 1:11 PM
Thank you Chandani !!
Sumit KumarPosted Jul 14, 2020, 2:56 AM
Nice article. thanks Chandani for the sharing this blog...