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 / Transfer data from col...
Power Apps
Answered

Transfer data from collection to sharepoint list for multi-select inputs

(0) ShareShare
ReportReport
Posted on by 71

Hi,

I've created a custom form that allows you to add feedback first to a collections table prior to uploading to a sharepoint list.

Data is populating to the collections table correctly for all input fields.

However, when I try to transfer the collection table to a sharepoint list, two columns won't transfer over (surgeons and instruments); these two columns are multi select list box options.

 

Here is my current code:

Patch(
'Clinical Lab Notes',
ForAll(
FeedbackCollection As _col,
{
Title: _col.Title,
Date: _col.Date,
Location: {Value: _col.Location.Location},
Project: {Value: _col.Project.Projects},
Procedure: _col.Procedure,
'Cadaver Gender': _col.Cadaver_Gender,
'Cadaver Levels': _col.Cadaver_Levels,
'Cadaver Pathology': _col.Cadaver_Pathology,
Step: {Value: _col.Step.'Step Name'},
Feedback: _col.Feedback,
Instrument: {Value: _col.Instrument.Instrument}

Surgeon: {Value:_col.Surgeon.Surgeon
}
)
)


There seems to be something wrong with the "Instrument"  and "Surgeon" syntax.

What needs to be fixed?

 

List box options:

alakshman_0-1694467740500.png

 


Collections Table:

alakshman_1-1694467740651.png

 

 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Hi @alakshman,

     

    Your trying to Patch Instrument and Surgeon as a string into a MultiSelect column.

    The Concat function concatenates the result of a formula applied across all the records of a table, resulting in a single string. 

     

    Instead of doing the Concat you just want to send the whole record with the Patch and not just a string. 

    e.g.

     

    Patch(
     'Clinical Lab Notes',
     ForAll(
     FeedbackCollection As _col,
     {
     Title: _col.Title,
     Date: _col.Date,
     Location: {Value: _col.Location.Location},
     Project: {Value: _col.Project.Projects},
     Procedure: _col.Procedure,
     'Cadaver Gender': _col.Cadaver_Gender,
     'Cadaver Levels': _col.Cadaver_Levels,
     'Cadaver Pathology': _col.Cadaver_Pathology,
     Step: {Value: _col.Step.'Step Name'},
     Feedback: _col.Feedback,
     Instrument: {Value: <ComboBox1>.Selected}
     Surgeon: {Value: <ComboBox2>.Selected}
     }
     )
    )

     

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • Verified answer
    alakshman Profile Picture
    71 on at

    @SpongYe 

    Thanks for the feedback!

    Tried that and it didn't work unfortunately.

     

    However got everything to work with a combination of spilt and concat function:

    Patch(
    'Clinical Lab Notes',
    ForAll(
    FeedbackCollection As _col,
    {
    Title: _col.Title,
    Date: _col.Date,
    Location: {Value: _col.Location.Location},
    Project: {Value: _col.Project.Projects},
    Procedure: _col.Procedure,
    'Cadaver Gender': _col.Cadaver_Gender,
    'Cadaver Levels': _col.Cadaver_Levels,
    'Cadaver Pathology': _col.Cadaver_Pathology,
    Step: {Value: _col.Step.Value},
    Question: {Value: _col.Question.Question},
    Surgeons: Split(Concat(_col.Surgeons, 'Last Name', "; "), "; "),
    Instrument: Split(Concat(_col.Instrument, Instrument, "; "), "; "),
    Feedback: _col.Feedback
    }
    )
    )

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard