cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
viduraliyanage
Level: Powered On

Update SharePoint list field with a button click

Hi,

I am using custom PowerApps forms to add and update SharePoint lists data. I have the requirement of update a text fields with a button click.

 

Capture.PNG

 

As shown in the above image, textbox 1 is linked to SharePoint list field and textbox 2 is a simple textbox which is not connected to anything. My requirement is, when a user add a text to the textbox 2 and hit add, it should concatenate with the textbox 1 as shown above. Users would edit the form few times, so I couldn’t get this done by UpdateContext.

 

I may be overlooking something, and I appreciate if someone could assist me on this matter.

 

Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Update SharePoint list field with a button click

Which form you used here?

The SharePoint list form,

 

Or the EditForm control within Apps?

 

The basic step for your requirement should be:

1. Find the proper record,

2. use Patch to update the field.

 

For different forms ,the record is different.

For example, if you here use the Editform control built from Connect to Data, then the record should be:

gallery.selected,

so the patch function should be:

patch(SharePointList, 
Gallery.Selected,
{TextField:Concatenate(Gallery.Selected.FieldName, Char(13), TextInput2.Text)})

Regards,

Michael

Community Support Team _ Michael Shao
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

1 REPLY 1
Community Support Team
Community Support Team

Re: Update SharePoint list field with a button click

Which form you used here?

The SharePoint list form,

 

Or the EditForm control within Apps?

 

The basic step for your requirement should be:

1. Find the proper record,

2. use Patch to update the field.

 

For different forms ,the record is different.

For example, if you here use the Editform control built from Connect to Data, then the record should be:

gallery.selected,

so the patch function should be:

patch(SharePointList, 
Gallery.Selected,
{TextField:Concatenate(Gallery.Selected.FieldName, Char(13), TextInput2.Text)})

Regards,

Michael

Community Support Team _ Michael Shao
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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,012)