I don't know where exactly ask this question, but since I'm bulding app in PowerApps...
I've followed this tutorial https://www.about365.nl/2019/08/08/view-sharepoint-item-version-history-in-powerapps/ and I don't know where to find other history version properties. The ones I'm looking for is "previous value" and "new value" since, I want to show in app who change it, what was changed and what was changed to.
I've looked up to results from API and there are for every version all values that were saved. So the question is how to grab those values - for previous version, compare it and show only those fields that were changed.
Mhm maybe filtering https://github.com/Microsoft/api-guidelines/blob/master/Guidelines.md#97-filtering gonna help?
Hi @nottheOther ,
Could you please share a bit more about your scenario?
Do you want to retrieve the record value of a specific item for previous version?
Based on the needs that you mentioned, I agree with your thought almost. I think the combination of PowerApps and Power Automate could achieve your needs.
If you want to retrieve the record value of a specific item for previous version, I think the $top=2 filter operator within the HTTP URL action path could achieve your needs.
Please check and see if the following blog would help in your scenario:
Within your Power Automate flow, add a "Send an HTTP request to SharePoint" action, Uri field set to following:
then the "Send an HTTP request to SharePoint" action would retrieve the current version of this List Item and the previous version of this List Item. In the last step, remove the"Respond to PowerApps or Flow" action, instead, add a "Response" action to return retrieved table value back to your app.
On your side, you could pass the retrieved version table back to your app.
Please take a try to achieve your needs based on the following blogs:
In addition, if you want to only show those fields that were changed within your app, please consider take a try with the following workaround:
Within your app, save the returned result from your flow into a collection (including two records):
ClearColelct( ReturnedResult, Versionhistorydemo.Run(ThisItem.ID) )
then add a Data Table in your app, set the Items property to following:
enable related fields within this Data Table, select the column in this Data Table, set the Visible property to following:
If( First(ReturnedResult).Column1 = Last(ReturnedResult).Column1, false, true )
If( First(ReturnedResult).Column2 = Last(ReturnedResult).Column2, false, true )
If( First(ReturnedResult).Column3 = Last(ReturnedResult).Column3, false, true )
Please take a try with above solution, check if the issue is solved.
Thanks for the reply.
Basically I want to implement "Version History" from SharePoint list in nearly same form. [test.PNG] I just need to represent what changes has been made.
And I want all history, just like in SharePoint, ex.
No 3.0 etc.
I've made change in column1 from "ok" to "fail", and in No. 2 verisoning only "column1 "fail"" that record will be shown.
//edit I hope it's understandable 🙂
Check out these cool Power Apps & vote on your favorite!
Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)
Check out whats happening in Power Apps
FIll out a quick form to claim your community user group member badge today!