LogoLogo
Using BunnyDeveloper
  • Getting started
    • Welcome to Bunny
    • Superdesk - Sample SaaS Co.
  • Product tour
    • Admin UI
      • Tables
      • Forms
      • Search (beta)
    • Product catalog
      • What's a product?
      • Product quick start
      • Products
      • Features
      • Feature editor
      • Plans
      • Price lists
      • Charges
      • Coupons
      • Categories
      • Platforms
      • Tenants
    • Customer management
      • Accounts
      • Contacts
      • Deals
      • Subscriptions
      • Leads
      • Campaigns
    • Subscription management
      • What is a subscription?
      • Subscription states
      • Trial subscriptions
    • Quoting
      • What is a quote?
      • Quote states
      • Quote builder
      • Building a quote
      • Sharing a quote
      • Applying a quote
      • Undoing a quote
      • Amendments
      • Renewals
      • Cancellations
    • Approval workflows
      • How approvals work
      • Approvers
      • Approval rules
    • Customer portal
      • Viewing quotes
      • Invoice history
      • Paying invoices
      • Subscriptions
    • Billing
      • Bill runs
      • Invoices
      • Credit notes
      • Price adjustments
      • Proration
      • Billing day
      • Currencies
      • Sales tax and VAT
      • Payment methods and types
      • Payment plugins
      • Usage records
      • Revenue movements
    • Entities
      • Invoices
      • Quotes
      • Branding
    • Accounting
      • GL mappings
      • Journal entries
      • Revenue recognition
      • Intracom VAT summary
    • Workflows
    • Analytics
      • Using analytics
      • Trials
      • Monthly Recurring Revenue
      • Collections
    • Access control
      • Users
      • Roles
      • Groups
      • API clients
    • Settings
      • Company
      • Outbox
      • Jobs
      • Security
      • Single sign-on
  • Advanced guides
    • Integrations
      • Airbyte
      • Avalara AvaTax
      • Docusign
      • Dropbox Sign
      • HubSpot
      • Mailchimp
      • QuickBooks
      • PandaDoc
      • Salesforce
      • SendGrid
      • Slack
      • Stripe
      • Xero
    • Single sign-on
    • SCIM user provisioning
  • Best practices
    • Pricing by number of users
    • Committed + overage pricing
  • Release notes
    • April 22, 2025 release
    • Mar 28, 2025 release
    • Mar 13, 2025 release
    • Feb 27, 2025 release
    • Feb 13, 2025 release
    • Jan 24, 2025 release
    • Jan 16, 2025 release
    • 2024 Releases
      • Dec 19, 2024 release
      • Dec 12, 2024 release
      • Dec 9, 2024 release
      • Nov 21, 2024 release
      • Nov 14, 2024 release
      • Nov 1, 2024 release
      • Oct 25, 2024 release
  • Legal
    • Terms of service
    • Privacy
    • Subprocessors
Powered by GitBook
On this page
  • Requirements
  • Installation instructions
  • 1 - Install the Salesforce Sync Plugin
  • 2 - Create a Bunny API client
  • 3 - Install Bunny CPQ for Salesforce
  • 4 - Create an Auth Provider
  • 5 - Create an External Credential
  • 6 - Create a Named Credential
  • 7 - Create a Permission Set
  • 8 - Assign users
  • 9 - Update the Bunny custom setting
  • 10 - Add Bunny to the Salesforce UI
  • 12 - Add the Bunny Quotes tab
  • 13 - Add the New Quote button
  • Testing
  • Troubleshooting

Was this helpful?

  1. Advanced guides
  2. Integrations

Salesforce

Bunny's Salesforce integration synchronizes opportunities between Salesforce and Bunny.

PreviousPandaDocNextSendGrid

Last updated 9 months ago

Was this helpful?

Requirements

  • Admin & API access to Salesforce Enterprise, Salesforce Unlimited, or a ​paid upgrade to Salesforce Professional with Rest API access added.

  • Admin access to a Bunny instance.

Installation instructions

1 - Install the Salesforce Sync Plugin

In your Bunny instance install the Salesforce Sync plugin by going to the menu for Other > Plugins. This will allow Bunny to access the Salesforce API and keep Opportunities updated as quotes are created and shared from Bunny.

  • Click the download icon to install the plugin

  • Switch the Enabled slider to on and then Save the plugin

  • Finally click the Authorize with App button to authenticate using your Salesforce account.

2 - Create a Bunny API client

In the Bunny instance Create an API Client with the Authorization Code Grant enabled and the Redirect URI set to:

https://<SALESFORCE DOMAIN>/services/authcallback/Bunny

Set the Scopes to standard:read, standard:write and openid.

After clicking save a Client ID and Client Secret will be revealed. Take note of these values as you will be using them in Step 4.

3 - Install Bunny CPQ for Salesforce

Install the Bunny CPQ for Salesforce app from the AppExchange or installation url.

4 - Create an Auth Provider

From the Admin Setup area in Salesforce search for Auth Providers and then create a new Auth Provider.

  • Set the provider type as OpenID Connect.

  • Set the Name and URL Suffix to Bunny.

  • Enter the Client ID from Step 1 as the Consumer Key.

  • Enter the Client Secret from Step 1 as the Consumer Secret.

  • Set the Authorize Endpoint URL to

    • https://<BUNNY_SUBDOMAIN>.bunny.com/app/authorize

  • Set the Token Endpoint URL to

    • https://<BUNNY_SUBDOMAIN>.bunny.com/oauth/token

  • Set the Default Scopes to standard:read standard:write openid

  • Uncheck the "Use Proof Key for Code Exchange (PKCE) Extension" option.

  • Save

5 - Create an External Credential

From the Admin Setup area in Salesforce search for Named Credentials and select it. Two tabs will appear for Named Credentials and External Credentials.

  • Select the External Credentials tab and create a new external credential.

  • Set the label and the name as Bunny.

  • Set the Authentication Protocol as OAuth 2.0.

  • Set the Authentication Flow Type as Browser Flow.

  • Leave the Scope empty.

  • Set the Authentication Provider as Bunny.

  • Save

  • Scroll down to the Principals section and add a new one.

  • Set the Parameter Name to BunnyAPI

  • Set the Identity Type as Named Principal.

  • Leave the Scope empty.

  • Save.

  • A principal record will be created. Click on the Actions for that record and select Authenticate.

  • Authenticate with Bunny and then click to Approve the authorization request.

6 - Create a Named Credential

Select the Named Credentials tab and create a new named credential.

  • Set the Label and Name to BunnyAPI.

  • Set the URL to https://<BUNNY_SUBDOMAIN>.bunny.com/graphql

  • Set the External Credential to Bunny.

7 - Create a Permission Set

From the Admin Setup area in Salesforce search for Permission Sets and create a new permission set.

  • Set the Label to Bunny API.

  • Save

  • In the Apps section of the new Bunny API Permission Set select External Credential Principal Access.

  • Edit and add BunnyAPI to the Enabled list

  • Save

8 - Assign users

From the Admin Setup area in Salesforce search for Users.

  • Select the users that you want to grant access to Bunny CPQ and assign the Bunny API and Bunny User permission sets to those users.

9 - Update the Bunny custom setting

From the Admin Setup area in Salesforce search for Custom Settings.

  • Click to Manage the BunnySettings record.

  • Under Default Organization Level Value select New and then set your Bunny subdomain as the Subdomain value.

  • Save

10 - Add Bunny to the Salesforce UI

The final stage of the installation process is to add the Bunny components for creating and displaying Quotes to an Opportunity record in Salesforce.

Open an Opportunity record in Salesforce then click the cog in the top right of the screen and select Edit Page.

12 - Add the Bunny Quotes tab

In the main part of the screen you will have a set of tabs. We will add a new tab to that set called Quotes.

  • Click in the region of the tabs

  • On the right side you will see the tabs listed.

  • Click to Add Tab

  • Select Custom from the list that appears and set the label to Quotes.

13 - Add the New Quote button

Now we will add the New Quote button. The location of the button depends the version and layout of your Salesforce instance but often is located in a Highlights Panel.

  • Click to Add Action and then select the New Quote quick action.

  • We recommend moving this new action to be higher up the list so that it is always visible when looking at an Opportunity record.

  • Save and activate the layout for all users.

Testing

The installation is now complete and it's time to test the integration. Switch back to the Sales area in Salesforce and select an Opportunity record. Make sure that the Account that owns the opportunity has at least one contact with a name and email address supplied.

  • Select the Quotes tab and you will not see any quotes for this opportunity.

  • Click the New Quote button and you will be transferred over to Bunny to build a quote.

  • Once the quote is shared it will be synced back to Salesforce with the Opportunity value updated with the total amount of the quote.

Troubleshooting

When viewing the Quotes tab I get an error

“We couldn't access the credential(s). You might not have the required permissions, or the external credential "BunnyAPI" might not exist.”

This error occurs when the user viewing the tab does not have the Bunny User and Bunny API permission sets assigned.

When Authenticating the External Credential I get an “Authorization failed” error message

This can happen when the Callback URL on the Auth Provider does not match the Redirect URI that was set on the Bunny API Client. Check your Bunny Auth Provider in Salesforce and copy the Callback URL over to Bunny.

https://{{SALESFORCE_INSTANCE_URL}}/packagingSetupUI/ipLanding.app?apvId=04tDn000000W2EvIAK