# Issue with Homey.logic.updateVariable: "Missing Parameter: variable"

**URL:** <https://community.homey.app/t/issue-with-homey-logic-updatevariable-missing-parameter-variable/132693>\
**Category:** Flows\
**Created:** [March 13, 2025, 7:32pm UTC](https://community.homey.app/t/issue-with-homey-logic-updatevariable-missing-parameter-variable/132693 "2025-03-13T19:32:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [March 13, 2025, 8:02pm UTC](https://community.homey.app/t/issue-with-homey-logic-updatevariable-missing-parameter-variable/132693/2 "2025-03-13T20:02:21Z")

</div>

You seem to use a different syntax:

`Homey.logic.updateVariable({id: TodaysDateId, variable: {'value' : dateNum}} )`

> [@Set Logic variable by NAME?](https://community.homey.app/t/set-logic-variable-by-name/117888/5):
>
> Hi again, thanks for all input. Here is my current script: let testDay = new Date(); let dateNum = testDay.getDate(); let monthTxtShort = testDay.toLocaleString('fefault', { month: 'short'}) let TodaysDate = Object.values(await Homey.logic.getVariables()).find(({name}) =\> name === "TodaysDate"); let TodaysDateId = TodaysDate.id let MonthTextShort = Object.values(await Homey.logic.getVariables()).find(({name}) =\> name === "MonthTextShort"); let MonthTextShortId = MonthTextShort.id Homey.logic…

---

_[View the full topic](https://community.homey.app/t/issue-with-homey-logic-updatevariable-missing-parameter-variable/132693)._
