Wait 1 day before scheduled time

Hi,

I’m trying to create a reminder for my sales reps to call a prospect 1 day prior to a booked meeting, but I’m not sure how to set it up in n8n?

I assume I can edit the “time date” somehow with JSON nut not sure?

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:

better use time difference node and run workflow on schedule

You can use the following expression to deduct 1 day from a given date:

{{ $json.body.timing.toDateTime().minus(1, 'day') }}

Here an example workflow:

Thank you for your reply!

I’m then getting this error:

And error code:

Error: fromFormat requires an input string and a format
    at Function.fromFormat (/usr/local/lib/node_modules/n8n/node_modules/luxon/build/node/luxon.js:5501:13)
    at Wait.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Wait/Wait.node.js:406:41)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:729:34)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:68
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20