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 / PowerApp - Patch Urgen...
Power Apps
Answered

PowerApp - Patch Urgent Help, pls!!

(1) ShareShare
ReportReport
Posted on by 28

Hi Everyone, 

I am seeking urgent help on a formula for power app. I am attempting to have all fields patch to my SharePoint data list (working but not fully) I am stuck on my combo box field. I select three names on the combo box and they get separated but the same name populates. how can i fix this? Here is the format I've used and an example below; 

ForAll(
    ClientNameComboBoxGS.SelectedItems,
    Patch(
        'Group Sign In Sheet',
        Defaults('Group Sign In Sheet'),
        {
            'Client Name': ClientNameComboBoxGS.Selected.ClientName,
            Group: GroupNameText.Text,
            FacilitatorName: FacOneText.Text,
            Location: LocationText.Text,
            Date: DatePicker1_1.SelectedDate,
            Start_Time: StartDropdown_1.Selected.Value,
            End_Time: EndDropdown_1.Selected.Value,
            TotalTime: TotalTimeLabel_1.Text,
            Facilitator_Date: DatePicker1_1.SelectedDate
        }
    )
)
 
 
The name is the issue because this what I selected in the combo box and what saved to SharePoint
JValencia50_1-1689895171315.png

 

JValencia50_0-1689895073294.png

 

Categories:
  • narayan225 Profile Picture
    2,547 Moderator on at

    @JValencia50 

     

    So you want to create a new record for each selected items in a combo box? Or do you want to create one record?

     

    Cheers!

  • JValencia50 Profile Picture
    28 on at

    Hi Narayan, Thanks for the response. I want to create a new record for each selected items in the combo box. 

     

    Thank you

  • Verified answer
    narayan225 Profile Picture
    2,547 Moderator on at

    @JValencia50 

     

    In that case, in your formula, use ThisRecord function instead.

     

    ForAll(
     ClientNameComboBoxGS.SelectedItems,
     Patch(
     'Group Sign In Sheet',
     Defaults('Group Sign In Sheet'),
     {
     'Client Name': ThisRecord.ClientName,
     Group: GroupNameText.Text,
     FacilitatorName: FacOneText.Text,
     Location: LocationText.Text,
     Date: DatePicker1_1.SelectedDate,
     Start_Time: StartDropdown_1.Selected.Value,
     End_Time: EndDropdown_1.Selected.Value,
     TotalTime: TotalTimeLabel_1.Text,
     Facilitator_Date: DatePicker1_1.SelectedDate
     }
     )
    )

    I have replaced ClientNameComboBoxGS.Selected.ClientName to ThisRecord.ClientName as this will provide dynamic value when you run the ForAll loop.

     

    Cheers!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard