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!

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!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 221 members 4,696 guests
Please welcome our newest community members: