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.
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:
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.
Was this reply helpful?YesNo
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.