← Salesforce (REST API)

New Object (Instant, of Selectable Type) from Salesforce (REST API) API

Pipedream makes it easy to connect APIs for Salesforce (REST API) and 900+ other apps remarkably fast.

Trigger workflow on
New Object (Instant, of Selectable Type) from the Salesforce (REST API) API
Next, do this
Connect to 900+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Object (Instant, of Selectable Type) with Salesforce (REST API) API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Object (Instant, of Selectable Type) trigger
    1. Connect your Salesforce (REST API) account
    2. Select a Object Type
  2. Add steps to connect to 900+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Object (Instant, of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Object (Instant, of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + Google Sheets
 
Try it
Get Film with SWAPI - Star Wars API on New Object (Instant, of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Object (Instant, of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + Airtable
 
Try it
Custom Request with HTTP / Webhook API on New Object (Instant, of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + HTTP / Webhook
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is 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.

New Object (Instant, of Selectable Type) on Salesforce (REST API)
Description:Emit new event immediately after an object of arbitrary type (selected as an input parameter by the user) is created
Version:0.1.1
Key:salesforce_rest_api-new-object-instant

Code

import startCase from "lodash/startCase.js";

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

export default {
  ...common,
  type: "source",
  name: "New Object (Instant, of Selectable Type)",
  key: "salesforce_rest_api-new-object-instant",
  description: "Emit new event immediately after an object of arbitrary type (selected as an input parameter by the user) is created",
  version: "0.1.1",
  methods: {
    ...common.methods,
    generateMeta(data) {
      const nameField = this.getNameField();
      const { New: newObject } = data.body;
      const {
        CreatedDate: createdDate,
        Id: id,
        [nameField]: name,
      } = newObject;
      const entityType = startCase(this.objectType).toLowerCase();
      const summary = `New ${entityType} created: ${name}`;
      const ts = Date.parse(createdDate);
      return {
        id,
        summary,
        ts,
      };
    },
    getEventType() {
      return "new";
    },
  },
};

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
Salesforce (REST API)salesforceappThis component uses the Salesforce (REST API) app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
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.
Object TypeobjectTypestringSelect a value from the drop down menu.

Authentication

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

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

About Salesforce (REST API)

Web services API for interacting with Salesforce

More Ways to Use Salesforce (REST API)

Triggers

New Deleted Object (Instant, of Selectable Type) from the Salesforce (REST API) API

Emit new event immediately after an object of arbitrary type (selected as an input parameter by the user) is deleted

 
Try it
New Deleted Object (of Selectable Type) from the Salesforce (REST API) API

Emit new event (at regular intervals) when an object of arbitrary type (selected as an input parameter by the user) is deleted. See the docs for more information.

 
Try it
New Object (of Selectable Type) from the Salesforce (REST API) API

Emit new event (at regular intervals) when an object of arbitrary type (selected as an input parameter by the user) is created. See the docs for more information.

 
Try it
New Outbound Message (Instant) from the Salesforce (REST API) API

Emit new event when a new outbound message is received in Salesforce. See Salesforce's guide on setting up Outbound Messaging. Set the Outbound Message's Endpoint URL to the endpoint of the created source. The "Send Session ID" option must be enabled for validating outbound messages from Salesforce.

 
Try it
New Updated Field on Record (Instant, of Selectable Type) from the Salesforce (REST API) API

Emit new event immediately after a field of your choosing is updated on any record of a specified Salesforce object

 
Try it

Actions

Add Contact to Campaign with the Salesforce (REST API) API

Adds an existing contact to an existing campaign. See Event SObject and Create Record

 
Try it
Add Lead to Campaign with the Salesforce (REST API) API

Adds an existing lead to an existing campaign. See Event SObject and Create Record

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

Converts a SOAP XML Object received from Salesforce to JSON

 
Try it
Create Account with the Salesforce (REST API) API

Creates a Salesforce account, representing an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners). See Account SObject and Create Record

 
Try it
Create Attachment with the Salesforce (REST API) API

Creates an attachment, which represents a file that a User has uploaded and attached to a parent object. See Attachment SObject and Create Record

 
Try it