← Google Calendar + Teamwork integrations

Create User with Teamwork API on New Upcoming Event Alert from Google Calendar API

Pipedream makes it easy to connect APIs for Teamwork, Google Calendar and 2,700+ other apps remarkably fast.

Trigger workflow on
New Upcoming Event Alert from the Google Calendar API
Next, do this
Create User with the Teamwork 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 Google Calendar trigger and Teamwork 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 New Upcoming Event Alert trigger
    1. Connect your Google Calendar account
    2. Connect your Google Calendar account
    3. Optional- Select a Calendar ID
    4. Optional- Select one or more Event Types
    5. Configure Minutes Before
  3. Configure the Create User action
    1. Connect your Teamwork account
    2. Configure Email Address
    3. Configure First Name
    4. Configure Last Name
    5. Optional- Select a Company ID
    6. Optional- Configure Send Invite
    7. Optional- Configure Title
    8. Optional- Configure Office Phone
    9. Optional- Configure Office Phone Extension
    10. Optional- Configure Mobile Phone Country Code
    11. Optional- Configure Mobile Phone Prefix
    12. Optional- Configure Mobile Phone
    13. Optional- Configure Home Phone
    14. Optional- Configure Fax Number
    15. Optional- Configure Alternative Email 1
    16. Optional- Configure Alternative Email 2
    17. Optional- Configure Alternative Email 3
    18. Optional- Configure Address
    19. Optional- Configure Profile
    20. Optional- Configure Twitter Name
    21. Optional- Configure LinkedIn
    22. Optional- Configure Facebook
    23. Optional- Configure Website
    24. Optional- Configure IM Service
    25. Optional- Configure IM Handle
    26. Optional- Configure Language
    27. Optional- Configure Date Format ID
    28. Optional- Configure Time Format ID
    29. Optional- Configure Timezone ID
    30. Optional- Configure Calendar Starts On Sunday
    31. Optional- Configure Length of Day
    32. Optional- Configure Working Hours
    33. Optional- Configure Change For Everyone
    34. Optional- Configure Administrator
    35. Optional- Configure Can Add Projects
    36. Optional- Configure Can Manage People
    37. Optional- Configure Auto Give Project Access
    38. Optional- Configure Can Access Calendar
    39. Optional- Configure Can Access Templates
    40. Optional- Configure Can Access Portfolio
    41. Optional- Configure Can Manage Custom Fields
    42. Optional- Configure Can Manage Portfolio
    43. Optional- Configure Can Manage Project Templates
    44. Optional- Configure Can View Project Templates
    45. Optional- Configure Notify On Task Complete
    46. Optional- Configure Notify On Added As Follower
    47. Optional- Configure Notify On Status Update
    48. Optional- Configure Text Format
    49. Optional- Configure Use Shorthand Durations
    50. Optional- Configure User Receive Notify Warnings
    51. Optional- Configure User Receive My Notifications Only
    52. Optional- Configure Receive Daily Reports
    53. Optional- Configure Receive Daily Reports At Weekend
    54. Optional- Configure Receive Daily Reports If Empty
    55. Optional- Configure Sound Alerts Enabled
    56. Optional- Configure Daily Report Sort
    57. Optional- Configure Receive Daily Reports At Time
    58. Optional- Configure Daily Report Events Type
    59. Optional- Configure Daily Report Days Filter
    60. Optional- Configure Avatar Pending File Ref
    61. Optional- Configure Remove Avatar
    62. Optional- Configure Allow Email Notifications
    63. Optional- Select a User Type
    64. Optional- Configure Private Notes
    65. Optional- Configure Get User Details
  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:Emit new event based on a time interval before an upcoming event in the calendar. This source uses Pipedream's Task Scheduler. [See the documentation](https://pipedream.com/docs/examples/waiting-to-execute-next-step-of-workflow/#step-1-create-a-task-scheduler-event-source) for more information and instructions for connecting your Pipedream account.
Version:0.0.10
Key:google_calendar-upcoming-event-alert

Google Calendar Overview

The Google Calendar API lets you dip into the powerhouse of scheduling, allowing for the reading, creation, and manipulation of events and calendars directly from your applications. Through Pipedream, you can seamlessly integrate Google Calendar into a myriad of workflows, automating event management, syncing with other services, setting up custom reminders, or even collating data for reporting. The key here is to streamline your calendar-related processes, ensuring that your time management is as efficient and automated as possible.

Trigger Code

import taskScheduler from "../../../pipedream/sources/new-scheduled-tasks/new-scheduled-tasks.mjs";
import googleCalendar from "../../google_calendar.app.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  key: "google_calendar-upcoming-event-alert",
  name: "New Upcoming Event Alert",
  description: `Emit new event based on a time interval before an upcoming event in the calendar. This source uses Pipedream's Task Scheduler.
    [See the documentation](https://pipedream.com/docs/examples/waiting-to-execute-next-step-of-workflow/#step-1-create-a-task-scheduler-event-source) 
    for more information and instructions for connecting your Pipedream account.`,
  version: "0.0.10",
  type: "source",
  props: {
    pipedream: taskScheduler.props.pipedream,
    googleCalendar,
    db: "$.service.db",
    http: "$.interface.http",
    calendarId: {
      propDefinition: [
        googleCalendar,
        "calendarId",
      ],
    },
    eventTypes: {
      propDefinition: [
        googleCalendar,
        "eventTypes",
      ],
    },
    time: {
      type: "integer",
      label: "Minutes Before",
      description: "Number of minutes to trigger before the start of the calendar event.",
      min: 0,
      reloadProps: true,
    },
  },
  async additionalProps() {
    const props = {};
    if (this.time > 0) {
      props.timer = {
        type: "$.interface.timer",
        description: "Poll the API to schedule alerts for any newly created events",
        default: {
          intervalSeconds: 60 * this.time,
        },
      };
    }
    return props;
  },
  hooks: {
    async deactivate() {
      const ids = this._getScheduledEventIds();
      if (!ids?.length) {
        return;
      }
      for (const id of ids) {
        if (await this.deleteEvent({
          body: {
            id,
          },
        })) {
          console.log("Cancelled scheduled event");
        }
      }
      this._setScheduledEventIds();
    },
  },
  methods: {
    ...taskScheduler.methods,
    _getScheduledEventIds() {
      return this.db.get("scheduledEventIds");
    },
    _setScheduledEventIds(ids) {
      this.db.set("scheduledEventIds", ids);
    },
    _getScheduledCalendarEventIds() {
      return this.db.get("scheduledCalendarEventIds");
    },
    _setScheduledCalendarEventIds(ids) {
      this.db.set("scheduledCalendarEventIds", ids);
    },
    _hasDeployed() {
      const result = this.db.get("hasDeployed");
      this.db.set("hasDeployed", true);
      return result;
    },
    subtractMinutes(date, minutes) {
      return date.getTime() - minutes * 60000;
    },
    async getCalendarEvents() {
      const calendarEvents = [];
      const params = {
        returnOnlyData: false,
        calendarId: this.calendarId,
        eventTypes: this.eventTypes,
      };
      do {
        const {
          data: {
            items, nextPageToken,
          },
        } = await this.googleCalendar.listEvents(params);
        if (items?.length) {
          calendarEvents.push(...items);
        }
        params.pageToken = nextPageToken;
      } while (params.pageToken);
      return calendarEvents;
    },
  },
  async run(event) {
    // self subscribe only on the first time
    if (!this._hasDeployed()) {
      await this.selfSubscribe();
    }

    const scheduledEventIds = this._getScheduledEventIds() || [];

    // incoming scheduled event
    if (event.$channel === this.selfChannel()) {
      const remainingScheduledEventIds = scheduledEventIds.filter((id) => id !== event["$id"]);
      this._setScheduledEventIds(remainingScheduledEventIds);
      this.emitEvent(event, `Upcoming ${event.summary} event`);
      return;
    }

    // schedule new events
    const scheduledCalendarEventIds = this._getScheduledCalendarEventIds() || {};
    const calendarEvents = await this.getCalendarEvents();

    for (const calendarEvent of calendarEvents) {
      const startTime = calendarEvent.start
        ? (new Date(calendarEvent.start.dateTime || calendarEvent.start.date))
        : null;
      if (!startTime
        || startTime.getTime() < Date.now()
        || scheduledCalendarEventIds[calendarEvent.id])
      {
        continue;
      }
      const later = new Date(this.subtractMinutes(startTime, this.time));

      const scheduledEventId = this.emitScheduleEvent(calendarEvent, later);
      scheduledEventIds.push(scheduledEventId);
      scheduledCalendarEventIds[calendarEvent.id] = true;
    }
    this._setScheduledEventIds(scheduledEventIds);
    this._setScheduledCalendarEventIds(scheduledCalendarEventIds);
  },
  sampleEmit,
};

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
Google CalendarpipedreamappThis component uses the Google Calendar app.
Google CalendargoogleCalendarappThis component uses the Google Calendar app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Calendar IDcalendarIdstringSelect a value from the drop down menu.
Event TypeseventTypesstring[]Select a value from the drop down menu:defaultfocusTimeoutOfOfficeworkingLocation
Minutes Beforetimeinteger

Number of minutes to trigger before the start of the calendar event.

Trigger Authentication

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

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

https://www.googleapis.com/auth/calendar.eventshttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.settings.readonlyemailprofile

About 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.

Action

Description:Create a new user in Teamwork. [See the docs here](https://apidocs.teamwork.com/docs/teamwork/v1/people/post-people-json)
Version:0.0.1
Key:teamwork-create-user

Teamwork Overview

The Teamwork API taps into the power of project management, letting you streamline workflows by automating tasks like creating projects, assigning tasks, tracking time, or updating statuses. With Pipedream, you can effortlessly integrate these capabilities with hundreds of other apps to create custom automations that fit your team's needs, enhancing productivity and ensuring that your projects are always moving forward with the latest information.

Action Code

import app from "../../teamwork.app.mjs";
import { parseObject } from "../../common/utils.mjs";

export default {
  type: "action",
  key: "teamwork-create-user",
  version: "0.0.1",
  name: "Create User",
  description: "Create a new user in Teamwork. [See the docs here](https://apidocs.teamwork.com/docs/teamwork/v1/people/post-people-json)",
  props: {
    app,
    emailAddress: {
      type: "string",
      label: "Email Address",
      description: "The email address of the person",
    },
    firstName: {
      type: "string",
      label: "First Name",
      description: "The first name of the person",
    },
    lastName: {
      type: "string",
      label: "Last Name",
      description: "The last name of the person",
    },
    companyId: {
      propDefinition: [
        app,
        "companyId",
      ],
    },
    sendInvite: {
      type: "boolean",
      label: "Send Invite",
      description: "Whether to send an invitation email to the new user",
      optional: true,
    },
    title: {
      type: "string",
      label: "Title",
      description: "The job title of the person",
      optional: true,
    },
    phoneNumberOffice: {
      type: "string",
      label: "Office Phone",
      description: "The office phone number of the person",
      optional: true,
    },
    phoneNumberOfficeExt: {
      type: "string",
      label: "Office Phone Extension",
      description: "The office phone extension of the person",
      optional: true,
    },
    phoneNumberMobileCountrycode: {
      type: "string",
      label: "Mobile Phone Country Code",
      description: "The country code for the mobile phone number",
      optional: true,
    },
    phoneNumberMobilePrefix: {
      type: "string",
      label: "Mobile Phone Prefix",
      description: "The prefix for the mobile phone number",
      optional: true,
    },
    phoneNumberMobile: {
      type: "string",
      label: "Mobile Phone",
      description: "The mobile phone number of the person",
      optional: true,
    },
    phoneNumberHome: {
      type: "string",
      label: "Home Phone",
      description: "The home phone number of the person",
      optional: true,
    },
    phoneNumberFax: {
      type: "string",
      label: "Fax Number",
      description: "The fax number of the person",
      optional: true,
    },
    emailAlt1: {
      type: "string",
      label: "Alternative Email 1",
      description: "First alternative email address",
      optional: true,
    },
    emailAlt2: {
      type: "string",
      label: "Alternative Email 2",
      description: "Second alternative email address",
      optional: true,
    },
    emailAlt3: {
      type: "string",
      label: "Alternative Email 3",
      description: "Third alternative email address",
      optional: true,
    },
    address: {
      type: "object",
      label: "Address",
      description: "Object containing address information. [See the documentation](https://apidocs.teamwork.com/docs/teamwork/v1/people/post-people-json) for more information.",
      optional: true,
    },
    profile: {
      type: "string",
      label: "Profile",
      description: "The profile information of the person",
      optional: true,
    },
    userTwitterName: {
      type: "string",
      label: "Twitter Name",
      description: "The Twitter handle of the person",
      optional: true,
    },
    userLinkedin: {
      type: "string",
      label: "LinkedIn",
      description: "The LinkedIn profile URL of the person",
      optional: true,
    },
    userFacebook: {
      type: "string",
      label: "Facebook",
      description: "The Facebook profile URL of the person",
      optional: true,
    },
    userWebsite: {
      type: "string",
      label: "Website",
      description: "The personal website of the person",
      optional: true,
    },
    imService: {
      type: "string",
      label: "IM Service",
      description: "The instant messaging service used by the person",
      optional: true,
    },
    imHandle: {
      type: "string",
      label: "IM Handle",
      description: "The instant messaging username of the person",
      optional: true,
    },
    language: {
      type: "string",
      label: "Language",
      description: "The language preference for the person",
      optional: true,
    },
    dateFormatId: {
      type: "integer",
      label: "Date Format ID",
      description: "The date format ID for the person",
      optional: true,
    },
    timeFormatId: {
      type: "integer",
      label: "Time Format ID",
      description: "The time format ID for the person",
      optional: true,
    },
    timezoneId: {
      type: "integer",
      label: "Timezone ID",
      description: "The timezone ID for the person",
      optional: true,
    },
    calendarStartsOnSunday: {
      type: "string",
      label: "Calendar Starts On Sunday",
      description: "Whether the calendar starts on Sunday",
      optional: true,
    },
    lengthOfDay: {
      type: "integer",
      label: "Length of Day",
      description: "The length of day in hours",
      optional: true,
    },
    workingHours: {
      type: "object",
      label: "Working Hours",
      description: "Object containing working hours information. . [See the documentation](https://apidocs.teamwork.com/docs/teamwork/v1/people/post-people-json) for more information.",
      optional: true,
    },
    changeForEveryone: {
      type: "boolean",
      label: "Change For Everyone",
      description: "Whether changes apply to everyone",
      optional: true,
    },
    administrator: {
      type: "boolean",
      label: "Administrator",
      description: "Whether the person is an administrator",
      optional: true,
    },
    canAddProjects: {
      type: "boolean",
      label: "Can Add Projects",
      description: "Whether the person can add projects",
      optional: true,
    },
    canManagePeople: {
      type: "boolean",
      label: "Can Manage People",
      description: "Whether the person can manage people",
      optional: true,
    },
    autoGiveProjectAccess: {
      type: "boolean",
      label: "Auto Give Project Access",
      description: "Whether to automatically give the person access to new projects",
      optional: true,
    },
    canAccessCalendar: {
      type: "boolean",
      label: "Can Access Calendar",
      description: "Whether the person can access the calendar",
      optional: true,
    },
    canAccessTemplates: {
      type: "boolean",
      label: "Can Access Templates",
      description: "Whether the person can access templates",
      optional: true,
    },
    canAccessPortfolio: {
      type: "boolean",
      label: "Can Access Portfolio",
      description: "Whether the person can access the portfolio",
      optional: true,
    },
    canManageCustomFields: {
      type: "boolean",
      label: "Can Manage Custom Fields",
      description: "Whether the person can manage custom fields",
      optional: true,
    },
    canManagePortfolio: {
      type: "boolean",
      label: "Can Manage Portfolio",
      description: "Whether the person can manage the portfolio",
      optional: true,
    },
    canManageProjectTemplates: {
      type: "boolean",
      label: "Can Manage Project Templates",
      description: "Whether the person can manage project templates",
      optional: true,
    },
    canViewProjectTemplates: {
      type: "boolean",
      label: "Can View Project Templates",
      description: "Whether the person can view project templates",
      optional: true,
    },
    notifyOnTaskComplete: {
      type: "boolean",
      label: "Notify On Task Complete",
      description: "Whether to notify when tasks are completed",
      optional: true,
    },
    notifyOnAddedAsFollower: {
      type: "boolean",
      label: "Notify On Added As Follower",
      description: "Whether to notify when added as a follower",
      optional: true,
    },
    notifyOnStatusUpdate: {
      type: "boolean",
      label: "Notify On Status Update",
      description: "Whether to notify on status updates",
      optional: true,
    },
    textFormat: {
      type: "string",
      label: "Text Format",
      description: "The text format preference",
      optional: true,
    },
    useShorthandDurations: {
      type: "boolean",
      label: "Use Shorthand Durations",
      description: "Whether to use shorthand durations",
      optional: true,
    },
    userReceiveNotifyWarnings: {
      type: "boolean",
      label: "User Receive Notify Warnings",
      description: "Whether the user receives notification warnings",
      optional: true,
    },
    userReceiveMyNotificationsOnly: {
      type: "boolean",
      label: "User Receive My Notifications Only",
      description: "Whether the user receives only their own notifications",
      optional: true,
    },
    receiveDailyReports: {
      type: "boolean",
      label: "Receive Daily Reports",
      description: "Whether the person should receive daily reports",
      optional: true,
    },
    receiveDailyReportsAtWeekend: {
      type: "boolean",
      label: "Receive Daily Reports At Weekend",
      description: "Whether to receive daily reports on weekends",
      optional: true,
    },
    receiveDailyReportsIfEmpty: {
      type: "boolean",
      label: "Receive Daily Reports If Empty",
      description: "Whether to receive daily reports even if empty",
      optional: true,
    },
    soundAlertsEnabled: {
      type: "boolean",
      label: "Sound Alerts Enabled",
      description: "Whether sound alerts are enabled",
      optional: true,
    },
    dailyReportSort: {
      type: "string",
      label: "Daily Report Sort",
      description: "The sort order for daily reports",
      optional: true,
    },
    receiveDailyReportsAtTime: {
      type: "string",
      label: "Receive Daily Reports At Time",
      description: "The time to receive daily reports",
      optional: true,
    },
    dailyReportEventsType: {
      type: "string",
      label: "Daily Report Events Type",
      description: "The type of events for daily reports",
      optional: true,
    },
    dailyReportDaysFilter: {
      type: "integer",
      label: "Daily Report Days Filter",
      description: "The days filter for daily reports",
      optional: true,
    },
    avatarPendingFileRef: {
      type: "string",
      label: "Avatar Pending File Ref",
      description: "Reference to pending avatar file",
      optional: true,
    },
    removeAvatar: {
      type: "boolean",
      label: "Remove Avatar",
      description: "Whether to remove the avatar",
      optional: true,
    },
    allowEmailNotifications: {
      type: "boolean",
      label: "Allow Email Notifications",
      description: "Whether to allow email notifications",
      optional: true,
    },
    userType: {
      type: "string",
      label: "User Type",
      description: "The type of user (account, collaborator, contact)",
      optional: true,
      options: [
        {
          label: "Account",
          value: "account",
        },
        {
          label: "Collaborator",
          value: "collaborator",
        },
        {
          label: "Contact",
          value: "contact",
        },
      ],
    },
    privateNotes: {
      type: "string",
      label: "Private Notes",
      description: "Private notes about the person",
      optional: true,
    },
    getUserDetails: {
      type: "boolean",
      label: "Get User Details",
      description: "Whether to return user details in the response",
      optional: true,
    },
  },
  async run({ $ }) {
    const data = {
      "email-address": this.emailAddress,
      "first-name": this.firstName,
      "last-name": this.lastName,
      "company-id": this.companyId,
      "sendInvite": this.sendInvite,
      "title": this.title,
      "phone-number-office": this.phoneNumberOffice,
      "phone-number-office-ext": this.phoneNumberOfficeExt,
      "phone-number-mobile-countrycode": this.phoneNumberMobileCountrycode,
      "phone-number-mobile-prefix": this.phoneNumberMobilePrefix,
      "phone-number-mobile": this.phoneNumberMobile,
      "phone-number-home": this.phoneNumberHome,
      "phone-number-fax": this.phoneNumberFax,
      "email-alt-1": this.emailAlt1,
      "email-alt-2": this.emailAlt2,
      "email-alt-3": this.emailAlt3,
      "address": parseObject(this.address),
      "profile": this.profile,
      "userTwitterName": this.userTwitterName,
      "userLinkedin": this.userLinkedin,
      "userFacebook": this.userFacebook,
      "userWebsite": this.userWebsite,
      "im-service": this.imService,
      "im-handle": this.imHandle,
      "language": this.language,
      "dateFormatId": this.dateFormatId,
      "timeFormatId": this.timeFormatId,
      "timezoneId": this.timezoneId,
      "calendarStartsOnSunday": this.calendarStartsOnSunday,
      "lengthOfDay": this.lengthOfDay,
      "workingHours": parseObject(this.workingHours),
      "changeForEveryone": this.changeForEveryone,
      "administrator": this.administrator,
      "canAddProjects": this.canAddProjects,
      "canManagePeople": this.canManagePeople,
      "autoGiveProjectAccess": this.autoGiveProjectAccess,
      "canAccessCalendar": this.canAccessCalendar,
      "canAccessTemplates": this.canAccessTemplates,
      "canAccessPortfolio": this.canAccessPortfolio,
      "canManageCustomFields": this.canManageCustomFields,
      "canManagePortfolio": this.canManagePortfolio,
      "canManageProjectTemplates": this.canManageProjectTemplates,
      "canViewProjectTemplates": this.canViewProjectTemplates,
      "notifyOnTaskComplete": this.notifyOnTaskComplete,
      "notify-on-added-as-follower": this.notifyOnAddedAsFollower,
      "notify-on-status-update": this.notifyOnStatusUpdate,
      "textFormat": this.textFormat,
      "useShorthandDurations": this.useShorthandDurations,
      "userReceiveNotifyWarnings": this.userReceiveNotifyWarnings,
      "userReceiveMyNotificationsOnly": this.userReceiveMyNotificationsOnly,
      "receiveDailyReports": this.receiveDailyReports,
      "receiveDailyReportsAtWeekend": this.receiveDailyReportsAtWeekend,
      "receiveDailyReportsIfEmpty": this.receiveDailyReportsIfEmpty,
      "soundAlertsEnabled": this.soundAlertsEnabled,
      "dailyReportSort": this.dailyReportSort,
      "receiveDailyReportsAtTime": this.receiveDailyReportsAtTime,
      "dailyReportEventsType": this.dailyReportEventsType,
      "dailyReportDaysFilter": this.dailyReportDaysFilter,
      "avatarPendingFileRef": this.avatarPendingFileRef,
      "removeAvatar": this.removeAvatar,
      "allowEmailNotifications": this.allowEmailNotifications,
      "user-type": this.userType,
      "privateNotes": this.privateNotes,
      "getUserDetails": this.getUserDetails,
    };

    // Remove undefined values
    Object.keys(data).forEach((key) => {
      if (data[key] === undefined) {
        delete data[key];
      }
    });

    const response = await this.app.createPerson(data, $);

    $.export("$summary", `User ${this.firstName} ${this.lastName} created successfully`);
    return response;
  },
};

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
TeamworkappappThis component uses the Teamwork app.
Email AddressemailAddressstring

The email address of the person

First NamefirstNamestring

The first name of the person

Last NamelastNamestring

The last name of the person

Company IDcompanyIdstringSelect a value from the drop down menu.
Send InvitesendInviteboolean

Whether to send an invitation email to the new user

Titletitlestring

The job title of the person

Office PhonephoneNumberOfficestring

The office phone number of the person

Office Phone ExtensionphoneNumberOfficeExtstring

The office phone extension of the person

Mobile Phone Country CodephoneNumberMobileCountrycodestring

The country code for the mobile phone number

Mobile Phone PrefixphoneNumberMobilePrefixstring

The prefix for the mobile phone number

Mobile PhonephoneNumberMobilestring

The mobile phone number of the person

Home PhonephoneNumberHomestring

The home phone number of the person

Fax NumberphoneNumberFaxstring

The fax number of the person

Alternative Email 1emailAlt1string

First alternative email address

Alternative Email 2emailAlt2string

Second alternative email address

Alternative Email 3emailAlt3string

Third alternative email address

Addressaddressobject

Object containing address information. See the documentation for more information.

Profileprofilestring

The profile information of the person

Twitter NameuserTwitterNamestring

The Twitter handle of the person

LinkedInuserLinkedinstring

The LinkedIn profile URL of the person

FacebookuserFacebookstring

The Facebook profile URL of the person

WebsiteuserWebsitestring

The personal website of the person

IM ServiceimServicestring

The instant messaging service used by the person

IM HandleimHandlestring

The instant messaging username of the person

Languagelanguagestring

The language preference for the person

Date Format IDdateFormatIdinteger

The date format ID for the person

Time Format IDtimeFormatIdinteger

The time format ID for the person

Timezone IDtimezoneIdinteger

The timezone ID for the person

Calendar Starts On SundaycalendarStartsOnSundaystring

Whether the calendar starts on Sunday

Length of DaylengthOfDayinteger

The length of day in hours

Working HoursworkingHoursobject

Object containing working hours information. . See the documentation for more information.

Change For EveryonechangeForEveryoneboolean

Whether changes apply to everyone

Administratoradministratorboolean

Whether the person is an administrator

Can Add ProjectscanAddProjectsboolean

Whether the person can add projects

Can Manage PeoplecanManagePeopleboolean

Whether the person can manage people

Auto Give Project AccessautoGiveProjectAccessboolean

Whether to automatically give the person access to new projects

Can Access CalendarcanAccessCalendarboolean

Whether the person can access the calendar

Can Access TemplatescanAccessTemplatesboolean

Whether the person can access templates

Can Access PortfoliocanAccessPortfolioboolean

Whether the person can access the portfolio

Can Manage Custom FieldscanManageCustomFieldsboolean

Whether the person can manage custom fields

Can Manage PortfoliocanManagePortfolioboolean

Whether the person can manage the portfolio

Can Manage Project TemplatescanManageProjectTemplatesboolean

Whether the person can manage project templates

Can View Project TemplatescanViewProjectTemplatesboolean

Whether the person can view project templates

Notify On Task CompletenotifyOnTaskCompleteboolean

Whether to notify when tasks are completed

Notify On Added As FollowernotifyOnAddedAsFollowerboolean

Whether to notify when added as a follower

Notify On Status UpdatenotifyOnStatusUpdateboolean

Whether to notify on status updates

Text FormattextFormatstring

The text format preference

Use Shorthand DurationsuseShorthandDurationsboolean

Whether to use shorthand durations

User Receive Notify WarningsuserReceiveNotifyWarningsboolean

Whether the user receives notification warnings

User Receive My Notifications OnlyuserReceiveMyNotificationsOnlyboolean

Whether the user receives only their own notifications

Receive Daily ReportsreceiveDailyReportsboolean

Whether the person should receive daily reports

Receive Daily Reports At WeekendreceiveDailyReportsAtWeekendboolean

Whether to receive daily reports on weekends

Receive Daily Reports If EmptyreceiveDailyReportsIfEmptyboolean

Whether to receive daily reports even if empty

Sound Alerts EnabledsoundAlertsEnabledboolean

Whether sound alerts are enabled

Daily Report SortdailyReportSortstring

The sort order for daily reports

Receive Daily Reports At TimereceiveDailyReportsAtTimestring

The time to receive daily reports

Daily Report Events TypedailyReportEventsTypestring

The type of events for daily reports

Daily Report Days FilterdailyReportDaysFilterinteger

The days filter for daily reports

Avatar Pending File RefavatarPendingFileRefstring

Reference to pending avatar file

Remove AvatarremoveAvatarboolean

Whether to remove the avatar

Allow Email NotificationsallowEmailNotificationsboolean

Whether to allow email notifications

User TypeuserTypestringSelect a value from the drop down menu:{ "label": "Account", "value": "account" }{ "label": "Collaborator", "value": "collaborator" }{ "label": "Contact", "value": "contact" }
Private NotesprivateNotesstring

Private notes about the person

Get User DetailsgetUserDetailsboolean

Whether to return user details in the response

Action Authentication

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

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

About Teamwork

Project management software

More Ways to Connect Teamwork + Google Calendar

Create Task with Teamwork API on Event Cancelled from Google Calendar API
Google Calendar + Teamwork
 
Try it
Create Task with Teamwork API on Event Ended from Google Calendar API
Google Calendar + Teamwork
 
Try it
Create Task with Teamwork API on Event Start from Google Calendar API
Google Calendar + Teamwork
 
Try it
Create Task with Teamwork API on New Calendar from Google Calendar API
Google Calendar + Teamwork
 
Try it
Create Task with Teamwork API on Event Search from Google Calendar API
Google Calendar + Teamwork
 
Try it
New Upcoming Event Alert from the Google Calendar API

Emit new event based on a time interval before an upcoming event in the calendar. This source uses Pipedream's Task Scheduler. See the documentation for more information and instructions for connecting your Pipedream account.

 
Try it
New Created or Updated Event (Instant) from the Google Calendar API

Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)

 
Try it
New Calendar Created from the Google Calendar API

Emit new event when a calendar is created.

 
Try it
New Event Matching a Search from the Google Calendar API

Emit new event when a Google Calendar event is created that matches a search

 
Try it
New Cancelled Event from the Google Calendar API

Emit new event when a Google Calendar event is cancelled or deleted

 
Try it
Add Attendees To Event with the Google Calendar API

Add attendees to an existing event. See the documentation

 
Try it
Add Quick Event with the Google Calendar API

Create a quick event to the Google Calendar. See the documentation

 
Try it
Create Event with the Google Calendar API

Create an event in a Google Calendar. See the documentation

 
Try it
Delete an Event with the Google Calendar API

Delete an event from a Google Calendar. See the documentation

 
Try it
List Calendars with the Google Calendar API

Retrieve a list of calendars from Google Calendar. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,700+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream 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.
Pinterest
Pinterest
Pinterest is a visual discovery engine for finding ideas like recipes, home and style inspiration, and more.
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.
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.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
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
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.