
Announcements
Hi There, I am relatively new to Power Automate flows. My https request to SP is failing with error 400 - "Input string was not in a correct format"
Site Address : Correct
Get: Correct
URI : Issue : _api/web/lists/getByTitle('Complaint%20Automation%20Tool')/items(1126)/versions(51.0)
ID = 1126
51.0 = UntilVersionNumber
Hi @sreemojura,
It looks like you are using the VersionLabel value, which is 51.0. The VersionId which you should use in the versions method of that URI is something different, that is a number.
With minor versions it would go up by 1. VersionLabel 0.4 would be VersionId 4. With major version it increments by 512. VersionLabel 1.2 would be VersionId 514 (512 + 2).
In your case that would be 51 x 512 = 26112
Can you try the below URI and see if that works?
_api/web/lists/getByTitle('Complaint Automation Tool')/items(1126)/versions(26112)