Overview: When a SharePoint list item is modified, I want to get that item's changed fields. I do this using PowerAutomate's function which returns an object that I convert into an array using the parseJSON function which returns this:
{
"body": [
{
"ID": false,
"Title": true,
"SubmissionDate": false,
"DateTime": false,
"Text1": true,
"development_x0020_board_x0020_ch": false,
"OData__ColorTag": false,
"ComplianceAssetId": false,
"Modified": true,
"Created": false,
"Author": false,
"Editor": false
}
]
}
In my workflow, I want to step through the elements in this array and if the value of that element is true, then add it to a array (varChangedFields) which might look like this:
['Text1','Modified','Title']
My block here is iterating the parseJSON array in powerAutomate. I tried using a CONDITION inside an APPLY TO EACH on parseJSON/Body but I cannot get it to work.
Any assistance is greatly appreciated.