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 / Capture the name of th...
Power Apps
Answered

Capture the name of the person who changed the drop down value to submitted

(0) ShareShare
ReportReport
Posted on by 480

Hi All,

I have a PowerApps Form linked to SharePoint.

In that I have a drop-down with status - Draft, Submitted, Closed.

I need to capture the name of the person who changed the value of the drop-down to Submitted only.

 

 

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @cyberco01In the OnChange of the drop-down, check if Self. SelectefText="Submitted" and capture the currently User name there using, Office365Users.MyProfile().DisplayName

  • cyberco01 Profile Picture
    480 on at

    @CNT So do i need to create another person group field for that so that name is stored?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @cyberco01 if you want to store just the name, single line of text would do. But if you want to refer to that person itself, you need to create a person or group field. Depends on your requirement. 

  • cyberco01 Profile Picture
    480 on at

    @CNT, Kindly guide me where the above code can be written on the person group field to capture who changed the status to Submitted.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @cyberco01 Place this code in the OnChange of the drop down (replace yourSPList, the record to be patched & personColumn as per your need),

    If(Self. SelectefText="Submitted",
     Set(varPerson,{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|" & User().Email,
     Department:"",
     DisplayName:User().FullName,
     Email:User().Email,
     JobTitle:"",
     Picture:""
     });
     Patch(yourSPList, the record to be patched,{personColumn:varPerson})
    )

     

  • cyberco01 Profile Picture
    480 on at

    @CNT Thanks for the response.

    Please guide me on how I can get the record to be patched. The ID field on my list is the unique identifier for each record.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @cyberco01 I'll like to know 2 things,

    1. Where are you capturing the information, is it in an EditForm?

    2. When do you want to Patch the changes - as soon as the status changes? or when the user click a submit button?

    It would be helpful if you could share some screen shots.

  • cyberco01 Profile Picture
    480 on at

    @CNT , Below is the screenshot of my form. The single form handles edit, new, and view.

    The highlighted drop-down has values -  Draft, Submitted, Closed.

    I need to capture the name of the person who changed the drop-down value to 'Submitted' in a Person-Group field.

    The process will be - the user will change status to Submitted and click on SAVE on the form.

    This value of the new Person Group need not change if any other changes to other fields are done to the form.

    It just needs to capture the value when the status is changed to Submitted.

     

    cyberco01_0-1637644265168.png

     

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @cyberco01 

     

    In the OnSave of SharePointIntegration,

     

    CNT_0-1637650389861.png

     

    do the following....

     

    SubmitForm(SharePointForm1);
    If(Combobox.Selected.Value="Submitted",
     Set(varPerson,{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|" & User().Email,
     Department:"",
     DisplayName:User().FullName,
     Email:User().Email,
     JobTitle:"",
     Picture:""
     });
     Patch(yourSPList, SharePointForm1.LastSubmit,{personColumn:varPerson})
    )

     

    ** remember to replace ComboboxSharePointForm1, yourSPList, personColumn as applicable.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard