Skip to content

Workflow {CANCEL_URL} gives undefined booking in link #22572

@corbin-ward-q

Description

@corbin-ward-q

Found a bug? Please fill out the sections below. 👍

Issue Summary

When using the {CANCEL_URL} variable for the email body (and potentially text) with a seated booking, the received message shows https://cal.com/booking/undefined?cancel=true as the link for all bookers after the first booker.

Steps to Reproduce

  1. Create a new event type
  2. Under the Advanced tab, enable Offer seats
  3. Set the seat limit to 2
  4. Disable show the number of available seats
  5. Save
  6. Under the Workflows tab, create a new workflow
  7. Set this workflow to trigger When new event is booked
  8. Set the email body to '{CANCEL_URL}'
  9. Save
  10. Book a slot on an email (not the email that created the Event Type)
  11. Check that email account's inbox and observe that the url shows up properly (https://cal.com/booking/{UID_HERE}?cancel=true&cancelledBy={EMAIL_1_HERE})
  12. Book that same slot (time and data) on a different account
  13. Check that email account's inbox and observe that the link shows up with an unidentified undefined in the url (https://cal.com/booking/undefined?cancel=true&cancelledBy={EMAIL_1_HERE})

Actual Results

  • The url doesn't properly show the link to cancel.

Expected Results

  • The url should show the link to cancel.

Evidence

Workflow email body:
Image

Email message received:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Low priorityCreated by Linear-GitHub Syncemailsarea: emails, cancellation email, reschedule email, inbox, spam folder, not getting emailworkflowsarea: workflows, automations🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions