cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mlaurie
Level: Powered On

Allow fill-in for column currently searching Office365 users

I have a situation in a form in which the current way a person is selected is to choose from a field that is set to look up anyone in the tenant. There is a need to allow a fill-in choice as the user needing to be selected hasn't been put into the tenant yet as they are a new-hire, transferring positions, etc. I found this script (inserted into the Update property) to allow the form to be saved without an invalid value.

 

If(Not IsBlank(DataCardValue2.Selected), DataCardValue2.Selected,{Value: DataCardValue2.SearchText, '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"})

 

The problem is the .searchtext is not being saved to the SharePoint column, all other fields are saving to their corresponding columns. Any ideas from the community?

1 ACCEPTED SOLUTION

Accepted Solutions
mlaurie
Level: Powered On

Re: Allow fill-in for column currently searching Office365 users

Hello, thank you for your reply. I want to be able to only accept the text in the DataCardValue2.text and not patch the new employee in as I don't want multiple entries when they finally get a tenant user account created. 

 

I spoke with the stakeholder and we have opted to use a text input field instead of a people picker all together. Thanks for your help!

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Allow fill-in for column currently searching Office365 users

Hi @mlaurie ,

Do you want to update data to the person column?

I suggest you patch the new employee's information to the person coulmn.

Then you could search him in the combo box.

Here's patch formula for your reference:

Patch(Patchtesting,
Defaults(Patchtesting), { Title:"SinglePerson", Person: {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims:"i:0#.f|membership|michael@testing.com", Department:"", DisplayName:"Michael Shao", Email:"Michael@testing.com", JobTitle:"", Picture:"" }})

 

Here's a similar issue for your reference:

https://powerusers.microsoft.com/t5/General-Discussion/Saving-data-from-powerapps-to-SP-lists-person...

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mlaurie
Level: Powered On

Re: Allow fill-in for column currently searching Office365 users

Hello, thank you for your reply. I want to be able to only accept the text in the DataCardValue2.text and not patch the new employee in as I don't want multiple entries when they finally get a tenant user account created. 

 

I spoke with the stakeholder and we have opted to use a text input field instead of a people picker all together. Thanks for your help!

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,921)