Update substitution variable
update_substitution_variableSets a substitution variable to a new value in the connected application, for example rolling CurrMonth from Mar to Apr at month end. The change takes effect for every form, rule and report that uses the variable. A change set with plan_change and run_change is the safer option. Use it when the user asks to move a period, year or scenario pointer. For a write, I require a preview first, then confirm: true and its confirmationToken. The token lasts ten minutes and works once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appName | No | Application name. Defaults to the connection's application. | |
| confirm | No | Set true after the user has approved the previewed change | |
| newValue | Yes | New value, e.g. Apr | |
| planType | No | Plan type scope. Defaults to ALL. | ALL |
| connection | No | Connection id or label from list_connections. Defaults to the user's default connection. | |
| variableName | Yes | Variable name, e.g. CurrMonth | |
| confirmationToken | No | Single-use token from this exact preview. Send it with confirm: true after the user approves. It expires after ten minutes. |