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 / Patch Function for lot...
Power Apps
Answered

Patch Function for lots of collections

(0) ShareShare
ReportReport
Posted on by 40

Hi, 

 

I have created a collection for my answers in a drop down for a gallery. These are working fine. But, when I go to patch these back to the SP list, this isn't working. I was wondering if anyone knew what I was doing wrong?

 

The title patches if it's by itself, but the rest doesnt work. When I hover over each line I can see the collection but I can't see it in the SP list, something is going wrong!

 

Thanks for the help!

 

Patch(WAHSE,Defaults(WAHSE), {Title:"Collected"});
// WAHSE
Patch(WAHSE,
{
HSEPlanRegisters:Mid(Concat(Drop1, ", " & Value),3),
SecondarySubcontractors:Mid(Concat(Drop2, ", " & Value),3),
Records:Mid(Concat(Drop3, ", " & Value),3),
RiskAssessmentDocumentation:Mid(Concat(Drop4, ", " & Value),3),
SiteInspection:Mid(Concat(Drop5, ", " & Value),3),)
})

Categories:
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @wen90 

     

    First check if Mid(Concat(Drop1, ", " & Value),3) returns any value

    create a test label and set its text property to - Mid(Concat(Drop1, ", " & Value),3)

     

    Next when patching and creating new item and all the details as below and check

     

    Patch(WAHSE,Defaults(WAHSE), {Title:"Collected",
    HSEPlanRegisters:Mid(Concat(Drop1, ", " & Value),3),
    SecondarySubcontractors:Mid(Concat(Drop2, ", " & Value),3),
    Records:Mid(Concat(Drop3, ", " & Value),3),
    RiskAssessmentDocumentation:Mid(Concat(Drop4, ", " & Value),3),
    SiteInspection:Mid(Concat(Drop5, ", " & Value),3),)
    })

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • wen90 Profile Picture
    40 on at

    Thank you!

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard