最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sharepoint - Get only field names where value is true from parseJSON array - Stack Overflow

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论