Notification workflow

Hi,

I have a Reminders app, where a user can create a “reminder” with the fields “title” and “due date”.

How can I send that user an email on the date “due date”.?
Thanks in advance :slightly_smiling_face: :computer:

Hey @hacker,
You can schedule an API workflow for the day it’s due when the reminder is being created

Thanks, @johnny.

Yes, when I create the reminder, I can schedule an API workflow and scheduled date I enter the due date from the reminder.

But what happens when the user edit the due date with auto bind? I cancel the scheduled workflow and create a new one?

Yup, so make sure to save the API ID so you’ll be able to cancel it.

But how can I have the workflow run with autobind?
Do I save the API ID in a field in the type Reminder?

Thanks

Yes you can do that

Right click on the input or date picker, “Start/Edit Workflow”

But I have two date pickers, one for the start and the other for end. What happens when a user moves both dates, it will cancel 2 times and schedule 2 times?

The notification is being sent for the due date/end time correct? If so, you’d only need to do it for your end time

Ohh, sorry. I was thinking of another thing. You are right. Thanks :grinning: :computer:

Hey, @johnny.

I scheduled an API workflow when the reminder is being created and scheduled it for the day the reminder it’s due.
Captura de Pantalla 2021-01-21 a la(s) 12.31.41

Here is the API workflow (I made it with new API endpoint)

And in my logs, the scheduled date appears good.
But it didn´t worked. What am I doing wrong?

Thanks in advance :slightly_smiling_face: :computer:

Hmm… how’s your actual API endpoint setup?

Here it is (I also checked “ignore privacy rules” and didn´t work)

What is that key you are passing in?

reminder type Reminder

Hm… could it possibly be an issue with your Sendgrid?

I don’t think so. All other emails are arriving okay. And I’ve tried with Gmail and Hotmail.

Weird… I’m not sure @J805 any ideas?

Hey @hacker :wave:

Maybe try sharing your editor so @johnny can see the whole process? That would be better so we can get the whole picture and can see what’s going on.

Then hopefully we can take a look at it for you. :blush:

@j805 www.NoCodeMinute.com

For All Your No-Code Education Needs:

  • One-on-One Tutoring
  • eLearning Hub
  • Video Tutorials
  • No-Code Classes
1 Like

Hey, @J805 and @johnny for helping. This is an app of the company I work for, and I can´t have access for sharing the app. But I can try to explain it to you in the best way possible.

  1. A user creates a reminder (“recordatorio”) and then schedule the reminder (fecha=date) and then make changes to the reminder and add the API ID to it.
    Captura de Pantalla 2021-01-21 a la(s) 23.40.57
    Captura de Pantalla 2021-01-21 a la(s) 23.41.10

  2. Then I send an email at the scheduled date


And in the logs it seems to be okay

Thanks again :slightly_smiling_face: :computer:

Hey @hacker :wave:

What do your server logs show on the scheduled date/time you chose?

That might help us troubleshoot what is going wrong.

1 Like