Skip to main content

Hi guys , So I am setting up a automation that when a calendly call is cancelled by an invitee  , it looks up the latest available slots using calendly api and sends an email  to that person. However 1 issue that I have been encountering which is when I am passing dynamic values to the api it doesnot work ,but whenever I add static values the api returns me the available slots. 

Step 1- 4

  • When an invitee cancels an event
  • It first checks the event topic , if it matches certain topic name it works
  • next in a google sheet it looks for that person
  • updates that persons status to “Cancelled”

 

Step 5 and 6 

 

 

Here is where the problem begins 

 

In step 5 I have a code which retuns Get todays date and date on friday 

 

Then when I am passing these values to my Webhook 

 

This returns The app returned "The supplied parameters are invalid.".

 

But when I add static values

 

It actually works

 

Not sure what I am doing wrong even if i pass the dates as 2025-09-02 and 2025-09-07 it works on static but doesnot runs on dynamic values

Hi ​@Jeff12 

Link to the Calendly API endpoint documentation: https://developer.calendly.com/api-docs/6a1be82aef359-list-event-type-available-times

 

TIPS:

  • Make sure you have the correct headers set for the API request
    • Authorization
    • Content-Type
  • Make sure you are testing with valid dates per the API endpoints docs
    • End Date: Date must be in the future of start_time.
    • Start Date: Date cannot be in the past.
  • Make sure you do not have any leading/trailing whitespace before/after mapped variables
  • Make sure you do not have any leading/trailing whitespace before/after output variable values from the Code step
  • Try sharing your screenshots and context with ChatGPT to see if it can help guide you.

Reply