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 III
Super User III

@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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,205)