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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Save/Update com...
Power Apps
Answered

How to Save/Update combo box input data to SharePoint List

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

        Just a small thing. I have collection col_goal,There are 2 columns

goaldescription and priority this is the collection.

I created sharepoint list also (listGoal) same thing but I did created priority choice column in sharePoint list.

how to patch the collection data to sharePoint list.....But I treid then only saved Goaldescription not in save priority value

could you please tell me the patch what is syntax for this

colGoal patch.png
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @Prakash14151 ,

    Firstly, you cannot put a Notify statement inside a ForAll statement. There are also more efficient ways to patch a collection - try this

    If(
     !IsBlank(goaldescriptionlist),
     Notify("Patching");
     Patch(
     listGoal,
     ForAll(
     col_goal As _Goal,
     {
     goaldescriptionlist: _Goal.goaldescriptionlist,
     'Project Name' :varIteml.Project Name’,
     priority1: ComboBox5.Selected.Va1ue
     }
     )
     )
    )

    As well, please post your code in Text - saves re-typing here (and watch spelling in the code above)

    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

  • CU08011234-0 Profile Picture
    on at

    Thanks a lot It's working. 

    I have sent 3 screen shots...

    the first pic is Can I click the add Icon will go the next screen It's ok.....That Icon I write the syntax "ClearCollect",

    The Second Pic is Its showing empty particular Project Name But once I added to data into Goal list with out click 'Submit' btn to revert back btn.......I lost the data......But I know the  Issue 

     

    Is it possible..... Like AddIcon once I click that btn then will show like...already have data will show or else show the clear data that to particular Project Name.......

     

    if (
    ClearCollect(col_goal,
    Filter(listGoal,'Project Name'=varItem1.'Project Name')) ,
    
    ClearCollect(col_goal,
    {
     goaldescriptionlist:"",
     // priority1:"",
     Name:"",
     
     'Project Name':varItem1.'Project Name'
     
    }));

     

    First Picture.png
    Second Picture.png
    Third picture.png
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @Prakash14151 ,

    You have one side of the function as a Filter and the other side as an action - they are separate items.  Also the filter is on a different data source, so I am not sure what you are trying to achieve,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard