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 / Connector for SharePoi...
Power Apps
Suggested Answer

Connector for SharePoint Item Version History

(0) ShareShare
ReportReport
Posted on by 789 Moderator
Goal: Display an Item's version history in a PowerApps Screen. (Show data in a gallery)
 
I assume a custom connector would be the best way to obtain the data to display. Feel free to offer an alternative.
 
The REST call to get the SharePoint Item Version History is:
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/versions/{version-id}?expand=field
 
I tried making a custom connector in Power Automate, but the wizard is unintuitive and I'm not familiar with Swagger to know what goes where.
 
How does one construct a custom connector to retrieve this data?
 
For bonus points, how would one supply parameters to the Custom Connector, like the SiteID, ListID, and ItemID, such that only one custom connector could be used dynamically? 
Categories:
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
     
    Understand the API Call - GET /sites/{site-id}/lists/{list-id}/items/{item-id}/versions?expand=fields
     
    Set Up a Custom Connector in Power Automate
     
    Navigate to Data > Custom Connectors and click + New Custom Connector.
     
    Name your connector (e.g., SPVersionHistory).
     
    Add an Icon and description. Host: graph.microsoft.com Base URL: /v1.0
     
    Choose OAuth 2.0. Set the Identity Provider to Azure Active Directory. Add the following values: Client ID: From your Azure App Registration. Client Secret: From your Azure App Registration. Resource URL: https://graph.microsoft.com Redirect URL: Copy the value provided in Power Automate.
     
    Click + New Action to define the API operation. Fill in: Summary: Get Version History Description: Retrieve the version history of a SharePoint list item Operation ID: GetVersionHistory Request: Verb: GET URL: /sites/{siteId}/lists/{listId}/items/{itemId}/versions Add the Query Parameter: expand: Value is fields. Add Path Parameters: siteId: String listId: String itemId: String
     
     
    You custom connector will be created and ready for testing.  

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
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard