I have a flow that I want to use to report when changes are made to a SharePoint list (and to show exactly what changed). I'm posting the information as a notification in MS Teams.
I currently have the flow setup to grab the last change and that works just fine. The problem I'm running into is that the data is returned as an object like this:
{
"SinceVersionExisted": true,
"SinceVersionId": 1024,
"SinceVersionLabel": "2.0",
"UntilVersionIsCurrent": true,
"UntilVersionId": 1536,
"UntilVersionLabel": "3.0",
"ColumnHasChanged": {
"ID": false,
"Title": true,
"Priority_x0020_Tier": false,
"Section": true,
"DAA": false,
}
}
I want to be able to filter that "ColumnHasChanged" object for only those items that are "True" then output that as either a string or Table or something like this
| Field | Changed |
| Title | true |
| Section | true |
Eventually the plan is to retrieve the changes and show those as well (and eventually propagate those changes down-range, but I'm in the crawl phase right now.
I thought I'd be able to "apply to each" the "ColumnHasChanged" object, but that doesn't work because it isn't an array/collection.
Now sure how to proceed. Do I need to convert the object to an array?