I have a scenario that sends an email. I want to send an email on the next weekday at 9 am, so if the scenario is triggered on a Friday to a Sunday, the email should be sent on Monday at 9 am and if on Monday, on Tuesday, etc.
It’s a simple webhook-to-mail scenario. I keep getting an error saying it’s an invalid timestamp, so I must be doing something wrong. I’d appreciate help!
If MailerSend expects a timestamp, your switch will not work. You need to format your date as X or x.
You probably also want to use a mix of setHour() and setMinute() to set the time correctly to 9:00 or use parseDate to parse the string you decide to format.
If the previous threads above does not answer your question, please edit your question and provide additional details to demonstrate the difference between your question and the duplicate discussions.
If you require help implementing the answers in the previous threads linked above, please reply with more details of what you have tried, including screenshots.