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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Assign To Me Button in...
Power Apps
Answered

Assign To Me Button in Gallery to Update Field in SharePoint List Using Office365 Connector

(0) ShareShare
ReportReport
Posted on by 44

Hey Power Apps Community!

 

I'm once again asking for your help! I built an Intake/Ticket site for our work group however there is an ask by leadership for users to have the ability to quickly assign items to themselves through the Gallery by clicking an 'Assign to Me' button. This would update the SharePoint list with the users profile from Office365Users. 

 

Currently Users have to navigate into the form item, search themselves in a dropdown, then click 'Save' to submit the form and update the intake. If we could have them click a button that assigns that item to themselves, they could then assign multiple items quickly and create a sort of queue for themselves. If there's a way to also quickly update to show the user under assigned analyst that would also be helpful.

 

The Gallery name is: galWFM_1

The SharePoint Source is: 'EWD Config'

The SharePoint Column is: 'WPM Assigned'

 

Goals: Populate WPM Assigned using Office365Users profile of the user who clicks the 'Assign to Me' button. Have this update from and in the Gallery so other users can quickly see the item has already been assigned.

 

My current thoughts are something along these lines but I'm very new to using the patch function and am a little foggy on Office365 connectors. I hodgepodged together some ideas from my searches so don't laugh too hard.

 

 

 

 

Patch('EWD Config', 
{
ID: galWFM_1.Selected.ID
}, 
{
'WPM Assigned': 
DisplayName:User().FullName,
Claims: "i:0#.f|membership|" & Lower(User().Email),
Departments: "",
Email: User().Email,
Jobtitle: "",
Picture: ""
}
)

 

 

 

 

 

SMHoward_0-1683821678570.png

 

I appreciate any assistance you can provide!

Categories:
I have the same question (0)
  • Verified answer
    Cr1t Profile Picture
    555 on at

    @SMHoward 

    Hello! You got it almost right. What you are doing is correct. Departments should be Department and Jobtitle should be JobTitle. 

    Please use the below code.

    Patch(
     'EWD Config',
     { ID: galWFM_1.Selected.ID },
     {
     'WPM Assigned': {
     DisplayName: User().FullName,
     Claims: "i:0#.f|membership|" & Lower(User().Email),
     Department: "",
     Email: User().Email,
     JobTitle: "",
     Picture: ""
     }
     }
    )

     

    I have done the test on my end and it works please see the picture below.

    Animation.gif

    Let me know if this works. 

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • SMHoward Profile Picture
    44 on at

    That worked great and I'm shocked I got that right except for a few typos 😅. Thank you for all your help!

  • Cr1t Profile Picture
    555 on at

    @SMHoward 

    Glad i was able to help you 🙂

  • Sachinvps Profile Picture
    6 on at

    Hi,
    Could you please help me in locating Gallery name and Sharepoint Source name ?

  • Sachinvps Profile Picture
    6 on at

    Hello !!

    When I tried this (by pasting this given formula on on select) iam getting "Network Error when using patch function. specified record was not found error. Could you please help me further with this ?

    Patch(
        'HUBBLE SUPPORT HOMEPAGE',
        { ID: Gallery1.Selected.ID },
        {
            'Assigned to': {
                DisplayName: User().FullName,
                Claims: "i:0#.f|membership|" & Lower(User().Email),
                Department: "",
                Email: User().Email,
                JobTitle: "",
                Picture: ""
            }
        }
    )




  • Sachinvps Profile Picture
    6 on at

    Sachinvps_0-1715316940939.png

     

  • Cr1t Profile Picture
    555 on at

    @Sachinvps 
    Can you give me more info about your app so i can help you better? Looking at screenshot i see you are using SharePointIntegration.Selected.Id which wont work. 

    Can you please tell me if you are navigating to SharePointForm1 from Gallery 1? if yes then it should be Gallery1.Selected.ID. 

    What is the gallery 1 datasource ?
    What is the items property of SharePointform1 ?

    Thank you.



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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard