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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch command for a co...
Power Apps
Suggested Answer

Patch command for a component

(1) ShareShare
ReportReport
Posted on by 2
Hi 
 
I have a component field in my powerapp, which brings back a user search from our AD.
 
I cant seem to figure out the patch command this this component in my patch command. Both Patch forumla and the field are below or illustration?  Where BQ2 is my column in my sharepoint list that I would like it to patch to and the yellow field is what I am struggling to patch. 
 
Any help would be greatly appreciated.
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Ryan_B Profile Picture
    446 on at
    When you say component, are you referring to a control or a custom component you created in the Component Library? If it's the former, you can use the below solution to get what you need. If it's the latter, then you will need to specify a value in the component itself with an Output property so the app can read the data inside the component and use it. If you are just wanting a single piece of data, you can simply use Text as the data type, otherwise you can set it to Record to capture everything:
     
     
    If you are using a default Combobox, and not a custom component, to pull in users within your environment with the Office 365 Users connector, then here is the formula that is inside the Combobox to find your users:
     
    Office365Users.SearchUserV2({searchTerm: ComboBox1.SearchText}).value
     
    Once you have selected a user in the Combobox, here is the portion you will need to grab the data from it to patch to your SharePoint list:
     
    BQ2: ComboBox1.Selected.DisplayName
     
    You will then just need to select whichever attribute you want if it's not the DisplayName.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard