MESA Docs
MESA Homepage
  • Welcome to MESA
    • Installing MESA
    • Dashboard
    • Core Concepts
    • Getting Help
  • Templates
    • Template Library
    • Installing & Editing
  • Workflow Builder
    • Triggers
    • Actions
    • Fields
      • Variables
      • Formatting Variables
      • Liquid Templating
    • Testing
  • Workflow Activity
    • Tasks
      • Troubleshooting
      • Replay
    • Logs
    • Time Travel
  • Best Practices
    • Set Titles & Descriptions
    • Track Time Saved
    • Enable Failure Notifications
    • Avoid Infinite Loops
  • Going Further
    • Plans & Billing
    • Notifications
    • Credentials
    • Understanding the Queue
    • Export & Import Workflows
    • Platform Thresholds & Limits
  • Built-in Tools
    • Activity Log
    • AI
    • API
    • Approval
    • MCP
    • Custom Code
      • Libraries
        • MESA SDK
        • Filter
        • Loop
        • Transform
        • oAuth
        • Shopify
        • ShopifyGraphql
      • FAQ
    • Data
    • Delay
    • Email
    • Filter
    • Form
      • Configure
      • Going Further
      • Technical Notes
    • FTP
    • Image
    • Loop
    • Package Tracking
    • Paths
    • Schedule
    • Scraper
    • SMS
    • Transform
    • Virtual Output
    • Weather
    • Web Request
    • Webhook
  • Apps
    • Airtable
    • Amazon S3
    • Asana
    • Blog Studio
    • ChannelApe
    • Claude
    • ChatGPT
    • Dall-E 2
    • Delighted
    • Digital Humani
    • Discord
    • DocuSign
    • Dropbox
    • Etsy
    • Facebook
    • Fera.ai
    • Gatsby
    • Gmail
      • Send Email
    • Google Analytics 4
    • Google Analytics UA
    • Google Calendar
    • Google Drive
    • Google Forms
    • Google Sheets
      • Add Row
      • Query Rows
      • Update Row
      • Row Created
      • Row Updated (Advanced)
      • Creating New Spreadsheets
      • Technical Notes
    • Gorgias
    • Govalo
    • Help Scout
    • Hubspot
    • Infinite Options
    • Intercom
    • IPDetective
    • Judge.me
    • Katana
    • Klaviyo
      • API Deprecation
    • Loop Returns
    • Loyalty Lion
    • Mailchimp
    • Mailgun
    • Mandrill
    • Mantle
    • Notion
    • Odoo
    • Omnisend
    • Page Studio
    • Pinterest
    • Printful
    • PrintNode
    • QuickBooks
    • Rebuy
    • Recharge
    • Remove.bg
    • Returnly
    • Rivo
    • Salesforce
    • Segment
    • Sendlane
    • Shippo
    • ShipStation
    • Shopify
      • Technical Notes
        • Configuring Your Payload
        • Modifying and Filtering Get Lists
        • Parameters
        • Error Codes
        • Accuracy of orders_count Variable
        • Accuracy of Count Products Action
        • Using the Gift Cards API
        • How to Find a Specific Record in the Testing Interface
        • Order, Customer, and Product Updated Trigger Frequency
    • Shopify Flow
    • Shopify Plus
    • Shopify Retail POS
    • Skio Subscriptions
    • Slack
    • Smartrr
    • Smile.io
    • Square
      • Updating Inventory
      • Frequently Asked Questions
    • Stamped.io
    • Stripe
    • Thanks.io
    • TikTok
    • Tracktor
    • Twilio
    • Uploadery
    • Wonderment
    • Xero
    • Yotpo
    • Yotpo Loyalty
  • For developers
    • Admin API
    • Command Line Interface
    • Embedding templates
  • Frequently asked questions
    • Why isn't the log search returning logs with the search I entered?
    • Is it possible to handle errors or retry steps?
    • How do I handle a failed task?
    • Does MESA auto-save workflows?
    • Can I Use Apps That Don't Have a MESA Connector?
    • Why is my workflow action adding the same data each time it occurs?
    • How do I cancel automations that are already in progress?
    • How do I cancel my MESA subscription or 7-day trial?
    • Can you import code from npm in custom code?
    • Do you have a Slack Community?
Powered by GitBook
On this page
  • Configure
  • Retrieve Fields
  • Technical Notes
  • Why can't I set the amount on an opportunity?
  • Credential error codes

Was this helpful?

  1. Apps

Salesforce

PreviousRivoNextSegment

Last updated 1 month ago

Was this helpful?

Authentication

When you're setting up your first workflow with Salesforce, you will need to create a in order to connect MESA with Salesforce.

1

Log in to Salesforce, then click the Setup button (gear icon in the top right). If a menu is displayed, then click Setup.

2

In the left hand menu, navigate to Apps and App Manager.

3

Then click on New Connected App.

If prompted, click Create a Connected App and continue.

4

Enter MESA for the connected app under Connected App Name. The API Name field will then auto-populate.

5

Enter a valid email for Contact Email.

6

Ensure Enable OAuth Settings is checked.

7

Then for Callback URL, enter:

8

Then select all items under Available OAuth Scopes and hit the right arrow under Add to move all of them to Selected OAuth Scopes.

9

By default, 3 settings will be selected automatically. Ensure that only the Require Secret for Web Server Flow and Introspect All Tokens checkboxes are selected from the list.

10

Then hit the Save button at the top.

11

After saving, you may see a warning that changes can take up to 10 minutes to take effect. If so, click continue.

12

Once you are redirected back to view the app's details, click on Manage at the top of the page.

13

Click on Edit Policies next to your app's name.

14

Under oAuth Policies, ensure that your Refresh Token Policy is set to: Refresh token is valid until revoked.

15

Once you have checked your app policy settings, Save, and then navigate to Apps and App Manager again. Click on the arrow on the right hand side to View your app.

16

Under API (Enable OAuth Settings), click on the Manage Consumer Details button next to Consumer Key and Secret. You may get prompted to sign in again so please do so.

17

For this next step, you are going to copy and paste these values from the Salesforce screen into your MESA workflow. In a new tab on your browser, open your to proceed.

18

In Salesforce, click on the Consumer Key button and paste the copied value into the Client ID field of your MESA Salesforce step's Authentication menu.

19

Do the same for Salesforce's Consumer Secret and paste it into the "Client Secret" field of your MESA Salesforce step's Authentication menu.

20

For MESA's Authorization URL field, enter:

21

For MESA's Token URL field, enter:

If you are connecting to a Salesforce sandbox, you will need to: - Replace the Authorization URL with: - Replace the Token URL with:

22

Click Connect with Salesforce. You may be asked to login to your Salesforce account. Once logged on, you will get a prompt asking for access. Click Allow.

23

You will be taken back to MESA, with a new Salesforce credential created.

You have now finished setting up your Salesforce credential.

Salesforce plans that support API access are: Enterprise, Unlimited, Developer and Performance.

Configure

Retrieve Fields

Click the Retrieve Fields button to pull in the current fields associated with your Salesforce action.

If you’ve made updates to your fields in Salesforce you will want to click the Retrieve Fields button to pull in the latest changes.

Technical Notes

Why can't I set the amount on an opportunity?

Credential error codes

  • If you experience any issues or see this error error=invalid_client_id&error_description=client%20identifier%20invalid when creating a Salesforce credential, please make sure that your Salesforce Client ID and Secret were copied over correctly and that your Salesforce App has the correct Callback URL.

  • If you experience any issues or see this error error=redirect_url_mismatch&error_description=redirect_url&20must%20match%20configuration when creating a Salesforce credential, please make sure you have added the Callback URL in the custom app while creating it in Salesforce.

If an opportunity includes products, the amount on the opportunity will be the total of its related products. For more information, please refer to .

View Salesforce templates and tutorials !

this Salesforce article
here
Credential
https://app.getmesa.com/apps/mesa/oauth/redirect-token
Salesforce Trigger or Action
https://login.salesforce.com/services/oauth2/authorize
https://login.salesforce.com/services/oauth2/token
https://test.salesforce.com/services/oauth2/authorize
https://test.salesforce.com/services/oauth2/token