cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Madi
Level: Powered On

Powerapps - People Picker with Parameter from URL

Hei 

I have seen ur posts on power apps  following "Set current user as default value of Person or Group field". What i want to do is to set the field from the url parameter . I managed to save the correctly in sharepoint list but field is not displaying the user name in current field which is coming from Url parameter . 

Here are steps tht i did 

 

 onStart and onVisible iam setting the variables like this 

 

Set(ContactPerson, Param("ContactPerson"));
Set(ContactPersonEmail, Param("ContactPersonEmail"))

 

 

OnField Update : 

 

If(Text(TestForm.Mode)="1",{
DisplayName:ContactPersonEmail,
Claims:"i:0#.f|membership|" & Lower(ContactPersonEmail),
Department:"",
Email:ContactPersonEmail,
JobTitle:"",
Picture:""
},DataCardValue1.Selected)

 

 

on field datacardvalue.SeletedItems

 

If(Text(SaksframleggForm.Mode)="1",Table({
DisplayName:ContactPersonEmail,
Claims:"i:0#.f|membership|" & Lower(ContactPersonEmail),
Department:"",
Email:ContactPersonEmail,
JobTitle:"",
Picture:""
},Parent.Default))

 

When i save the form i can see results are saving into sharepoint list but when i play the power app field display nothing . Can u tell wht else shud i have to do ??

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Powerapps - People Picker with Parameter from URL

hi @Madi,

Can you share a bit details more about your issue?

Do you enable “Multiple selections option for your Person type column?

Do you mean that you can’t see the value in the combo box ?

 

I made a test. There's no issue on my side.

 

By single column

8.PNG

Set the DefaultSelectedItems property of dropdown control to:

If(Text(EditForm1.Mode)="1",{ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"", 
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
},Parent.Default)

Set the update property of datacard to:

If(Text(EditForm1.Mode)="1",{ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"",  
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
},DataCardValue4.Selected)

By Multiple selection:

9.PNG

Set the DefaultSelectedItems property of dropdown control to:

If(Text(EditForm1.Mode)="1",Table({ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"", 
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
}),Parent.Default)

Set the update property of datacard to:

If(Text(EditForm1.Mode)="1",Table({ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"",  
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
}),DataCardValue4.SelectedItems)

 

Please check if  displayfields property of datacard has multiple fields.

 

regards,

Eason

 

Community Support Team _ Eason YU
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
Community Support Team
Community Support Team

Re: Powerapps - People Picker with Parameter from URL

hi @Madi,

Can you share a bit details more about your issue?

Do you enable “Multiple selections option for your Person type column?

Do you mean that you can’t see the value in the combo box ?

 

I made a test. There's no issue on my side.

 

By single column

8.PNG

Set the DefaultSelectedItems property of dropdown control to:

If(Text(EditForm1.Mode)="1",{ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"", 
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
},Parent.Default)

Set the update property of datacard to:

If(Text(EditForm1.Mode)="1",{ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"",  
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
},DataCardValue4.Selected)

By Multiple selection:

9.PNG

Set the DefaultSelectedItems property of dropdown control to:

If(Text(EditForm1.Mode)="1",Table({ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"", 
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
}),Parent.Default)

Set the update property of datacard to:

If(Text(EditForm1.Mode)="1",Table({ 
  DisplayName:User().FullName,
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"",  
  Email:User().Email, 
  JobTitle:"", 
  Picture:""
}),DataCardValue4.SelectedItems)

 

Please check if  displayfields property of datacard has multiple fields.

 

regards,

Eason

 

Community Support Team _ Eason YU
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

Madi
Level: Powered On

Re: Powerapps - People Picker with Parameter from URL

Thank after enabling multiple selection it began to work just for 1 or 2 times after tht again iam getting error "Data cannot save invalid Datasource" and tht field is not going to save at all .If i remove person/group field and try to save rest of my form it just save quickly . Its very strange because i have done same on other form and everything is working perfectly . 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 429 members 6,023 guests
Please welcome our newest community members: