← Schedule + Microsoft Bookings integrations

Create Appointment with Microsoft Bookings API on Custom Interval from Schedule API

Pipedream makes it easy to connect APIs for Microsoft Bookings, Schedule and 3,000+ other apps remarkably fast.

Trigger workflow on
Custom Interval from the Schedule API
Next, do this
Create Appointment with the Microsoft Bookings API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Schedule trigger and Microsoft Bookings action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the Custom Interval trigger
    1. Connect your Schedule account
    2. Configure Cron Schedule
  3. Configure the Create Appointment action
    1. Connect your Microsoft Bookings account
    2. Select a Business
    3. Select a Service
    4. Select a Customer ID
    5. Optional- Configure Customer Name
    6. Optional- Configure Customer Email Address
    7. Optional- Configure Customer Time Zone
    8. Configure Start Date Time
    9. Configure End Date Time
    10. Configure Time Zone
    11. Optional- Configure Customer Phone
    12. Optional- Configure Customer Notes
    13. Optional- Configure Is Location Online
    14. Optional- Select one or more Staff Member IDs
    15. Optional- Configure SMS Notifications Enabled
    16. Optional- Configure Price
    17. Optional- Select a Price Type
    18. Optional- Configure Duration
    19. Optional- Configure Maximum Attendees Count
    20. Optional- Configure Pre-Buffer
    21. Optional- Configure Post-Buffer
    22. Optional- Configure Service Notes
    23. Optional- Configure Additional Information
    24. Optional- Configure Customer Can Manage Booking
    25. Optional- Configure Opt Out of Customer Email
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Trigger your workflow every N hours, minutes or seconds.
Version:0.0.2
Key:schedule-custom-interval

Schedule Overview

The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.

Trigger Code

import schedule from "../../schedule.app.mjs";

export default {
  name: "Custom Interval",
  version: "0.0.2",
  key: "schedule-custom-interval",
  type: "source",
  description: "Trigger your workflow every N hours, minutes or seconds.",
  props: {
    schedule,
    cron: {
      propDefinition: [
        schedule,
        "cron",
      ],
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
SchedulescheduleappThis component uses the Schedule app.
Cron Schedulecron$.interface.timer

Enter a cron expression

Trigger Authentication

The Schedule API does not require authentication.

About Schedule

Trigger workflows on an interval or cron schedule.

Action

Description:Creates a new appointment in a Microsoft Bookings business. [See the documentation](https://learn.microsoft.com/en-us/graph/api/bookingbusiness-post-appointments?view=graph-rest-1.0)
Version:0.0.1
Key:microsoft_bookings-create-appointment

Action Code

import app from "../../microsoft_bookings.app.mjs";

export default {
  key: "microsoft_bookings-create-appointment",
  name: "Create Appointment",
  description: "Creates a new appointment in a Microsoft Bookings business. [See the documentation](https://learn.microsoft.com/en-us/graph/api/bookingbusiness-post-appointments?view=graph-rest-1.0)",
  version: "0.0.1",
  type: "action",
  annotations: {
    readOnlyHint: false,
    destructiveHint: false,
    openWorldHint: true,
  },
  props: {
    app,
    businessId: {
      propDefinition: [
        app,
        "businessId",
      ],
    },
    serviceId: {
      propDefinition: [
        app,
        "serviceId",
        ({ businessId }) => ({
          businessId,
        }),
      ],
    },
    customerId: {
      propDefinition: [
        app,
        "staffMemberId",
        ({ businessId }) => ({
          businessId,
        }),
      ],
      label: "Customer ID",
      description: "Select an existing customer. **Important**: Customers must exist in the system before booking appointments.",
    },
    customerName: {
      type: "string",
      label: "Customer Name",
      description: "The name of the customer",
      optional: true,
    },
    customerEmailAddress: {
      type: "string",
      label: "Customer Email Address",
      description: "The SMTP address of the customer",
      optional: true,
    },
    customerTimeZone: {
      type: "string",
      label: "Customer Time Zone",
      description: "The customer's time zone (e.g., America/Chicago, UTC)",
      optional: true,
    },
    startDateTime: {
      type: "string",
      label: "Start Date Time",
      description: "The date and time when the appointment begins in ISO 8601 format (e.g., 2024-05-01T12:00:00)",
    },
    endDateTime: {
      type: "string",
      label: "End Date Time",
      description: "The date and time when the appointment ends in ISO 8601 format (e.g., 2024-05-01T13:00:00)",
    },
    timeZone: {
      type: "string",
      label: "Time Zone",
      description: "The time zone for the appointment (e.g., UTC, America/Chicago)",
    },
    customerPhone: {
      type: "string",
      label: "Customer Phone",
      description: "The phone number of the customer",
      optional: true,
    },
    customerNotes: {
      type: "string",
      label: "Customer Notes",
      description: "Notes from the customer associated with this appointment",
      optional: true,
    },
    isLocationOnline: {
      type: "boolean",
      label: "Is Location Online",
      description: "True indicates that the appointment will be held online",
      optional: true,
    },
    staffMemberIds: {
      type: "string[]",
      label: "Staff Member IDs",
      description: "The IDs of each staff member who is scheduled in this appointment",
      optional: true,
      propDefinition: [
        app,
        "staffMemberId",
        ({ businessId }) => ({
          businessId,
        }),
      ],
    },
    smsNotificationsEnabled: {
      type: "boolean",
      label: "SMS Notifications Enabled",
      description: "If SMS notifications will be sent to the customers for the appointment",
      optional: true,
    },
    price: {
      type: "string",
      label: "Price",
      description: "The regular price for the appointment",
      optional: true,
    },
    priceType: {
      type: "string",
      label: "Price Type",
      description: "The pricing structure for the appointment",
      optional: true,
      options: [
        "undefined",
        "fixedPrice",
        "startingAt",
        "hourly",
        "free",
        "priceVaries",
        "callUs",
        "notSet",
      ],
    },
    duration: {
      type: "string",
      label: "Duration",
      description: "The length of the appointment in ISO 8601 format (e.g., PT1H for 1 hour, PT30M for 30 minutes). If not specified, calculated from start/end times.",
      optional: true,
    },
    maximumAttendeesCount: {
      type: "integer",
      label: "Maximum Attendees Count",
      description: "The maximum number of customers allowed in this appointment",
      optional: true,
    },
    preBuffer: {
      type: "string",
      label: "Pre-Buffer",
      description: "Time to reserve before the appointment in ISO 8601 format (e.g., PT15M for 15 minutes)",
      optional: true,
    },
    postBuffer: {
      type: "string",
      label: "Post-Buffer",
      description: "Time to reserve after the appointment in ISO 8601 format (e.g., PT15M for 15 minutes)",
      optional: true,
    },
    serviceNotes: {
      type: "string",
      label: "Service Notes",
      description: "Notes from the staff member about this appointment",
      optional: true,
    },
    additionalInformation: {
      type: "string",
      label: "Additional Information",
      description: "Additional information sent to the customer when the appointment is confirmed",
      optional: true,
    },
    isCustomerAllowedToManageBooking: {
      type: "boolean",
      label: "Customer Can Manage Booking",
      description: "Indicates that the customer can manage bookings created by the staff",
      optional: true,
    },
    optOutOfCustomerEmail: {
      type: "boolean",
      label: "Opt Out of Customer Email",
      description: "If true, the customer doesn't wish to receive a confirmation for this appointment",
      optional: true,
    },
  },
  async run({ $ }) {
    const {
      app,
      businessId,
      serviceId,
      customerId,
      customerName,
      customerEmailAddress,
      customerTimeZone,
      startDateTime,
      endDateTime,
      timeZone,
      customerPhone,
      customerNotes,
      isLocationOnline,
      staffMemberIds,
      smsNotificationsEnabled,
      price,
      priceType,
      duration,
      maximumAttendeesCount,
      preBuffer,
      postBuffer,
      serviceNotes,
      additionalInformation,
      isCustomerAllowedToManageBooking,
      optOutOfCustomerEmail,
    } = this;

    if (!customerId) {
      throw new Error("Customer ID is required. Please select an existing customer.");
    }

    const content = {
      "@odata.type": "#microsoft.graph.bookingAppointment",
      "serviceId": serviceId,
      "customerTimeZone": customerTimeZone || timeZone,
      "startDateTime": {
        "@odata.type": "#microsoft.graph.dateTimeTimeZone",
        "dateTime": startDateTime,
        "timeZone": timeZone,
      },
      "endDateTime": {
        "@odata.type": "#microsoft.graph.dateTimeTimeZone",
        "dateTime": endDateTime,
        "timeZone": timeZone,
      },
      "customers": [
        {
          "@odata.type": "#microsoft.graph.bookingCustomerInformation",
          "customerId": customerId,
          ...(customerName && {
            "name": customerName,
          }),
          ...(customerEmailAddress && {
            "emailAddress": customerEmailAddress,
          }),
          ...(customerPhone && {
            "phone": customerPhone,
          }),
          "timeZone": customerTimeZone || timeZone,
        },
      ],
    };

    if (customerNotes) content.customerNotes = customerNotes;
    if (isLocationOnline !== undefined) {
      content.isLocationOnline = isLocationOnline;
    }
    if (staffMemberIds?.length > 0) content.staffMemberIds = staffMemberIds;
    if (smsNotificationsEnabled !== undefined) {
      content.smsNotificationsEnabled = smsNotificationsEnabled;
    }
    if (price) content.price = parseFloat(price);
    if (priceType) content.priceType = priceType;
    if (duration) content.duration = duration;
    if (maximumAttendeesCount) content.maximumAttendeesCount = maximumAttendeesCount;
    if (preBuffer) content.preBuffer = preBuffer;
    if (postBuffer) content.postBuffer = postBuffer;
    if (serviceNotes) content.serviceNotes = serviceNotes;
    if (additionalInformation) content.additionalInformation = additionalInformation;
    if (isCustomerAllowedToManageBooking !== undefined) {
      content.isCustomerAllowedToManageBooking = isCustomerAllowedToManageBooking;
    }
    if (optOutOfCustomerEmail !== undefined) {
      content.optOutOfCustomerEmail = optOutOfCustomerEmail;
    }

    try {
      const response = await app.createAppointment({
        businessId,
        content,
      });

      $.export("$summary", `Successfully created appointment for ${customerName}`);

      return response;
    } catch (error) {
      console.error("Error creating appointment:", error);
      console.error("Request payload:", JSON.stringify(content, null, 2));
      throw new Error(`Failed to create appointment: ${error.message || error.toString()}`);
    }
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Microsoft BookingsappappThis component uses the Microsoft Bookings app.
BusinessbusinessIdstringSelect a value from the drop down menu.
ServiceserviceIdstringSelect a value from the drop down menu.
Customer IDcustomerIdstringSelect a value from the drop down menu.
Customer NamecustomerNamestring

The name of the customer

Customer Email AddresscustomerEmailAddressstring

The SMTP address of the customer

Customer Time ZonecustomerTimeZonestring

The customer's time zone (e.g., America/Chicago, UTC)

Start Date TimestartDateTimestring

The date and time when the appointment begins in ISO 8601 format (e.g., 2024-05-01T12:00:00)

End Date TimeendDateTimestring

The date and time when the appointment ends in ISO 8601 format (e.g., 2024-05-01T13:00:00)

Time ZonetimeZonestring

The time zone for the appointment (e.g., UTC, America/Chicago)

Customer PhonecustomerPhonestring

The phone number of the customer

Customer NotescustomerNotesstring

Notes from the customer associated with this appointment

Is Location OnlineisLocationOnlineboolean

True indicates that the appointment will be held online

Staff Member IDsstaffMemberIdsstring[]Select a value from the drop down menu.
SMS Notifications EnabledsmsNotificationsEnabledboolean

If SMS notifications will be sent to the customers for the appointment

Pricepricestring

The regular price for the appointment

Price TypepriceTypestringSelect a value from the drop down menu:undefinedfixedPricestartingAthourlyfreepriceVariescallUsnotSet
Durationdurationstring

The length of the appointment in ISO 8601 format (e.g., PT1H for 1 hour, PT30M for 30 minutes). If not specified, calculated from start/end times.

Maximum Attendees CountmaximumAttendeesCountinteger

The maximum number of customers allowed in this appointment

Pre-BufferpreBufferstring

Time to reserve before the appointment in ISO 8601 format (e.g., PT15M for 15 minutes)

Post-BufferpostBufferstring

Time to reserve after the appointment in ISO 8601 format (e.g., PT15M for 15 minutes)

Service NotesserviceNotesstring

Notes from the staff member about this appointment

Additional InformationadditionalInformationstring

Additional information sent to the customer when the appointment is confirmed

Customer Can Manage BookingisCustomerAllowedToManageBookingboolean

Indicates that the customer can manage bookings created by the staff

Opt Out of Customer EmailoptOutOfCustomerEmailboolean

If true, the customer doesn't wish to receive a confirmation for this appointment

Action Authentication

Microsoft Bookings uses OAuth authentication. When you connect your Microsoft Bookings account, Pipedream will open a popup window where you can sign into Microsoft Bookings and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Microsoft Bookings API.

Pipedream requests the following authorization scopes when you connect your account:

emailoffline_accessopenidprofileBookings.Manage.AllBookings.Read.AllBookings.ReadWrite.AllBookingsAppointment.ReadWrite.All

About Microsoft Bookings

Online Bookings and Appointment Scheduling

More Ways to Connect Microsoft Bookings + Schedule

Cancel Appointment with Microsoft Bookings API on Daily schedule from Schedule API
Schedule + Microsoft Bookings
 
Try it
Cancel Appointment with Microsoft Bookings API on Weekly schedule from Schedule API
Schedule + Microsoft Bookings
 
Try it
Cancel Appointment with Microsoft Bookings API on Custom Interval from Schedule API
Schedule + Microsoft Bookings
 
Try it
Cancel Appointment with Microsoft Bookings API on Monthly Schedule from Schedule API
Schedule + Microsoft Bookings
 
Try it
Create Appointment with Microsoft Bookings API on Daily schedule from Schedule API
Schedule + Microsoft Bookings
 
Try it
Custom Interval from the Schedule API

Trigger your workflow every N hours, minutes or seconds.

 
Try it
Daily schedule from the Schedule API

Trigger your workflow every day.

 
Try it
Monthly Schedule from the Schedule API

Trigger your workflow on one or more days each month at a specific time (with timezone support).

 
Try it
Weekly schedule from the Schedule API

Trigger your workflow on one or more days each week at a specific time (with timezone support).

 
Try it
Cancel Appointment with the Microsoft Bookings API

Cancels an appointment in a Microsoft Bookings business. See the documentation

 
Try it
Create Appointment with the Microsoft Bookings API

Creates a new appointment in a Microsoft Bookings business. See the documentation

 
Try it
Create Booking Business with the Microsoft Bookings API

Creates a new Microsoft Bookings business. See the documentation

 
Try it
Create Customer with the Microsoft Bookings API

Creates a new customer in a Microsoft Bookings business. See the documentation

 
Try it
Create Service with the Microsoft Bookings API

Creates a new service in a Microsoft Bookings business. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.