web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Auto-Assign to self
Power Apps
Unanswered

Auto-Assign to self

(0) ShareShare
ReportReport
Posted on by 557
Hello,
 
I am trying to create a button where when you select Auto-Assign the field "Assigned to" updates to the user that is logged in's email.  Any help would be greatly appreciated.  
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at
    What is the Items of the Combo Box and is that a Classic or Modern control ? Also what is the name and type of field you are writing back to ?
  • joel914823 Profile Picture
    557 on at


    Hello @WarrenBelz  The Assigned To (in a form) is a people picker column within the SP list.  Within the Items property:
     
    Choices([@'Service Recovery Group'].'Assigned To:')




     
  • Suggested answer
    WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at
    Put this in the DefaultSelectedItems
    {
        Claims: "i:0#.f|membership|" & Lower(User().Email),
        Department: "",
        DisplayName: User().FullName,
        Email: User().Email,
        JobTitle: "",
        Picture: ""
    }
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • joel914823 Profile Picture
    557 on at
    Thank you @WarrenBelz - Is there a way this happens only when I click on the Auto-Assign button?
  • Verified answer
    WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at
    Hi @joel914823​​​​​​​
    Set a Variable OnSelect on the button
    UpdateContext({varAssign: true})
    then the DefaultSelectedItems
    If(
       varAssign,
       {
          Claims: "i:0#.f|membership|" & Lower(User().Email),
          Department: "",
          DisplayName: User().FullName,
          Email: User().Email,
          JobTitle: "",
          Picture: ""
       },
       ThisItem.'Assigned To'
    }
    
    also at the end of your save code and at screen OnVisible
    UpdateContext({varAssign: false})


    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard