Hi All,
I've got a flow that failed and now I'd need to extract the date of the status change to closed from a Sharepoint list. I have around 300 items to go through so would appreciate an automated solution.
My Sharepoint list contains tickets and for every closed ticket the closed date should be captured in the corresponding field. I am trying to create a flow which will go through each closed item and if the closed date is blank, extract the version history of the item (row, ticket) and find on which date the status was changed to 'Closed' (can be up to 2-3 months ago and is not the most recent action). Then I would like to populate the closed date for each ticket with the respective date (this part is optional, already having the actual closed date in an excel table is a big help).
I have started to create my flow based on this post Restore list items version history in bulk - Power Platform Community (microsoft.com) as it's very similar to my case.
However, I'm having 3 issues:
- One is with the 'Send an HTTP request V2' action as it won't accept my URI which I'm trying to set to
https://graph.microsoft.com/v1.0/sites/variables('SiteID')/lists/variables('ListID')/items
The example is using the regular request, however I could only find the V2 in my list of actions, not sure what difference that makes
- I'm trying to use the [value] from the first HTTP request to then cycle through the 'Apply to each', however I'm not able to extract the value as it should be using
body('Send_an_HTTP_request_V2')['value']
- In the 'Apply to each' I'm building the Uri for the HTTP request as below but it's not accepted either
_api/web/lists(guid'@{variables('ListID')}')/items(@{items('Apply_to_each')['ID']})/versions?$filter=('ClosedDate' ne null)&$select=Created,VersionLabel,VersionId,Status,ClosedDate
Any help on what to change would be appreciated, I don't have a lot of experience with HTTP requests and the like.
This is what my flow looks like for now:
