npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pipedream/salesforce_rest_api

v1.2.1

Published

Pipedream Salesforce (REST API) Components

Downloads

51

Readme

Getting Started

You can install the Pipedream Salesforce app in the Accounts section of your Pipedream account, or directly in a workflow.

Prerequisite: Salesforce Edition with API Access

In order to use this application, you must be on a Salesforce Edition that has API Access, and API Access must be enabled. See here for more details.

Salesforce Editions with API Access

  • Enterprise Edition
  • Unlimited Edition
  • Developer Edition
  • Performance Edition
  • Professional Edition (API access available as an add-on)

Enabling API Access on Salesforce

Your Salesforce user needs a System Administrator profile in order to enable API access. If you don't have this on your Salesforce Profile, ask your System Administrator to enable API Access for your user.

The most straightforward way to add these permissions is to create a new Permission Set in Salesforce, and to add it to the user once created.

Here is a step-by-step on how to do this:

Create New Permission Set

  1. Navigate to your Salesforce instance, and click the Setup wheel in the top-right corner.
  2. Under the Administration tab on the lefthand sidebar, click Users --> Permission Sets.
  3. On the Permissions Set page, click New.
  4. Create a new permission set, give it a label, API name, and description. Example: Label: Pipedream API Access API Name: Pipedream Description: Adds a set of permissions required for Pipedream.

Add Permissions

  1. Now that the permission set is created, navigate to System Permissions.
  1. From System Permissions, click Edit.
  1. Select the following permission, and click Save.
  • API Enabled

If you'd like to utilize Pipedream's webhook triggers, you will need to add the following permissions to the permissions set as well:

  • Apex REST Services
  • Author Apex
  • View Roles and Role Hierarchy
  • Modify Metadata Through Metadata API Functions
  • View Setup and Configuration
  1. The list of added permissions (6) should look like this, and click save again.

Add Permission Set to User

  1. From the newly created Permission Set, click Manage Assignments, then Add Assignment.
  1. Select the user you'd like to assign this permission set to, and click Assign. The user should now show up under Current Assignments.
  1. You should now be able to use the Salesforce integration along with the webhook triggers if you configured the required permissions above.

Troubleshooting

Unable to connect your account

If you're having issues connecting your Salesforce account on Pipedream, please ensure that IP Restrictions are not enabled for Pipedream. To learn more about what this means, please see the Salesforce documentation here.

To modify these settings:

  1. Navigate to Salesforce Setup.
  2. Under Apps, click Connected Apps, then Connected Apps OAuth Usage.
  1. If Pipedream is not yet installed, click Install, otherwise click Manage App Policies.
  2. Click Edit Policies.
  3. Under OAuth Policies, you should see the setting IP Relaxation. Set this to Relax IP Restrictions.

Instant trigger is not working

If you happen to stumble on the error: UNKNOWN_EXCEPTION: admin operation already in progress when creating an Instant trigger, you can follow the steps below to use the Salesforce Flow Builder to be able to use webhooks with Pipedream. This is a known error in Salesforce.

  1. Create a New Workflow on Pipedream and add a HTTP trigger.
  2. Login and go to your Salesforce Setup Menu Page.
  3. On the left hand Quick Find Bar, search for Outbound Messages in Process Automation -> Workflow Actions.
  4. Click on the New Outbound Message button in the middle of the page.
  5. Select the Object Type and click Next.
  6. Fill in the Name, Unique Name, and Available Fields to Send fields in the form. On the Endpoint URL field, paste the URL endpoint generated by the HTTP trigger created earlier and then click Save.
  7. Back to the left hand Quick Find Bar, search for Flows in Process Automation.
  8. Click on New Flow button on the upper right hand corner and then select on Record-Trigged Flow and click on Create.
  9. Select the same Object Type as before and select the appropriate flow trigger.
  10. Optionally set Entry Conditions, keep Actions and Related Records selected, and click on Done.
  11. Click on the plus sign below the newly created trigger and click on Action.
  12. Search for Outbound Message and on the search bar select the trigger that was created previously.
  13. Insert a Label and an API Name and then click on Done.
  14. Save the flow by clicking on the Save button, insert a Flow Label and a Flow API Name and then click on Activate next to the Save button.
  15. Back to the Pipedream Workflow, create a new step with the Salesforce Convert SOAP Object action.
  16. In the XML Soap Object field, select the path from the trigger or type in {{steps.trigger.event.body}}.
  17. That's it! You can now deploy the workflow and you will receive instant updates from Salesforce.