cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jlhernandez
New Member

I want to insert and edit fields in a share point list from scratch

It is very comfortable to use the automatic wizard that uses share point and power apps without doing anything, but I would like to learn how to do it from scratch what it is to insert, update and delete the fields (CRUD) from scratch

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @jlhernandez ,

Do you want to learn how to update data of sharepoint list from powerapps?

Firstly, you need to create sharepoint site, sharepoint list and columns in your list.

Here's a doc about this in details for your reference:

https://support.microsoft.com/en-us/office/create-a-site-in-sharepoint-online-4d1e11bf-8ddc-499d-b88...

 

Secondly, you need to create an app in powerapps.

Connect this app with the sharepoint list that you want to update.

Here's a doc about this in details for your  reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-sharepoint-onlin...

 

Thirdly, you need to know about the formulas about updating data:

Patch(listname,Defaults(listname),{fieldname:...})   //create anew record

Patch(listname,item to update,{fieldname:...})   //update an existing record

SubmitForm(Formname)   //submit a form to create new record or update an existing record

Collect(listname,record)   //create new record

Remove(listname,item that you want to remove)    //delete record

Here are docs about these functions:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearc...

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-remove-removeif

 

Fourthly, put the formula that you use to update in one control's behavior property.

Common behavior property: OnSelect, OnChange,....

When you trigger this property, the action will perform.

 

Actually, I more suggest you try to create app by starting from data, then choose sharepoint.

You will get an app generated based on that sharepoint list. You could learn a lot from that generated app.

Here's a doc about how to create this kind of app for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/app-from-sharepoint

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
EricRegnier
Super User II
Super User II

Hi @jlhernandez,

Not sure I understand fully what you're looking for. Is it to manually modify CDS entities such as adding or a new field or deleting an existing field part of an entity? Or are you looking for create/reading/deleting/updating (CRUD) records of an entity (table)?

Cheers

v-yutliu-msft
Community Support
Community Support

Hi @jlhernandez ,

Do you want to learn how to update data of sharepoint list from powerapps?

Firstly, you need to create sharepoint site, sharepoint list and columns in your list.

Here's a doc about this in details for your reference:

https://support.microsoft.com/en-us/office/create-a-site-in-sharepoint-online-4d1e11bf-8ddc-499d-b88...

 

Secondly, you need to create an app in powerapps.

Connect this app with the sharepoint list that you want to update.

Here's a doc about this in details for your  reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-sharepoint-onlin...

 

Thirdly, you need to know about the formulas about updating data:

Patch(listname,Defaults(listname),{fieldname:...})   //create anew record

Patch(listname,item to update,{fieldname:...})   //update an existing record

SubmitForm(Formname)   //submit a form to create new record or update an existing record

Collect(listname,record)   //create new record

Remove(listname,item that you want to remove)    //delete record

Here are docs about these functions:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearc...

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-remove-removeif

 

Fourthly, put the formula that you use to update in one control's behavior property.

Common behavior property: OnSelect, OnChange,....

When you trigger this property, the action will perform.

 

Actually, I more suggest you try to create app by starting from data, then choose sharepoint.

You will get an app generated based on that sharepoint list. You could learn a lot from that generated app.

Here's a doc about how to create this kind of app for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/app-from-sharepoint

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (776)