Hi,
I'm following a post to get the last version of an item using the send HTTP task as per April Dunnam YouTube video. https://www.youtube.com/watch?v=DT6BpixFbHY.
I cant get the version bit to work of the API call to work. Any tips welcome.
Solved! Go to Solution.
Hi this is the correct format to get the last version
_api/web/lists/getByTitle(‘list name’)/items(@{triggerOutputs()?[‘body/ID’]})/versions(@{outputs(‘Get_changes_for_an_item_or_a_file_(properties_only)’)?[‘body/SinceVersionId’]
})
Hey @Ianhall1892
what is in your "since Version ..." dynamic value? Where does it comes from?
In the "../versions()" function, you should add the VersionId. Can you try using hard coded IDs like 512 or 1024?
Best regards
Marvin
If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.
Hi @Ianhall1892 :
I've made a test bud did not encountered the problem you mentioned could you please show me:
1\The run history of the 'Send a HTTP request to SharePoint' action
2\Complete error message
In addition, you can directly use this URL to get all versions, and then just add a filter action to filter its results.
_api/web/lists/GetByTitle('TableName')/items(ItemID)/Versions
Best Regards,
Bof
Hi this is the correct format to get the last version
_api/web/lists/getByTitle(‘list name’)/items(@{triggerOutputs()?[‘body/ID’]})/versions(@{outputs(‘Get_changes_for_an_item_or_a_file_(properties_only)’)?[‘body/SinceVersionId’]
})
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
User | Count |
---|---|
26 | |
25 | |
23 | |
23 | |
14 |
User | Count |
---|---|
46 | |
33 | |
32 | |
31 | |
30 |