Let’s see how to achieve this.
Open your PowerApps app. Open the screen which has a Form with Person or Group field added on it >> In below screen, owner is Person or Group field.
So, my requirement is that whenever users try to add a new record >> I want to keep a specific person as selected automatically (default) in owner field.
Select owner data card >> Click on “Unlock to change properties” from Advanced menu >> Select the value control inside the data card as shown below >> I have selected DataCardValue21>> From left top side drop down many select “Default” property
Here is the important step now >> Below is the format of data, this is how we need to set it; then only it detects it as User object and accepts the input.
We need to set same value to “DefaultSelectedItems” Property as well. This is a required step, as only then will it work. >> As you can see in the below screen it shows Anish.B owner as selected already by default.
Once your changes are done
insert->Button->To the Save Data in SharePoint
Button->Submitform(Form1)
>> Save the form and do a test to add a new record as shown below >> It will show Anish.B user as selected by default. You can make any user selected by default, it can be current user, current user’s manager or HR manager etc.
Once saved>> New list item got created in SharePoint list with Anish.B users saved properly in Person or Group field.
For any Help or Queries Contact us on info@crmonce.com or +918096556344
September 20, 2024
May 17, 2024