cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JMUSharePoint
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
v-xida-msft
Community Support
Community Support

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
v-xida-msft
Community Support
Community Support

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

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

 

Sandy

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,467)