web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update SharePoint List...
Power Apps
Unanswered

Update SharePoint List with Power App form data using Patch function

(1) ShareShare
ReportReport
Posted on by

Hello,


I have been beating my head for the past week trying to find the solution to my issue.
I have a SharePoint list that runs a weekly flow that pulls in data from multiple data sources.
People are able to go into the form and enter an APP ID to find the record information.
Some of the fields are manual input where people can either enter a new value or update an existing value.
My though is that I will need a patch function that will update the record.
I am stuck getting the selected values from my combo box and updating the SharePoint list item field with the new values.

 

Hard to believe I am the only one with this situation as I have scoured the internet and this site for an answer without success.
Below are many pictures showing what I am trying to do without success.

ChrisL1_3-1685557570902.png

 

ChrisL1_0-1685557339754.png

ChrisL1_1-1685557433844.png

ChrisL1_2-1685557507224.png

This is my first stab and patching the combo box to a SharePoint list and I get an network error.


Patch(
'CST Application Portfolio',
LookUp(
'CST Application Portfolio',
Title = Value(DataCardValue1.Text)
),
{'Existing Environments': cboExistingEnvironment}
);

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    Hi @Anonymous ,

    Assuming Title is a Text column and 'Existing Environments' is a Single Choice, you should need with this

    Patch(
     'CST Application Portfolio',
     LookUp(
     'CST Application Portfolio',
     Title = DataCardValue1.Text
     ),
     {'Existing Environments': cboExistingEnvironment.Selected}
    );

    or this should also work

    Patch(
     'CST Application Portfolio',
     LookUp(
     'CST Application Portfolio',
     Title = DataCardValue1.Text
     ),
     {'Existing Environments': {Value: cboExistingEnvironment.Selected.Value}}
    );

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    on at

    Hi Warren and thanks for your reply.
    My Existing Environments combo box is multi select.
    What changes due to that? 

  • Verified answer
    WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    Hi @Anonymous ,

    You might firstly read this blog of mine as this is not a simple process.

  • Community Power Platform Member Profile Picture
    on at

    Hi Warren,
    Thank you for the help.
    I was able to utilize your information to create the following patch.
    If(
    IsBlank(
    LookUp(
    'CST Application Portfolio',
    ID=Value(DataCardValue113.Text)
    )
    ),
    Patch(
    'CST Application Portfolio',
    Defaults('CST Application Portfolio'),
    {Title:DataCardValue26.Text,
    'App Id':DataCardValue1.Text}
    ),
    Patch('CST Application Portfolio',
    LookUp('CST Application Portfolio',
    ID=Value(DataCardValue113.Text)
    ),
    {Title:DataCardValue26.Text,
    'App Id':DataCardValue1.Text,
    'Existing Environments':Concat(DD_ExistingEnvironments.SelectedItems,Value,", ")
    }
    )
    )

  • Community Power Platform Member Profile Picture
    on at

    The blog was very helpful.
    I am surprised that doing this was that convoluted.

  • WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    Hi @Anonymous ,

    So this is solved now ?

  • Community Power Platform Member Profile Picture
    on at

    Hi Warren, Yes. I will mark your blog post as accepted solution.
    Thanks again!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard