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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (81,481)