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.

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

 

Sandy

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,052)