• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Scheduling my tasks based on a captured time stamp

Status
Not open for further replies.

tycoon1962

Member
Dear Support,

My use case is:
1.
I get a Calendly booking three days later, and the meeting time is captured inside Pabbly.
I wank a task to execute the previous evening at 7:00PM their local time.
I want a task to be executed 15 minutes before the meeting time.

Question: How can this be achieved?

2.
Meanwhile, another meeting is also booked for two days later.
I wank a task to execute the previous evening at 7:00PM local time.
I want a task to be executed 15 minutes before the meeting time.

Question: Can the two instances of workflow run independently without interference? If yes, please guide.

Thank you
 

ArshilAhmad

Moderator
Staff member
Hi @tycoon,

Please share the Workflow URL where you have set up Calendly as your trigger step. Also, state whether the meeting time captured in the Pabbly Trigger step is in UTC, your local time, or their local time.

If you haven't set up your workflow yet, please create a new one from scratch, set up Calendly as your trigger step, capture a new meeting, and check the time zone in which the meeting time is captured.
1722792186558.png
 

tycoon1962

Member
Hello Arshil,
The workflow is shared. However, I have used TidyCal to book the meeting. https://tidycal.com/sundeepvaish/for-pabbly

Res1 Starts At, Res1 Ends At, Res1 Created At, are captured in UTC.
Since everything takes place in India, I'm not sure what time zone the form will be captured in if it is filled from a different time zone.

Thank you
 

tycoon1962

Member
Me: Hi! If a form is filled in a different time zone than it was created and shared, how will the time stamps of the data be collected? Thank you

TidayCal: Hi! When a user fills out a form in a different time zone than the one in which it was created and shared, the time stamps of the data collected will be based on the user's time zone. TidyCal auto-detects the user's time zone based on their internet browser settings. This ensures that both the user and the owner/setter see the time zone that is relevant to them. If you have any other questions, feel free to ask! 😊

Hope this will be useful
 

Supreme

Well-known member
Staff member
I wanted to check if you'd like to receive notifications for the upcoming event. You can set up notifications to be sent 15 minutes before the event starts, 1 day before the event, and a few hours before the event. Please check the following video lesson here -

 

tycoon1962

Member
Meanwhile, my other question still remains:

One workflow is till executing as time delay is set up. What happens if it is triggered again?
a, Both the processeses will execute properly and independently.
b. First will terminate and second will start.
c. Second will not execute.

Reagrds
 

Supreme

Well-known member
Staff member
One workflow is till executing as time delay is set up. What happens if it is triggered again?
Does this mean that after running the delay, the subsequent execution will have the same delay time? Please clear the situation.
 

tycoon1962

Member
Yes.
Trigger action one at 9:00 AM: Task one is executed instantly, and task two is executed after 10 hrs (at 7:00 pm).
Trigger action two at 11:00 AM: Task one is executed instantly, and task two is executed after 10 hours (at 9:00 PM).
Trigger action three at 11:30 AM: Task one is executed instantly, and task two is executed after 10 hrs (at 9:30 pm).

Hope it's clear now.
 

Supreme

Well-known member
Staff member
Hey @tycoon1962

You can refer to the following logic to create the automation.

1. Trigger: Calendly Booking`
- Trigger: When a new event is scheduled in Calendly.

2. Task for the Evening Before the Meeting
- Calculate the previous evening at 7:00 PM.
- Delay until that time.
- Execute your task.

3. Task 15 Minutes Before the Meeting
- Calculate the time 15 minutes before the meeting.
- Delay until that time.
- Execute your task.

Workflow 2: For Another Meeting Two Days Later

1. Trigger: Calendly Booking
- Trigger: When a new event is scheduled in Calendly.

2. Task for the Evening Before the Meeting
- Calculate the previous evening at 7:00 PM.
- Delay until that time.
- Execute your task.

3. Task 15 Minutes Before the Meeting
- Calculate the time 15 minutes before the meeting.
- Delay until that time.
- Execute your task.

You can create separate Workflows: Create one workflow for each meeting scenario and Independent Execution: Each workflow runs independently based on its specific trigger.
 

tycoon1962

Member
You have missed my query and questions altogether.

There's only 'ONE' workflow with many time-delayed actions.

I had two basic queries:

1. How to set those 'time-delayed' actions.
2. What will happen to the workflow if the 'second' trigger is fired while the 'first' trigger has not finished all the time delayed actions?

Anyway, it may be faster for me to research and get the answers.

Thank you
 

ArshilAhmad

Moderator
Staff member
1. How to set those 'time-delayed' actions.

You can set up the delays in your workflow in this manner. We have used Gmail as an example; you can replace it with any application of your choice. Here, whenever a meeting is captured, an email will be sent to the attendee a day before at 7 PM, and another email will be sent 15 minutes before the meeting.

2. What will happen to the workflow if the 'second' trigger is fired while the 'first' trigger has not finished all the time delayed actions?
Both instances of the trigger will run independently without affecting one another.
 

tycoon1962

Member
Hi Arshil,

Two more questions please:

1. What will happen to the 'a day before at 7 PM action' if the booking is done on the day of the meeting? Will it not be fired or disrupt the workflow?
2. What will happen to the '15 minutes before the meeting action' and the workflow if the booking is done 10 min prior to the meeting?

Thank you in advance.
Best regards.
 

Luv

Member
Staff member
Hey @tycoon1962

In both of these cases the email will not be sent as the delay would be going into past that time. We would suggest that you add another Gmail "Send Email V1" directly after the trigger step so that your users get an instant email regardless of when they booked it.

Further, you can also create a workflow if in case it is necessary to send different emails even when users have booked a meeting 10 or 5 minutes prior. Please take reference from this workflow and let us know if you encounter any issues.

 

tycoon1962

Member
Thank you for your help and workflow. It is my sincere appreciation.

Talking of a different challenge, I want the action to trigger immediately, only if it occurs between 7:00 AM and 11:00 PM. Otherwise, it must trigger the following day at 7:00 AM.

How can this be done?
 

ArshilAhmad

Moderator
Staff member
So, for example, if your workflow triggers on August 10th at 11:30 PM, you want the next steps to be executed on August 11th at 7:00 AM. Similarly, if it triggers on August 10th at 2:00 AM, you want the next steps of your workflow to execute on August 11th at 7:00 AM. Is that correct?
 

tycoon1962

Member
If the workflow triggers on August 10th at 11:30 PM, I want the next steps to be executed on August 11th at 7:00 AM.

And, if it triggers on August 10th at 2:00 AM, the next steps of my workflow should execute on August 10th itself but at 7:00 AM.

Hope it is clearer now.

Thank you.
 
Last edited:

ArshilAhmad

Moderator
Staff member
You can setup your workflow in this manner to achieve your use case:

In Route 1:
1723336501544.png


In Route 2:
1723336424604.png



Other than the trigger step, kindly avoid making any changes to the Router conditions, Code, Delay, or Date/Time Formatters while testing.


Python:
from datetime import datetime, timedelta

def calculate_date_in_utc(ist_datetime_str):
    # Parse the input datetime string in IST
    ist_datetime = datetime.strptime(ist_datetime_str, '%Y-%m-%d %I:%M %p')
    
    # Convert IST to UTC by subtracting 5 hours and 30 minutes
    utc_datetime = ist_datetime - timedelta(hours=5, minutes=30)
    
    # Get the time component in IST to determine the condition
    ist_time = ist_datetime.time()

    # Check conditions and adjust UTC date
    if datetime.strptime('11:00 PM', '%I:%M %p').time() <= ist_time <= datetime.strptime('11:59 PM', '%I:%M %p').time():
        utc_datetime += timedelta(days=1)
    elif datetime.strptime('12:00 AM', '%I:%M %p').time() <= ist_time <= datetime.strptime('05:29 AM', '%I:%M %p').time():
        utc_datetime += timedelta(days=1)  # Change this to 1 day instead of 2
    elif datetime.strptime('05:30 AM', '%I:%M %p').time() <= ist_time <= datetime.strptime('06:59 AM', '%I:%M %p').time():
        pass  # No change needed for this range

    # Return the result in YYYY-MM-DD format
    return utc_datetime.strftime('%Y-%m-%d')

# Example usage with the specified date
ist_time = '2024-08-25 11:30 PM'
result = calculate_date_in_utc(ist_time)
print(result)  # Output: 2024-08-26
 
Status
Not open for further replies.
Top