Adding values to a database column

I have an hours column in which I want to add hours from 1-8h. using telegram buttons. I created the buttons, but how can I make it so that when a certain button is pressed, the hours will be added to the previous value in the hours column. I add hours depending on what work_package_id



image

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @KamaR,

It looks like when you use a button the trigger will get a callback_query and in there you can find a field called data which contains the callback data. You should then be able to use this in your expression but if you are adding this to a value you might ned to first select the field you need then do the maths and update it unless you are using something that allows maths on the update.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.