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 / To display records bas...
Power Apps
Unanswered

To display records based on Status

(1) ShareShare
ReportReport
Posted on by 986

Hi everyone,
I wanted to implement the following:

Sidhant_02_0-1686144765302.png

So in the LHS side I was thinking of having a drop down which has all the names of the users or use vertical gallery to display all the names (not fixed), but on selection from the drop-down or the vertical gallery all the details of the course for the choosen user should be displayed
(In my application the courses are categorized based on Difficulty which is a choice column with values like Beginner, Intermediate, Advance, Expert)
Example: Sam is a user and he updates the status for 2 courses in Beginner and Intermediate category then when the admin navigates to the above screen and selects Sam then he should the latest changes .
So to achieve this I have created a new SP List to keep a track of the changes which is :

Sidhant_02_1-1686145412351.png

 

But don't know how to proceed with this


This is in continuation to one of my older query for the first half of my query I got the answer i.e. update a choice column in SP list using a single button, so for more information you can refer this: Reference (this is marked as Completed as I got the answer for first part but not the second part which I have mentioned)

Please do let me know if you know how to achieve the mentioned functionality.

Regards,
Sidhant.

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Sidhant_02 ,

     

    What is the part you need help with? Is it how to track changes or is it to display the changes? Or both?

  • Sidhant_02 Profile Picture
    986 on at

    Hi @BCBuizer ,
    I will need help for both.

    Regards,
    Sidhant.

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Sidhant_02 ,

     

    To record changes, you'll have to set up a mechanism that save the changes in a separate list whenever users make the change.

     

    Let's say you have a form (Form1) with 3 values (DataCardValue1 (ID), DataCardValue2 (Title), and DataCardValue3()Difficulty)).

     

    Before submitting, save the old values in a variable:

    UpdateContext({locOldValues: LookUp(DataSourceName, ID = Value(DataCardValue1.Text)});
    SubmitForm(Form1);

     

    In the OnSuccess property of the form, compare the old values against the new ones and create an item in the Changes list:

    Clear(colChanges);
    If(locOldValues.Title <> Self.LastSubmit.Title, Collect(colChanges, {NewValue: Self.LastSubmit.Title}));
    If(locOldValues.Difficulty <> Self.LastSubmit.Difficulty , Collect(colChanges, {NewValue: Self.LastSubmit.Difficulty}));
    
    Patch(
     Changes,
     Defaults(Changes),
     {
     UserEmail: User().Mail,
     DateTimeStamp: Now(),
     UpdatedItemID: Self.LastSubmit.ID
     Changes: Concat(colChanges, NewValue, "; ")
     }
    );

     

    Please play around with this and once it works we can move on to the second part.

  • Sidhant_02 Profile Picture
    986 on at

    Hi @BCBuizer ,
    Thanks for the reply.
    So in my case I only have one column that will be updated that is the Status column (Choice column) which is only going to be updated rest of the fields will not be changed

    Sidhant_02_0-1686649566536.png

     

    So for testing purpose earlier I had created another SharePoint list named 'TrialList' and had the following columns:

    Sidhant_02_1-1686649696022.png

     

    In this Stage is a choice column (similar to Status in the original SP List: Courses) so what I have done created a separate screen:
    Created a button which looks like Text and on-select the stage value gets updated

    Sidhant_02_3-1686649883430.png

     



    On-Select of the Stage button:

    Sidhant_02_2-1686649845280.png

     

    But currently it is giving type mismatch error
     

    Sidhant_02_4-1686650120404.png


    Also you have suggested I have created a new SharePoint list that will keep the updated records or modifications that are made which is named as usersCourseList which is:

    Sidhant_02_5-1686650700143.png

    (In this Title will be the name of the course courseLevel is the Difficulty level and courseStatus)



    So what should be done here, and if you need more information let me know.

    Regards,
    Sidhant.

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    HI @Sidhant_02 ,

     

    The issue is exactly as described by the error: a record can't be compared with a text. 

     

    To fix that, you can extract the text from the record by selecting the Value column:

     

     

    ... Stage.Value = Label50_2.Text ...

     

  • Sidhant_02 Profile Picture
    986 on at

    Understood so now I have completed the part -1  that is saving the choice column value in a variable but in my case I am not using any form rather just a gallery in which all the details are been shown

    Sidhant_02_0-1686651478709.png

    so now to save these details in the new sharepoint what should be the next steps should I just directly compare the values old and new one and use the Patch function as you have mentioned in your reply but that is w.r.t forms what about data in gallery. As in my case I have to keep track of the Status (for every user in isolation)

    Sidhant_02_1-1686652023657.png

     

    Regards,
    Sidhant. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard