Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Unable to patch records in sharepoint(multiselect choice column) from power apps tab list

(1) ShareShare
ReportReport
Posted on by 12
Hi,
 
I have modern form  with tab list 1,2,3.In tablist 1 i have a combo boX with multiselect option which need to get patched in sharepoint where it is choice column with multiselect. on the submit button i have the below code.
 
   
    If(
    tablist1.Mode =tablist1.New,      
    Patch(
        Source,
        Defaults(Source),
     tablist1.Updates,    
               
        tablist2.Updates,
        tablist3.Updates
       
    ),
    tablist1.Mode = FormMode.Edit,
    Patch(
        source,
        LookUp(source,Description= tablist1.Updates.Description),
        tablist1.Updates,
       tablist2.Updates,
       tablist3.Updates
    )
);
 
I didn't get error when i keep the choice box in the share point as single select, but when i make the choice column of the share point column as multiselect i get the error while patching
  • WarrenBelz Profile Picture
    146,645 Most Valuable Professional on at
    Unable to patch records in sharepoint(multiselect choice column) from power apps tab list
    Hi Rajua,
    Firstly, I have  suggestion on the code as below - it should patch to the matching ID if present, or create  new record if nothing is returned, however this is not your issue here.
    A Form.Updates command simply uses the Update of every Form's Data Cards to write the output of the control (I assume a Combo Box) to the relevant field. If you have not allowed Power Apps to re-create the Data Card since you changed the field type, the Update will be incorrect, so either delete it and re-insert it (then Power Apps will set the value correctly), or post (in Text please) the current Items and DisplayFields of the Combo Box and the Update of the Data Card.
    With(
       {
          _ID:
          LookUp(
             Source,
             Description = tablist1.Updates.Description
          ).ID
       },
       Patch(
          Source,
          {ID: _ID},
          tablist1.Updates,    
          tablist2.Updates,
          tablist3.Updates
       )
    )

    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,007 Super User 2025 Season 1 on at
    Unable to patch records in sharepoint(multiselect choice column) from power apps tab list
    Hi,
     
    I do not see any errors here, I am sorry I cannot help you, except to say, patching a multi-select is significantly different than a single
     
    Please share your code and share the error
     
    Thanks

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard