← Microsoft OneDrive + HubSpot integrations

Create Engagement with HubSpot API on New File (Instant) from Microsoft OneDrive API

Pipedream makes it easy to connect APIs for HubSpot, Microsoft OneDrive and 1000+ other apps remarkably fast.

Trigger workflow on
New File (Instant) from the Microsoft OneDrive API
Next, do this
Create Engagement with the HubSpot API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

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

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Microsoft OneDrive trigger and HubSpot 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 File (Instant) trigger
    1. Connect your Microsoft OneDrive account
    2. Configure Webhook subscription renewal schedule
  3. Configure the Create Engagement action
    1. Connect your HubSpot account
    2. Select a Engagement Type
  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 file is added to a specific drive in OneDrive
Version:0.0.2
Key:microsoft_onedrive-new-file

Microsoft OneDrive Overview

Microsoft OneDrive API allows developers to access the OneDrive service, which
enables users to store and share their personal data, such as files, photos,
and OneNote notebooks, across all their devices.

With the Microsoft OneDrive API, developers can build a variety of applications
and services that take advantage of the following features:

  • Access files and folders stored in OneDrive
  • Share files and folders with other users
  • Synchronize files across devices
  • Access OneDrive for Business
  • Application Folder Management
  • Programmatically manage trash

Trigger Code

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

export default {
  ...base,
  type: "source",
  key: "microsoft_onedrive-new-file",
  name: "New File (Instant)",
  description: "Emit new event when a new file is added to a specific drive in OneDrive",
  version: "0.0.2",
  dedupe: "unique",
  methods: {
    ...base.methods,
    isItemTypeRelevant(driveItem) {
      return !driveItem.deleted;
    },
    isItemRelevant(driveItem) {
      return !!(driveItem.file);
    },
  },
};

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 OneDriveonedriveappThis component uses the Microsoft OneDrive 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.
Webhook subscription renewal scheduletimer$.interface.timer

The OneDrive API requires occasional renewal of webhook notification subscriptions.This runs in the background, so you should not need to modify this schedule.

Trigger Authentication

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

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

User.Reademailoffline_accessopenidprofileFiles.ReadFiles.Read.AllFiles.ReadWrite

About Microsoft OneDrive

Personal cloud storage

Action

Description:Create a new engagement for a contact. [See the docs here](https://developers.hubspot.com/docs/api/crm/engagements)
Version:0.0.6
Key:hubspot-create-engagement

HubSpot Overview

The Pipedream HubSpot app enables you to build event-driven workflows that interact with the HubSpot API. We have a variety of pre-built triggers and actions that don't require any code to configure.

Action Code

import common from "../common-create.mjs";

export default {
  ...common,
  key: "hubspot-create-engagement",
  name: "Create Engagement",
  description: "Create a new engagement for a contact. [See the docs here](https://developers.hubspot.com/docs/api/crm/engagements)",
  version: "0.0.6",
  type: "action",
  props: {
    ...common.props,
    engagementType: {
      type: "string",
      label: "Engagement Type",
      description: "The type of engagement to create",
      reloadProps: true,
      options: [
        {
          label: "Note",
          value: "notes",
        },
        {
          label: "Task",
          value: "tasks",
        },
        {
          label: "Meeting",
          value: "meetings",
        },
        {
          label: "Email",
          value: "emails",
        },
        {
          label: "Call",
          value: "calls",
        },
      ],
    },
  },
  methods: {
    ...common.methods,
    getObjectType() {
      return this.engagementType;
    },
  },
  async run({ $ }) {
    const {
      hubspot,
      /* eslint-disable no-unused-vars */
      engagementType,
      $db,
      ...properties
    } = this;
    const objectType = this.getObjectType();

    const engagement = await hubspot.createObject(objectType, properties, $);

    const objectName = hubspot.getObjectTypeName(objectType);
    $.export("$summary", `Successfully created ${objectName} for the contact`);

    return engagement;
  },
};

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
HubSpothubspotappThis component uses the HubSpot app.
Engagement TypeengagementTypestringSelect a value from the drop down menu:{ "label": "Note", "value": "notes" }{ "label": "Task", "value": "tasks" }{ "label": "Meeting", "value": "meetings" }{ "label": "Email", "value": "emails" }{ "label": "Call", "value": "calls" }

Action Authentication

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

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

business-intelligencecrm.lists.readcrm.lists.writecrm.objects.companies.readcrm.objects.companies.writecrm.objects.contacts.readcrm.objects.contacts.writecrm.objects.deals.readcrm.objects.deals.writecrm.objects.owners.readcrm.schemas.companies.readcrm.schemas.companies.writecrm.schemas.contacts.readcrm.schemas.contacts.writecrm.schemas.deals.readcrm.schemas.deals.writeconversations.readcrm.importfilesformsforms-uploaded-filesintegration-syncoauthtimeline

About HubSpot

Inbound Marketing, Sales, and Service Software

More Ways to Connect HubSpot + Microsoft OneDrive

Add Contact to List with HubSpot API on New File in Folder (Instant) from Microsoft OneDrive API
Microsoft OneDrive + HubSpot
 
Try it
Add Contact to List with HubSpot API on New File of Types in Folder (Instant) from Microsoft OneDrive API
Microsoft OneDrive + HubSpot
 
Try it
Add Contact to List with HubSpot API on New File (Instant) from Microsoft OneDrive API
Microsoft OneDrive + HubSpot
 
Try it
Add Contact to List with HubSpot API on New Folder in Folder (Instant) from Microsoft OneDrive API
Microsoft OneDrive + HubSpot
 
Try it
Add Contact to List with HubSpot API on New Folder (Instant) from Microsoft OneDrive API
Microsoft OneDrive + HubSpot
 
Try it
New File (Instant) from the Microsoft OneDrive API

Emit new event when a new file is added to a specific drive in OneDrive

 
Try it
New File in Folder (Instant) from the Microsoft OneDrive API

Emit an event when a new file is added to a specific directory tree in a OneDrive drive

 
Try it
New File of Types in Folder (Instant) from the Microsoft OneDrive API

Emit an event when a new file of a specific type is created under a directory tree in a OneDrive drive

 
Try it
New Folder (Instant) from the Microsoft OneDrive API

Emit new event when a new folder is created in a OneDrive drive

 
Try it
New Folder in Folder (Instant) from the Microsoft OneDrive API

Emit an event when a new folder is created under a directory tree in a OneDrive drive

 
Try it
Get Table with the Microsoft OneDrive API

Retrieve a table from an Excel spreadsheet stored in OneDrive

 
Try it
Add Contact to List with the HubSpot API

Adds a contact to a specific static list. See the docs here

 
Try it
Batch Create or Update Contact with the HubSpot API

Create or update a batch of contacts by its ID. See the docs here

 
Try it
Create Associations with the HubSpot API

Create associations between objects. See the docs here

 
Try it
Create Company with the HubSpot API

Create a company in Hubspot. See the docs here

 
Try it