I am trying to autopopulate a person field based on the selection in a dropdown. The dropdown is pulling from another list, which I am getting a few fields, one of them is a person field. I can get the value to populate in my person fields using this formula:
If(
FormNewPMR.Mode=New,
{
Claims: "i:0#.f|membership|" & Lower(LookUp(Office365Users.SearchUser(),DisplayName = ComboBoxProgName.Selected.'Account Manager'.DisplayName,Mail)),
DisplayName: DataCardValue63.Text,
Email: LookUp(Office365Users.SearchUser(),DisplayName = ComboBoxProgName.Selected.'Account Manager'.Email,Mail),
Department:"",
JobTitle:"",
Picture:""
},
Parent.Default)
But am getting Bad Gateway error.
UPDATE: I figured it out, it was so simple. I used the same formula that I used on the other fields from the dropdown, but instead of Default items, I needed to use DefaultSelectedItems.
Solved! Go to Solution.
UPDATE: I figured it out, it was so simple. I used the same formula that I used on the other fields from the dropdown, but instead of Default items, I needed to use DefaultSelectedItems.
UPDATE: I figured it out, it was so simple. I used the same formula that I used on the other fields from the dropdown, but instead of Default items, I needed to use DefaultSelectedItems.