web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Power Automate doesn't recognize Dataverse Modified Row Status change

(0) ShareShare
ReportReport
Posted on by 38
I have several custom tables in Dynamics 365 Sales, and I want to set the value of a custom field called Inactive Date (cr239_inactivedate) to:
  1. UTC(now) when the Status (statecode) of a Deal (new_deal) record is changed to Inactive (1)
  2. NULL when the Status (statecode) of a Deal (new_deal) record is changed to Active (0)
The problem I run into is that Power Automate doesn't seem to recognize the modification to the record when that modification is made in the Editable Grid control by selecting the record row and clicking the Deactivate or Activate button—no trigger is recognized at all and there are no recorded runs of any type in Power Automate. I can get it to work when Status (statecode) is changed from the main form using the same buttons, but not from the Active or Inactive Deals Editable Grid.
 
I have switched to a Dynamics 365 Workflow, and it runs like a champ, no matter which interface I use, but I don't know how long internal Workflows will continue to be supported, so I need to figure this out using Power Automate.
 
Anyone have suggestions on why the same function (Deactivate or Activate) manifests differently in the different interfaces, and what I can do about it?
Screenshot 2025-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • captbackfire Profile Picture
    38 on at
    Power Automate doesn't recognize Dataverse Modified Row Status change
    Here's the code views of my Flow since the forum can't seem to successfully scan my screenshots for security. It all seems to be in order to me, and it is triggered on the change of the Status (statecode). No error messages, no record of anything ever happening including Tests that time out waiting for the trigger to be seen the first time.
     
    It just seems like the Activate and Deactivate buttons in the View are not triggering a Save event the same way they do in the Form.
     
    When a row is added, modified, or deleted (Trigger):
    {
      "type": "OpenApiConnectionWebhook",
      "inputs": {
        "parameters": {
          "subscriptionRequest/message": 3,
          "subscriptionRequest/entityname": "new_deal",
          "subscriptionRequest/scope": 4,
          "subscriptionRequest/filteringattributes": "statecode"
        },
        "host": {
          "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
          "connection": "shared_commondataserviceforapps",
          "operationId": "SubscribeWebhookTrigger"
        }
      },
      "conditions": [
        {
          "expression": "@greater(addSeconds(utcNow(), -10), triggerOutputs()?['body/cr239_inactivedate'])"
        }
      ],
      "runtimeConfiguration": {
        "concurrency": {
          "runs": 3
        }
      }
    }
     
    List Rows:
    {
      "type": "OpenApiConnection",
      "inputs": {
        "parameters": {
          "entityName": "new_deals",
          "$filter": "new_dealid eq '@{triggerOutputs()?['body/new_dealid']}'"
        },
        "host": {
          "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
          "connection": "shared_commondataserviceforapps",
          "operationId": "ListRecords"
        }
      },
      "runAfter": {}
    }
     
    For Each:
    {
      "type": "Foreach",
      "foreach": "@outputs('List_rows')?['body/value']",
      "actions": {
        "Condition": {
          "type": "If",
          "expression": {
            "and": [
              {
                "equals": [
                  "@items('For_each')?['statecode']",
                  1
                ]
              }
            ]
          },
          "actions": {
            "Current_time": {
              "type": "Expression",
              "kind": "CurrentTime",
              "inputs": {}
            },
            "Upsert_a_row": {
              "type": "OpenApiConnection",
              "inputs": {
                "parameters": {
                  "entityName": "new_deals",
                  "recordId": "@items('For_each')?['new_dealid']",
                  "item/cr239_inactivedate": "@body('Current_time')"
                },
                "host": {
                  "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
                  "connection": "shared_commondataserviceforapps",
                  "operationId": "UpdateRecord"
                }
              },
              "runAfter": {
                "Current_time": [
                  "Succeeded"
                ]
              }
            }
          },
          "else": {
            "actions": {
              "Upsert_a_row_1": {
                "type": "OpenApiConnection",
                "inputs": {
                  "parameters": {
                    "entityName": "new_deals",
                    "recordId": "@items('For_each')?['new_dealid']",
                    "item/cr239_inactivedate": "@null"
                  },
                  "host": {
                    "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
                    "connection": "shared_commondataserviceforapps",
                    "operationId": "UpdateRecord"
                  }
                }
              }
            }
          }
        }
      },
      "runAfter": {
        "List_rows": [
          "Succeeded"
        ]
      },
      "runtimeConfiguration": {
        "concurrency": {
          "repetitions": 1
        }
      }
    }
     
    Condition:
    {
      "type": "If",
      "expression": {
        "and": [
          {
            "equals": [
              "@items('For_each')?['statecode']",
              1
            ]
          }
        ]
      },
      "actions": {
        "Current_time": {
          "type": "Expression",
          "kind": "CurrentTime",
          "inputs": {}
        },
        "Upsert_a_row": {
          "type": "OpenApiConnection",
          "inputs": {
            "parameters": {
              "entityName": "new_deals",
              "recordId": "@items('For_each')?['new_dealid']",
              "item/cr239_inactivedate": "@body('Current_time')"
            },
            "host": {
              "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
              "connection": "shared_commondataserviceforapps",
              "operationId": "UpdateRecord"
            }
          },
          "runAfter": {
            "Current_time": [
              "Succeeded"
            ]
          }
        }
      },
      "else": {
        "actions": {
          "Upsert_a_row_1": {
            "type": "OpenApiConnection",
            "inputs": {
              "parameters": {
                "entityName": "new_deals",
                "recordId": "@items('For_each')?['new_dealid']",
                "item/cr239_inactivedate": "@null"
              },
              "host": {
                "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
                "connection": "shared_commondataserviceforapps",
                "operationId": "UpdateRecord"
              }
            }
          }
        }
      }
    }
     
    [IF TRUE]
    Current time:
    {
      "type": "Expression",
      "kind": "CurrentTime",
      "inputs": {}
    }
     
    Upsert a row:
    {
      "type": "OpenApiConnection",
      "inputs": {
        "parameters": {
          "entityName": "new_deals",
          "recordId": "@items('For_each')?['new_dealid']",
          "item/cr239_inactivedate": "@body('Current_time')"
        },
        "host": {
          "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
          "connection": "shared_commondataserviceforapps",
          "operationId": "UpdateRecord"
        }
      },
      "runAfter": {
        "Current_time": [
          "Succeeded"
        ]
      }
    }
     
    [IF FALSE]
    Upsert a row 1:
    {
      "type": "OpenApiConnection",
      "inputs": {
        "parameters": {
          "entityName": "new_deals",
          "recordId": "@items('For_each')?['new_dealid']",
          "item/cr239_inactivedate": "@null"
        },
        "host": {
          "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
          "connection": "shared_commondataserviceforapps",
          "operationId": "UpdateRecord"
        }
      }
    }
     
    Screenshot 2025-0...

    Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

  • Suggested answer
    Tom_Gioielli Profile Picture
    2,182 Super User 2025 Season 2 on at
    Power Automate doesn't recognize Dataverse Modified Row Status change
    That's certainly weird behavior, and not something I have noticed before. Even using the editable grid, once he change has been saved it should trigger the flow based on the Dataverse values. Are you positive the status option is being changed as expected, and that there is not some error that is preventing it from becoming active or inactive?
     
    Also, are you sure you are triggering your cloud flow from modifications to the statecode field, and not to the statuscode field? Is the field in your editable grid the [Status], and not the [Status Reason]? If you are working on a table where the only options in both of those fields is 'Active' or 'Inactive', maybe you are accidentally updating the incorrect one on the grid?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 124 Super User 2025 Season 2

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans