Skip to main content
Community site session details

Community site session details

Session Id : l+qmHU+bPSevSq0GkUBRJJ
Power Apps - Building Power Apps
Unanswered

Viewing the Versioning from the SharePoint List in the PowerApp

Like (0) ShareShare
ReportReport
Posted on 12 Dec 2019 22:06:46 by 68

I'm building an app that is connected to a SharePoint list.  In this list there is a place to take notes.  I've turned on versioning so that as notes are added, previous notes can be kept.

 

Is there a way to see this inside the app?

 

Or is there a better way to do this?

Categories:
  • cds Profile Picture
    1,001 on 23 Dec 2019 at 23:36:55
    Re: Viewing the Versioning from the SharePoint List in the PowerApp

    put it on the button after whatever action you are taking

  • v-xida-msft Profile Picture
    on 13 Dec 2019 at 08:39:16
    Re: Viewing the Versioning from the SharePoint List in the PowerApp

    Hi @bmurphy1 ,

    Could you please share a bit more about your scenario? Do you turn on the "Item Version History" option within "Versioning Settings" of your List Settings?

    Do you want to view all version of Notes from a SP List within your app?

     

    If you want to view all version of Notes from a SP List within your app, I afraid that there is no way to achieve your needs in PowerApps currently.

    There is no function/way supported within PowerApps to retrieve all versions of Record history within a canvas app. As an alternative solution, I think the MS Flow (Power Automate) could achieve your needs. Please check and see if the following blog would help in your scenario:

    https://johnliu.net/blog/2018/5/microsoft-flow-sharepoint-trigger-on-specific-fields-changed-via-sp-http-request?rq=version

     

    On your side, you could consider set up a flow, add "PowerApps" button as the trigger of hte flow, specified the List Item ID parameter (which needs to be passed from a canvas app) using "Ask in PowerApps" dynamic content within the "Send an HTTP request to SharePoint" action. Then add a "Response" action within your flow to return the retrieved table value back to your app.

    More details about returning a Table value back to a canvas app, please check the following blog:

    https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

     

    Then you could create a canvas app, add your SP List as data source in it.  Add a Gallery (Gallery1) within your app, connect it to your SP List, configure the OnSelect property of Gallery to connect to above flow, in other words, set the OnSelect property of the Gallery to following:

    ClearCollect(NotesCollection, 'FlowName'.Run(ThisItem.ID))

    Add another Gallery (Gallery2) in your app, set the Items property to following:

    NotesCollection

    When you click specific item in your Gallery, it would fire the flow to retrieve the related versions of notes, and return back to your app, then it could be displayed within the Gallery2.

     

    More details about firing a flow from an app, please check the following article or video:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

    https://www.youtube.com/watch?v=1wl9AtxWdkg

     

    Best regards,

  • bmurphy1 Profile Picture
    68 on 12 Dec 2019 at 22:23:09
    Re: Viewing the Versioning from the SharePoint List in the PowerApp

    @cds 

    Where do I input that code?

  • cds Profile Picture
    1,001 on 12 Dec 2019 at 22:17:54
    Re: Viewing the Versioning from the SharePoint List in the PowerApp

    Patch(datasource, record, {Notes: Thisitem.Notes&"
    "&Text(Now(), "m/d/yy hh:mm " &Textinput.text)

    This will give you previous notes and new notes with timestamp 🙂

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete