← Microsoft Teams + Typefully integrations

Schedule Draft with Typefully API on New Channel from Microsoft Teams API

Pipedream makes it easy to connect APIs for Typefully, Microsoft Teams and 2,500+ other apps remarkably fast.

Trigger workflow on
New Channel from the Microsoft Teams API
Next, do this
Schedule Draft with the Typefully 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 Microsoft Teams trigger and Typefully 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 Channel trigger
    1. Connect your Microsoft Teams account
    2. Configure timer
    3. Select a Team
  3. Configure the Schedule Draft action
    1. Connect your Typefully account
    2. Configure Content
    3. Optional- Configure Threadify
    4. Optional- Configure Share
    5. Configure Schedule Date
    6. Optional- Configure Auto Retweet Enabled
    7. Optional- Configure Auto Plug Enabled
  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 when a new channel is created within a team
Version:0.0.10
Key:microsoft_teams-new-channel

Microsoft Teams Overview

The Microsoft Teams API on Pipedream allows you to automate tasks, streamline communication, and integrate with other services to enhance the functionality of Teams as a collaboration hub. With this API, you can send messages to channels, orchestrate complex workflows based on Teams events, and manage Teams' settings programmatically.

Trigger Code

import base from "../common/base.mjs";

export default {
  ...base,
  key: "microsoft_teams-new-channel",
  name: "New Channel",
  description: "Emit new event when a new channel is created within a team",
  version: "0.0.10",
  type: "source",
  dedupe: "unique",
  props: {
    ...base.props,
    team: {
      propDefinition: [
        base.props.microsoftTeams,
        "team",
      ],
    },
  },
  methods: {
    ...base.methods,
    async getResources(lastCreated) {
      return this.getNewPaginatedResources(
        this.microsoftTeams.listChannels,
        {
          teamId: this.team,
        },
        lastCreated,
      );
    },
    generateMeta(channel) {
      return {
        id: channel.id,
        summary: channel.displayName,
        ts: Date.parse(channel.createdDateTime),
      };
    },
  },
};

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
Microsoft TeamsmicrosoftTeamsappThis component uses the Microsoft Teams app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer
TeamteamstringSelect a value from the drop down menu.

Trigger Authentication

Microsoft Teams uses OAuth authentication. When you connect your Microsoft Teams account, Pipedream will open a popup window where you can sign into Microsoft Teams 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 Teams API.

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

User.Reademailoffline_accessopenidprofileChat.ReadChat.ReadWriteChatMessage.SendChannel.ReadBasic.AllChannelMessage.Read.AllChannelMessage.SendTeam.ReadBasic.AllSchedule.Read.All

About Microsoft Teams

Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.

Action

Description:Schedules a draft for publication at a specific date and time. [See the documentation](https://support.typefully.com/en/articles/8718287-typefully-api#h_df59629cbf)
Version:0.0.1
Key:typefully-schedule-draft

Action Code

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

export default {
  key: "typefully-schedule-draft",
  name: "Schedule Draft",
  description: "Schedules a draft for publication at a specific date and time. [See the documentation](https://support.typefully.com/en/articles/8718287-typefully-api#h_df59629cbf)",
  version: "0.0.1",
  type: "action",
  props: {
    typefully,
    content: {
      propDefinition: [
        typefully,
        "content",
      ],
    },
    threadify: {
      propDefinition: [
        typefully,
        "threadify",
      ],
      optional: true,
    },
    share: {
      propDefinition: [
        typefully,
        "share",
      ],
      optional: true,
    },
    scheduleDate: {
      propDefinition: [
        typefully,
        "scheduleDate",
      ],
    },
    autoRetweetEnabled: {
      propDefinition: [
        typefully,
        "autoRetweetEnabled",
      ],
      optional: true,
    },
    autoPlugEnabled: {
      propDefinition: [
        typefully,
        "autoPlugEnabled",
      ],
      optional: true,
    },
  },
  async run({ $ }) {
    const response = await this.typefully.createDraft({
      $,
      data: {
        "content": this.content,
        "threadify": this.threadify,
        "share": this.share,
        "schedule-date": this.scheduleDate,
        "auto_retweet_enabled": this.autoRetweetEnabled,
        "auto_plug_enabled": this.autoPlugEnabled,
      },
    });

    $.export("$summary", `Draft scheduled successfully with ID: ${response.id}.`);
    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
TypefullytypefullyappThis component uses the Typefully app.
Contentcontentstring

You can split into multiple tweets by adding 4 consecutive newlines between tweets in the content

Threadifythreadifyboolean

Content will be automatically split into multiple tweets

Shareshareboolean

If true, returned payload will include a share_url

Schedule DatescheduleDatestring

Date to schedule the draft (ISO format - YYYY-MM-DDTHH:MM:SSZ)

Auto Retweet EnabledautoRetweetEnabledboolean

If true, the post will have an AutoRT enabled, according to the one set on Typefully for the account

Auto Plug EnabledautoPlugEnabledboolean

If true, the post will have an AutoPlug enabled, according to the one set on Typefully for the account

Action Authentication

Typefully uses API keys for authentication. When you connect your Typefully account, Pipedream securely stores the keys so you can easily authenticate to Typefully APIs in both code and no-code steps.

About Typefully

Write better content & Grow on social media faster. Level up on X, LinkedIn, Bluesky, and Threads powered by AI

More Ways to Connect Typefully + Microsoft Teams

Create Draft with Typefully API on New Channel Message from Microsoft Teams API
Microsoft Teams + Typefully
 
Try it
Create Draft with Typefully API on New Channel from Microsoft Teams API
Microsoft Teams + Typefully
 
Try it
Create Draft with Typefully API on New Chat Message from Microsoft Teams API
Microsoft Teams + Typefully
 
Try it
Create Draft with Typefully API on New Chat from Microsoft Teams API
Microsoft Teams + Typefully
 
Try it
Schedule Draft with Typefully API on New Channel Message from Microsoft Teams API
Microsoft Teams + Typefully
 
Try it
New Channel from the Microsoft Teams API

Emit new event when a new channel is created within a team

 
Try it
New Channel Message from the Microsoft Teams API

Emit new event when a new message is posted in a channel

 
Try it
New Chat from the Microsoft Teams API

Emit new event when a new chat is created

 
Try it
New Chat Message from the Microsoft Teams API

Emit new event when a new message is received in a chat

 
Try it
New Team from the Microsoft Teams API

Emit new event when a new team is joined by the authenticated user

 
Try it
Create Channel with the Microsoft Teams API

Create a new channel in Microsoft Teams. See the docs here

 
Try it
List Channels with the Microsoft Teams API

Lists all channels in a Microsoft Team. See the docs here

 
Try it
List Shifts with the Microsoft Teams API

Get the list of shift instances for a team. See the documentation

 
Try it
Send Channel Message with the Microsoft Teams API

Send a message to a team's channel. See the docs here

 
Try it
Send Chat Message with the Microsoft Teams API

Send a message to a team's chat. See the docs here

 
Try it

Explore Other Apps

1
-
0
of
2,500+
apps by most popular