I have two fields. A choice field and a people field. I would like to have the people picker field to auto-populate when a specific value is selected in the choice field. I also want to be able to over-ride the people field if needed. This is what I have so far:
DefaultSelectedItems =
If(
DataCardValue3.Selected.Value = "Events",
{
'@odata.type': Office365Users.UserProfile("test1@itagroup.com").DisplayName,
Claims: "i:0#.f|membership|"&"test1@itagroup.com",
DisplayName: "test user acct"
},
If(
DataCardValue3.Selected.Value = "CPS",
{
'@odata.type': Office365Users.UserProfile("test2@itagroup.com").DisplayName,
Claims: "i:0#.f|membership|"&"test2@itagroup.com",
DisplayName: "test 2 user acct"
},
If(
DataCardValue3.Selected.Value = "EX",
{
'@odata.type': Office365Users.UserProfile("test3@itagroup.com").DisplayName,
Claims: "i:0#.f|membership|"&"test3@itagroup.com",
DisplayName: "test 3 user acct"
},
Parent.Default
)))
It does auto-populate, but I'm not able to override the auto-populate.
Any assistance is greatly appreciated.