← Salesforce + Bitly integrations

List Bitlinks by group with Bitly API on New Deleted Record (Instant, of Selectable Type) from Salesforce API

Pipedream makes it easy to connect APIs for Bitly, Salesforce and 3,000+ other apps remarkably fast.

Trigger workflow on
New Deleted Record (Instant, of Selectable Type) from the Salesforce API
Next, do this
List Bitlinks by group with the Bitly 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 Salesforce trigger and Bitly 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 Deleted Record (Instant, of Selectable Type) trigger
    1. Connect your Salesforce account
    2. Configure timer
    3. Select a Object Type
  3. Configure the List Bitlinks by group action
    1. Connect your Bitly account
    2. Configure Group GUID
    3. Optional- Configure Size
    4. Optional- Configure Page
    5. Optional- Configure Keyword
    6. Optional- Configure Query
    7. Optional- Configure Created before
    8. Optional- Configure Created after
    9. Optional- Configure Modified after
    10. Optional- Select a Archived
    11. Optional- Select a Deeplinks
    12. Optional- Select a Domain deeplinks
    13. Optional- Configure Campaign guid
    14. Optional- Configure Channel guid
    15. Optional- Select a Custom bitlink
    16. Optional- Configure Tags
    17. Optional- Configure Launchpad IDs
    18. Optional- Configure Encoding Login
  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 record of the selected object type is deleted. [See the documentation](https://sforce.co/3msDDEE)
Version:0.1.5
Key:salesforce_rest_api-record-deleted-instant

Salesforce Overview

The Salesforce (REST API) provides a powerful platform for creating and managing customer relationships with a wide array of features like data manipulation, querying, and complex automation. With Pipedream's serverless execution, you can create workflows that automate your sales processes, sync data with other platforms, enhance customer engagement, and trigger actions based on specific events. Dive into Salesforce data, streamline lead management, track customer interactions, and push or pull data to or from Salesforce seamlessly.

Trigger Code

import startCase from "lodash/startCase.js";
import common from "../common/common.mjs";

export default {
  ...common,
  type: "source",
  name: "New Deleted Record (Instant, of Selectable Type)",
  key: "salesforce_rest_api-record-deleted-instant",
  description: "Emit new event when a record of the selected object type is deleted. [See the documentation](https://sforce.co/3msDDEE)",
  version: "0.1.5",
  methods: {
    ...common.methods,
    generateWebhookMeta(data) {
      const nameField = this.getNameField();
      const { Old: oldObject } = data.body;
      const {
        LastModifiedDate: lastModifiedDate,
        Id: id,
        [nameField]: name,
      } = oldObject;
      const entityType = startCase(this.objectType);
      const summary = `${entityType} deleted: ${name}`;
      const ts = Date.parse(lastModifiedDate);
      const compositeId = `${id}-${ts}`;
      return {
        id: compositeId,
        summary,
        ts,
      };
    },
    generateTimerMeta(item) {
      const {
        id,
        deletedDate,
      } = item;
      const entityType = startCase(this.objectType);
      const summary = `${entityType} deleted: ${id}`;
      const ts = Date.parse(deletedDate);
      return {
        id,
        summary,
        ts,
      };
    },
    getEventType() {
      return "deleted";
    },
    async processTimerEvent(eventData) {
      const {
        startTimestamp,
        endTimestamp,
      } = eventData;
      const {
        deletedRecords,
        latestDateCovered,
      } = await this.salesforce.getDeletedForObjectType(
        this.objectType,
        startTimestamp,
        endTimestamp,
      );
      this.setLatestDateCovered(latestDateCovered);

      // When a record is deleted, the `getDeleted` API only shows the ID of the
      // deleted item and the date in which it was deleted.
      deletedRecords.forEach((item) => {
        const meta = this.generateTimerMeta(item);
        this.$emit(item, meta);
      });
    },
  },
};

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
SalesforcesalesforceappThis component uses the Salesforce 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.
timer$.interface.timer

The timer is only used as a fallback if instant event delivery (webhook) is not available.

Object TypeobjectTypestringSelect a value from the drop down menu.

Trigger Authentication

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

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

About Salesforce

Cloud-based customer relationship management (CRM) platform that helps businesses manage sales, marketing, customer support, and other business activities, ultimately aiming to improve customer relationships and streamline operations.

Action

Description:Retrieves all Bitlinks for a given group. [See the docs here](https://dev.bitly.com/api-reference#getBitlinksByGroup)
Version:0.0.2
Key:bitly-list-bitlink-by-group

Bitly Overview

The Bitly API enables you to programmatically shorten URLs, track click rates, and manage link performance metrics. By integrating Bitly with Pipedream, you can automate various tasks around link management and amalgamate Bitly’s capabilities with other services, thereby streamlining digital marketing efforts, enhancing social media strategies, and monitoring engagement through data-driven insights.

Action Code

import { removeNullEntries } from "../../common/utils.mjs";
import bitly from "../../bitly.app.mjs";

export default {
  key: "bitly-list-bitlink-by-group",
  name: "List Bitlinks by group",
  description:
    "Retrieves all Bitlinks for a given group. [See the docs here](https://dev.bitly.com/api-reference#getBitlinksByGroup)",
  version: "0.0.2",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: true,
  },
  type: "action",
  props: {
    bitly,
    groupGuid: {
      type: "string",
      label: "Group GUID",
      description: "A GUID for a Bitly group",
    },
    size: {
      type: "string",
      label: "Size",
      description: "The quantity of items to be be returned",
      optional: true,
      default: "10",
    },
    page: {
      type: "string",
      label: "Page",
      description: "Integer specifying the numbered result at which to start",
      optional: true,
      default: "1",
    },
    keyword: {
      type: "string",
      label: "Keyword",
      description: "Custom keyword to filter on history entries",
      optional: true,
    },
    query: {
      type: "string",
      label: "Query",
      description: "The value that you would like to search",
      optional: true,
    },
    createdBefore: {
      type: "string",
      label: "Created before",
      description: "Timestamp as an integer unix epoch",
      optional: true,
    },
    createdAfter: {
      type: "string",
      label: "Created after",
      description: "Timestamp as an integer unix epoch",
      optional: true,
    },
    modifiedAfter: {
      type: "string",
      label: "Modified after",
      description: "Timestamp as an integer unix epoch",
      optional: true,
    },
    archived: {
      type: "string",
      label: "Archived",
      description: "Whether or not to include archived bitlinks",
      default: "off",
      optional: true,
      options: [
        "on",
        "off",
        "both",
      ],
    },
    deeplinks: {
      type: "string",
      label: "Deeplinks",
      description: "Filter to only Bitlinks that contain deeplinks",
      default: "both",
      optional: true,
      options: [
        "on",
        "off",
        "both",
      ],
    },
    domainDeeplinks: {
      type: "string",
      label: "Domain deeplinks",
      description:
        "Filter to only Bitlinks that contain deeplinks configured with a custom domain",
      default: "both",
      optional: true,
      options: [
        "on",
        "off",
        "both",
      ],
    },
    campaignGuid: {
      type: "string",
      label: "Campaign guid",
      description:
        "Filter to return only links for the given campaign GUID, can be provided",
      optional: true,
    },
    channelGuid: {
      type: "string",
      label: "Channel guid",
      description:
        "Filter to return only links for the given channel GUID, can be provided, overrides all other parameters",
      optional: true,
    },
    customBitlink: {
      type: "string",
      label: "Custom bitlink",
      description: "Filter to only Bitlinks that contain deeplinks",
      default: "both",
      optional: true,
      options: [
        "on",
        "off",
        "both",
      ],
    },
    tags: {
      type: "string[]",
      label: "Tags",
      description: "Filter by given tags",
      optional: true,
    },
    launchpadIds: {
      type: "string[]",
      label: "Launchpad IDs",
      description: "This is an array of strings",
      optional: true,
    },
    encodingLogin: {
      type: "string[]",
      label: "Encoding Login",
      description:
        "Filter by the login of the authenticated user that created the Bitlink. This is an array of strings",
      optional: true,
    },
  },
  async run({ $ }) {
    let next;
    let data = [];
    let result = null;
    let params = removeNullEntries({
      size: this.size,
      page: this.page,
      keyword: this.keyword,
      query: this.query,
      created_before: this.createdBefore,
      created_after: this.createdAfter,
      modified_after: this.modifiedAfter,
      archived: this.archived,
      deeplinks: this.deeplinks,
      domain_deeplinks: this.domainDeeplinks,
      campaign_guid: this.campaignGuid,
      channel_guid: this.channelGuid,
      custom_bitlink: this.customBitlink,
      tags: this.tags,
      launchpad_ids: this.launchpadIds,
      encoding_login: this.encodingLogin,
    });
    do {
      params.page++;
      result = await this.bitly.listBitlinkByGroup(this.groupGuid, params);
      next = result.pagination?.next;
      result?.links?.length && (data = [
        ...data,
        ...result.links,
      ]);
    } while (next);
    $.export("$summary", `Successfully listed ${data.length} bitlinks.`);
    return data;
  },
};

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
BitlybitlyappThis component uses the Bitly app.
Group GUIDgroupGuidstring

A GUID for a Bitly group

Sizesizestring

The quantity of items to be be returned

Pagepagestring

Integer specifying the numbered result at which to start

Keywordkeywordstring

Custom keyword to filter on history entries

Queryquerystring

The value that you would like to search

Created beforecreatedBeforestring

Timestamp as an integer unix epoch

Created aftercreatedAfterstring

Timestamp as an integer unix epoch

Modified aftermodifiedAfterstring

Timestamp as an integer unix epoch

ArchivedarchivedstringSelect a value from the drop down menu:onoffboth
DeeplinksdeeplinksstringSelect a value from the drop down menu:onoffboth
Domain deeplinksdomainDeeplinksstringSelect a value from the drop down menu:onoffboth
Campaign guidcampaignGuidstring

Filter to return only links for the given campaign GUID, can be provided

Channel guidchannelGuidstring

Filter to return only links for the given channel GUID, can be provided, overrides all other parameters

Custom bitlinkcustomBitlinkstringSelect a value from the drop down menu:onoffboth
Tagstagsstring[]

Filter by given tags

Launchpad IDslaunchpadIdsstring[]

This is an array of strings

Encoding LoginencodingLoginstring[]

Filter by the login of the authenticated user that created the Bitlink. This is an array of strings

Action Authentication

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

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

About Bitly

URL shortener

More Ways to Connect Bitly + Salesforce

Shorten a Link with Bitly API on New Outbound Message (Instant) from Salesforce API
Salesforce + Bitly
 
Try it
Shorten a Link with Bitly API on New Updated Field on Record (Instant, of Selectable Type) from Salesforce API
Salesforce + Bitly
 
Try it
Shorten a Link with Bitly API on New Updated Field on Record (of Selectable Type) from Salesforce API
Salesforce + Bitly
 
Try it
Shorten a Link with Bitly API on New Object (Instant, of Selectable Type) from Salesforce (REST API) API
Salesforce + Bitly
 
Try it
Shorten a Link with Bitly API on New Object (of Selectable Type) from Salesforce (REST API) API
Salesforce + Bitly
 
Try it
Case Updated (Instant, of Selectable Type) from the Salesforce API

Emit new event when a case is updated. See the documentation

 
Try it
Email Template Updated (Instant, of Selectable Type) from the Salesforce API

Emit new event when an email template is updated. See the documentation

 
Try it
Knowledge Article Updated (Instant, of Selectable Type) from the Salesforce API

Emit new event when a knowledge article is updated. See the documentation

 
Try it
New Case (Instant, of Selectable Type) from the Salesforce API

Emit new event when a case is created. See the documentation

 
Try it
New Deleted Record (Instant, of Selectable Type) from the Salesforce API

Emit new event when a record of the selected object type is deleted. See the documentation

 
Try it
Add Contact to Campaign with the Salesforce API

Adds an existing contact to an existing campaign. See the documentation

 
Try it
Add Lead to Campaign with the Salesforce API

Adds an existing lead to an existing campaign. See the documentation

 
Try it
Convert SOAP XML Object to JSON with the Salesforce API

Converts a SOAP XML Object received from Salesforce to JSON

 
Try it
Create Account with the Salesforce API

Creates a Salesforce account. See the documentation

 
Try it
Create Accounts (Batch) with the Salesforce API

Create multiple Accounts in Salesforce using Bulk API 2.0. 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.