cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rap
Frequent Visitor

Auto populate user on Dropdown

Hello,

When i created a new ticket on the app, i would like the ticket is auto assigned to the same user .

On SharePoint, the assigned column is person type.

 

 

Actually, i send all the information but no for assigned.

column.png

 

How can i do ?

5 REPLIES 5
mdevaney
Super User
Super User

@Rap 

Put this code in the DefaultSelectedItems property of the ComboBox.

 

If(Form1.Mode=FormMode.New,
{
  '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
   Claims: "i:0#.f|membership|"&User().Email,
   DisplayName:User().FullName,
   Email:User().Email
},
ThisItem.assigned
)

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Rap
Frequent Visitor

When i create a new ticket on HelpDesk app, i would like assign the ticket at the same person to resolve the request when i click on the submit button.

 

Rap
Frequent Visitor

i have errors with your code.

danielbazetto
Community Support
Community Support

@Rap 

 

What are the errors you are running on now?

It was almost that.

I found the solution :

 

{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
Claims: "i:0#.f|membership|name.surname@microsoft.com";
DisplayName:"Name Surname";
Email:"name.surname@microsoft.com"
}

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,024)