App Studio KeyField used as BAQ Param not Updating

Okay… hopefully an easy one… I’m just missing a step somewhere in my event?

I have a custom dashboard. I have a BAQ DataView, populated using a BAQ & Parameter using the value of KeyFields.PartNum.

{
    "ExecutionParameter": [
        {
            "ParameterID": "PartNum",
            "ParameterValue": "{KeyFields.PartNum}",
            "ValueType": "string"
        }
    ]
}

Works great.

However, if I then change my KeyFields (load a different part in the dashboard)…

KeyFields.PartNum updates in the KeyFields dataview… but when my BAQ runs again to re-populate my BAQ DataView, it holds on to the initial KeyFields.PartNum Value (the first part I loaded in the dashboard).

What am I missing to force it to use the new/updated KeyField.PartNum value?

I was able to get around this by changing from “rest-erp” widget to an “erp-baq” widget.

The “erp-baq” widget set-up was easy and it refreshes the ParameterValue each time with no issue.