Salesforce (REST API)

Web services API for interacting with Salesforce

Integrate the Salesforce (REST API) API with the Discord Webhook API

Setup the Salesforce (REST API) API trigger to run a workflow which integrates with the Discord Webhook API. Pipedream's integration platform allows you to integrate Salesforce (REST API) and Discord Webhook remarkably fast. Free for developers.

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
Send Message with Discord Webhook API on New Object (of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + Discord Webhook
 
Try it
Send Message with Discord Webhook API on New Outbound Message (Instant) from Salesforce (REST API) API
Salesforce (REST API) + Discord Webhook
 
Try it
Send Message with Discord Webhook API on Object Deleted (Instant, of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + Discord Webhook
 
Try it
Send Message with Discord Webhook API on Object Deleted (of Selectable Type) from Salesforce (REST API) API
Salesforce (REST API) + Discord Webhook
 
Try it
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 (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 created

 
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
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
Send Message with the Discord Webhook API

Send a simple message to a Discord channel

 
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
Send Message (Advanced) with the Discord Webhook API

Send a simple or structured message (using embeds) to a Discord channel

 
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

Connect Salesforce (REST API)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    salesforce_rest_api: {
      type: "app",
      app: "salesforce_rest_api",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.salesforce_rest_api.$auth.instancetype}/services/oauth2/userinfo`,
      headers: {
        Authorization: `Bearer ${this.salesforce_rest_api.$auth.oauth_access_token}`,
      },
    })
  },
})

Overview of Discord Webhook

With Discord's Webhook API, you can create applications that send messages to
Discord channels automatically. For example, you could create a bot that sends
a message to a channel every time a new blog post is published, or a message to
a channel when someone joins your Discord server.

Here are some ideas for what you could build using the Discord Webhook API:

  • A bot that sends a message to a channel when a new blog post is published
  • A bot that sends a message to a channel when someone joins your Discord
    server
  • A bot that sends a message to a channel when a new product is added to your
    online store

Connect Discord Webhook

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord_webhook: {
      type: "app",
      app: "discord_webhook",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        Authorization: `Bearer ${this.discord_webhook.$auth.oauth_access_token}`,
      },
    })
  },
})