← Microsoft Sharepoint + Short.io integrations

Create Link with Short.io API on New File Created from Microsoft Sharepoint API

Pipedream makes it easy to connect APIs for Short.io, Microsoft Sharepoint and 3,000+ other apps remarkably fast.

Trigger workflow on
New File Created from the Microsoft Sharepoint API
Next, do this
Create Link with the Short.io 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 Sharepoint trigger and Short.io 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 Created trigger
    1. Connect your Microsoft Sharepoint account
    2. Configure timer
    3. Select a Site
    4. Select a Drive ID
    5. Optional- Select a Folder ID
  3. Configure the Create Link action
    1. Connect your Short.io account
    2. Select a Domain Id
    3. Configure Original URL
    4. Optional- Configure Path
    5. Optional- Configure Title
    6. Optional- Configure Tags
    7. Optional- Configure Allow duplicates
    8. Optional- Configure Expires at
    9. Optional- Configure Expired URL
    10. Optional- Configure iPhone URL
    11. Optional- Configure Android URL
    12. Optional- Configure password
    13. Optional- Configure UTM Source
    14. Optional- Configure UTM Medium
    15. Optional- Configure UTM Campaign
    16. Optional- Configure UTM Term
    17. Optional- Configure UTM Content
    18. Optional- Configure Cloaking
    19. Optional- Select a Redirect type
    20. Optional- Select a Folder ID
  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 created in Microsoft Sharepoint.
Version:0.0.1
Key:sharepoint-new-file-created

Microsoft Sharepoint Overview

The Microsoft SharePoint Online API opens up a world of possibilities for integrating your SharePoint content with other services and automating tasks. With Pipedream, you can harness this API to create powerful workflows that trigger on events in SharePoint, manipulate data, and connect with countless other apps. Create custom automations for document management, team notifications, content moderation, and more, without the need to manage infrastructure.

Trigger Code

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

export default {
  ...common,
  key: "sharepoint-new-file-created",
  name: "New File Created",
  description: "Emit new event when a new file is created in Microsoft Sharepoint.",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    siteId: {
      propDefinition: [
        common.props.sharepoint,
        "siteId",
      ],
    },
    driveId: {
      propDefinition: [
        common.props.sharepoint,
        "driveId",
        (c) => ({
          siteId: c.siteId,
        }),
      ],
    },
    folderId: {
      propDefinition: [
        common.props.sharepoint,
        "folderId",
        (c) => ({
          siteId: c.siteId,
          driveId: c.driveId,
        }),
      ],
    },
  },
  methods: {
    ...common.methods,
    getResourceFn() {
      return this.folderId
        ? this.sharepoint.listDriveItemsInFolder
        : this.sharepoint.listDriveItems;
    },
    getArgs() {
      return {
        siteId: this.siteId,
        driveId: this.driveId,
        folderId: this.folderId,
        params: {
          orderby: "lastModifiedDateTime desc",
        },
      };
    },
    getTsField() {
      return "lastModifiedDateTime";
    },
    isSortedDesc() {
      return true;
    },
    isRelevant(item) {
      return !!item.file;
    },
    generateMeta(item) {
      return {
        id: item.id,
        summary: `New File: ${item.name}`,
        ts: Date.parse(item.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 SharepointsharepointappThis component uses the Microsoft Sharepoint app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer
SitesiteIdstringSelect a value from the drop down menu.
Drive IDdriveIdstringSelect a value from the drop down menu.
Folder IDfolderIdstringSelect a value from the drop down menu.

Trigger Authentication

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

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

emailoffline_accessopenidprofileSites.Manage.AllSites.Read.AllSites.ReadWrite.AllUser.Read

About Microsoft Sharepoint

Share and manage content, knowledge, and applications to empower teamwork, quickly find information, and seamlessly collaborate across the organization.

Action

Description:Create a Short Link. [See the documentation](https://developers.short.io/reference/linkspost).
Version:0.1.1
Key:short-create-a-link

Short.io Overview

Short.io provides a robust API for URL shortening, allowing you to create, delete, and track shortened links programmatically. By integrating with Pipedream, you can automate link creation or aggregation of click data in real-time, triggering workflows in response to events like link clicks or creating short links in bulk from a data source.

Action Code

import shortApp from "../../short.app.mjs";
import common from "../common/common.mjs";
import lodash from "lodash";

const {
  props: { // eslint-disable-next-line no-unused-vars
    domain, ...props
  },
} = common;

export default {
  key: "short-create-a-link",
  name: "Create Link",
  description: "Create a Short Link. [See the documentation](https://developers.short.io/reference/linkspost).",
  version: "0.1.1",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    shortApp,
    domainId: {
      propDefinition: [
        shortApp,
        "domainId",
      ],
    },
    ...props,
    folderId: {
      propDefinition: [
        shortApp,
        "folderId",
        ({ domainId }) => ({
          domainId,
        }),
      ],
    },
  },
  async run({ $ }) {
    const param = lodash.pick(this, [
      "originalURL",
      "path",
      "title",
      "tags",
      "allowDuplicates",
      "expiresAt",
      "expiredURL",
      "iphoneURL",
      "androidURL",
      "password",
      "utmSource",
      "utmMedium",
      "utmCampaign",
      "utmTerm",
      "utmContent",
      "cloaking",
      "redirectType",
      "folderId",
    ]);
    const { hostname: domain } = await this.shortApp.getDomainInfo(this.domainId);
    const link = await this.shortApp.createLink($, {
      domain,
      ...param,
    });
    $.export("$summary", `Successfully created the link: ${link.secureShortURL}`);
    return link;
  },
};

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
Short.ioshortAppappThis component uses the Short.io app.
Domain IddomainIdintegerSelect a value from the drop down menu.
Original URLoriginalURLstring

Link, which you want to shorten.

Pathpathstring

Optional path part of newly created link.

If empty - it will be generated automatically.

Titletitlestring

Title of created URL to be shown in short.io admin panel.

Tagstagsstring[]

Specify the tags of your link.

Allow duplicatesallowDuplicatesboolean

Specify whether to allow repeated links to be registered.

Expires atexpiresAtstring

Link expiration date, use yyyy-mm-dd format.

If no expiration date is given (default), link will never expire.

Expired URLexpiredURLstring

URL to redirect when the link is expired.

iPhone URLiphoneURLstring

If users open the URL with iPhone, they will be redirected to this URL.

Android URLandroidURLstring

If users open the URL with Android, they will be redirected to this URL

passwordpasswordstring

Requires Personal plan. Password to be asked when user visits a link.

This password will not be stored in plain text, we will hash it with salt.

UTM SourceutmSourcestring

The referrer: (e.g. google, newsletter).

UTM MediumutmMediumstring

Marketing medium: (e.g. cpc, banner, email).

UTM CampaignutmCampaignstring

Product, promo code, or slogan (e.g. spring_sale).

UTM TermutmTermstring

Identify the paid keywords.

UTM ContentutmContentstring

Use to differentiate ads.

Cloakingcloakingboolean

Specify whether to cloak the link.

Redirect typeredirectTypeintegerSelect a value from the drop down menu:{ "label": "301 Moved Permanently", "value": 301 }{ "label": "302 Found", "value": 302 }{ "label": "303 See Other", "value": 303 }{ "label": "307 Temporary Redirect", "value": 307 }{ "label": "308 Permanent Redirect", "value": 308 }
Folder IDfolderIdstringSelect a value from the drop down menu.

Action Authentication

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

Get your secret key here

About Short.io

White label URL Shortener

More Ways to Connect Short.io + Microsoft Sharepoint

Create Item with Microsoft Sharepoint API on New Link Created from Short.io API
Short.io + Microsoft Sharepoint
 
Try it
Create List with Microsoft Sharepoint API on New Link Created from Short.io API
Short.io + Microsoft Sharepoint
 
Try it
Update Item with Microsoft Sharepoint API on New Link Created from Short.io API
Short.io + Microsoft Sharepoint
 
Try it
Download File with Microsoft Sharepoint API on New Link Created from Short.io API
Short.io + Microsoft Sharepoint
 
Try it
Get Excel Table with Microsoft Sharepoint Online API on New Link Created from Short.io API
Short.io + Microsoft Sharepoint
 
Try it
New File Created from the Microsoft Sharepoint API

Emit new event when a new file is created in Microsoft Sharepoint.

 
Try it
New Folder Created from the Microsoft Sharepoint API

Emit new event when a new folder is created in Microsoft Sharepoint.

 
Try it
New List Item from the Microsoft Sharepoint API

Emit new event when a new list item is created in Microsoft Sharepoint.

 
Try it
Updated List Item from the Microsoft Sharepoint API

Emit new event when a list item is updated in Microsoft Sharepoint.

 
Try it
New Link Created from the Short.io API

Emit new event when a link is created.

 
Try it
Create Folder with the Microsoft Sharepoint API

Create a new folder in SharePoint. See the documentation

 
Try it
Create Item with the Microsoft Sharepoint API

Create a new item in Microsoft Sharepoint. See the documentation

 
Try it
Create Link with the Microsoft Sharepoint API

Create a sharing link for a DriveItem. See the documentation

 
Try it
Create List with the Microsoft Sharepoint API

Create a new list in Microsoft Sharepoint. See the documentation

 
Try it
Download File with the Microsoft Sharepoint API

Download a Microsoft Sharepoint file to the /tmp directory. 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.