Skip to main content

Auxiliary Resource Detached from Booking Trigger

The Auxiliary Resource Detached from Booking trigger starts a workflow when an auxiliary resource is detached from a booking in your CaptainBook system.

Jerome Bajou avatar
Written by Jerome Bajou
Updated over a week ago

Overview

The Auxiliary Resource Detached from Booking trigger starts a workflow when an auxiliary resource is detached from a booking in your CaptainBook system.

When It Triggers

  • An auxiliary resource is detached from a booking

  • Only triggers for resources with the "auxiliary" category

  • Triggers immediately upon detachment

  • Works for both automatic and manual auxiliary resource removals

Use Cases

  • Notify auxiliary resource users about removal

  • Update external systems with auxiliary resource removals

  • Release auxiliary resource availability

  • Update availability calendars

  • Send notifications to customers about changes

  • Track auxiliary resource utilization changes

  • Create reassignment workflows for auxiliary resources

  • Log auxiliary resource detachment for audit purposes

  • Handle capacity adjustments after removal


Configuration

This trigger requires no additional configuration. It automatically triggers when any auxiliary resource is detached from a booking.


Available Data

When this trigger fires, it provides booking_id and resource_id that you can use to access booking and auxiliary resource information in your workflow actions.

Context Variables

The trigger provides the following context variables:

  • booking_id - The ID of the booking that the auxiliary resource was detached from

  • resource_id - The ID of the auxiliary resource that was detached

Accessing Context Data

{booking_id} 
{resource_id}

Using Context in Actions

You can use these IDs to:

  • Query booking details using {booking_id}

  • Query auxiliary resource details using {resource_id}

  • Access booking customer information

  • Access auxiliary resource user information

  • Get resource type and capacity information


Example Workflows

1. Notify Auxiliary Resource User

Workflow Steps:

  1. Trigger: Auxiliary Resource Detached from Booking

  2. Action: Send Notification

    • To: Auxiliary resource user email (query using {resource_id})

    • Subject: "Auxiliary Resource Assignment Removed"

    • Body: Include booking details and reason for removal

2. Release Availability

Workflow Steps:

  1. Trigger: Auxiliary Resource Detached from Booking

  2. Action: Update Availability

    • Release auxiliary resource slots for the booking period

    • Make auxiliary resource available for other bookings

3. Customer Notification

Workflow Steps:

  1. Trigger: Auxiliary Resource Detached from Booking

  2. Action: Send Notification

    • To: Booking customer email (query using {booking_id})

    • Subject: "Booking Update - Auxiliary Resource Change"

    • Body: Inform customer about auxiliary resource change and next steps

4. Audit Logging

Workflow Steps:

  1. Trigger: Auxiliary Resource Detached from Booking

  2. Action: Send Webhook

    • Include {booking_id} and {resource_id} in payload

    • Log detachment to external audit system

  3. Action: Update Booking (add note about auxiliary resource removal)

5. Capacity Adjustment

Workflow Steps:

  1. Trigger: Auxiliary Resource Detached from Booking

  2. Condition: Check if booking still meets capacity requirements

  3. Action (False): Send Alert to operations team

  4. Action: Update booking capacity calculations


Testing

When testing this trigger:

  1. Select a booking that has auxiliary resources attached

  2. Select a specific auxiliary resource from that booking

  3. The workflow will use that booking and auxiliary resource data

  4. Review execution logs to verify auxiliary resource and booking information

Test Data

The trigger provides access to the last 20 bookings with auxiliary resources attached for testing. You can select any booking and then choose from its attached auxiliary resources.


Best Practices

  1. Notify promptly - Send notifications immediately after detachment

  2. Release availability - Update auxiliary resource availability calendars

  3. Update customers - Inform customers about auxiliary resource changes

  4. Maintain audit trail - Log all auxiliary resource detachments

  5. Handle reassignments - Consider workflows for automatic reassignment of auxiliary resources

  6. Sync external systems - Update external calendars and systems

  7. Check capacity - Verify booking still meets capacity requirements after removal

  8. Handle automatic removals - Ensure workflows work with automatic auxiliary resource removal features


Related Documentation

Did this answer your question?