cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Set a People Picker control to a designated person.

I'm using an Issue list in SharePoint.  I want to set the "Assigned To" field to a specific person.  Can that be easily done?  I would like to open up the list in PowerApps and set the default value to "someone@company.com".  The only options I've found is to set it to the current user.  That won't resolve my issue.  

 

Thanks for your suggestions.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Set a People Picker control to a designated person.

Hi @JMUSharePoint ,

Do you want to set the Default value of the "Assigned To" field to a specific person in your Org within the Edit form of your app?

Is the Issue list that you mentioned a Issue Tracking SP list?

I have made a test on my side, please take a try with the following workaround:1.JPG

Set the DefaultSelectedItems property of the Combo Box control within the Assigned To Data card to following:

 

If(
    EditForm1.Mode=FormMode.New,
    {
      DisplayName: Office365Users.UserProfile("Test3@xxxxxx.xxmicrosoft.com").DisplayName,
      Claims: "i:0#.f|membership|" & Lower("Test3@xxxxxx.xxmicrosoft.com"), 
      Department: "", 
      Email: "Test3@xxxxxx.xxmicrosoft.com", 
      JobTitle: "", 
      Picture: ""
    },
    Parent.Default
)

On your side, you should type the following formula:

 

If(
    EditForm1.Mode=FormMode.New,
    {
      DisplayName: Office365Users.UserProfile("someone@company.com").DisplayName,
      Claims: "i:0#.f|membership|" & Lower("someone@company.com"), 
      Department: "", 
      Email: "someone@company.com", 
      JobTitle: "", 
      Picture: ""
    },
    Parent.Default
)

Note: I assume that the "someonoe@company.com" represents a specific person in your Org. You could not specify an external user (outside your Org) within this Assigned To field.

 

More details about setting a default value for a Person field within the Edit form, please check the following blog:

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

Also please check the response within the following thread:

https://powerusers.microsoft.com/t5/Creating-Apps/Set-the-default-value-of-person-lookup-to-current-...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Set a People Picker control to a designated person.

Hi @JMUSharePoint ,

Do you want to set the Default value of the "Assigned To" field to a specific person in your Org within the Edit form of your app?

Is the Issue list that you mentioned a Issue Tracking SP list?

I have made a test on my side, please take a try with the following workaround:1.JPG

Set the DefaultSelectedItems property of the Combo Box control within the Assigned To Data card to following:

 

If(
    EditForm1.Mode=FormMode.New,
    {
      DisplayName: Office365Users.UserProfile("Test3@xxxxxx.xxmicrosoft.com").DisplayName,
      Claims: "i:0#.f|membership|" & Lower("Test3@xxxxxx.xxmicrosoft.com"), 
      Department: "", 
      Email: "Test3@xxxxxx.xxmicrosoft.com", 
      JobTitle: "", 
      Picture: ""
    },
    Parent.Default
)

On your side, you should type the following formula:

 

If(
    EditForm1.Mode=FormMode.New,
    {
      DisplayName: Office365Users.UserProfile("someone@company.com").DisplayName,
      Claims: "i:0#.f|membership|" & Lower("someone@company.com"), 
      Department: "", 
      Email: "someone@company.com", 
      JobTitle: "", 
      Picture: ""
    },
    Parent.Default
)

Note: I assume that the "someonoe@company.com" represents a specific person in your Org. You could not specify an external user (outside your Org) within this Assigned To field.

 

More details about setting a default value for a Person field within the Edit form, please check the following blog:

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

Also please check the response within the following thread:

https://powerusers.microsoft.com/t5/Creating-Apps/Set-the-default-value-of-person-lookup-to-current-...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: Set a People Picker control to a designated person.

I just now got back to this but it worked!  Thank you so much for your help.

 

Sandy

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,793)