Salesforce (REST API)

Web services API for interacting with Salesforce

Go to site
Explore
/
Apps
/
Salesforce (REST API)

Salesforce (REST API) API Integrations

Build and run workflows using the Salesforce (REST API) API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

return await require("@pipedreamhq/platform").axios(this, {
  url: `${auths.salesforce_rest_api.instance_url}/services/data/v20.0/sobjects/Account/`,
  headers: {
    Authorization: `Bearer ${auths.salesforce_rest_api.oauth_access_token}`,
  },
})
Create Account

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

 
Try it
Create Contact

Creates a Contact, which is a person associated with an account.

 
Try it
Create Attachment

Creates an attachment, which represents a file that a User has uploaded and attached to a parent object.

 
Try it
Create Campaign

Creates a marketing campaign, such as a direct mail promotion, webinar, or trade show.

 
Try it
Create Campaign Member

Creatas a campaign member, which represents the association between a campaign and either a lead or a contact.

 
Try it

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:

OAuth Request Configurations:
  1. authorization
    GET{{custom_fields.instancetype}}/services/oauth2/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POST{{custom_fields.instancetype}}/services/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POST{{custom_fields.instancetype}}/services/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}