Hi Community,
I've done a thorough dig via the forum here and via google, but after I exhausted all the methods that I could try, I am hoping someone can provide some insights here.
This should have been straightforward, or so I thought. I want to use Power Automate to retrieve a SharePoint Online document's all versions. First of all, I want to stress that using the following code return empty eg
"body": {
"d": {
"result": []
_api/web/getFileByServerRelativeUrl('RelativeLink')/versions
Therefore, I ended up using two REST API calls:
1st is to get properties via this:
_api/web/getFileByServerRelativeUrl('RelativeLink')/listItemAllFields

From the result of this call, I composed the List GUID and Item ID, then I used these to send the 2nd call which I finally got the results of version (not empty).

Now the only problem is, the result only contains the most current version. Meaning observing the whole output from this call, there is only one (current) version data are there, where IsCurrentVersion: true. I just couldn't figure out why. Any suggestions are much appreciated.
Many thanks!