Automating provisioning via Salesforce
Orb's sales automation integration brings the full power of Orb's APIs natively into Salesforce. This integration allows your sales operation team to build customizable, automated provisioning workflows via Salesforce Flow while leveraging the flexibility the Orb API provides. With this integration, you can automate provisioning an Orb subscription upon opportunity close, enabling your sales reps to stay within Salesforce and reducing manual work needed post-contract.
Installation
Orb's Salesforce application is distributed as a Salesforce Managed Package. Reach out to the Orb team for a direct installation link.
Installation of the package should be done by a Salesforce Admin.
- Navigate to the installation link provided, click continue, and install the package for admins only.
- Once the package is installed, navigate to the App Launcher and search for the Orb app.
Configuration
On the configuration page for the Orb application, you'll be asked to provide two fields:
- API Key: This is an Orb API Key that is used to fetch resources from the Orb API. While any valid API Key for your account can be used, we recommend provisioning a specific Salesforce API key for this purpose and idenitifying it appropriately. To provision an Orb API key, visit the API Keys tab in the Settings page of the Orb dashboard.
- External Customer ID field: Orb's sync ties together a Customer in Orb with an Account in Salesforce. If you already have a custom field on your Salesforce Account object that corresponds to the
external_customer_id
in Orb (which is often the internal workspace ID of the account), you can select it in this dropdown. This will allow the sync process to automatically map the Account, so no additional work is needed to associate each account to an Orb customer. By default, you will still be able to fill in theOrb External Customer ID
or theOrb Customer ID
field on any Account to create the associaiton.
Components
As part of the package, we include invocable actions (Apex) for
- Creating Orb customers
- Creating Orb subscriptions
We also include Apex classes for all associated data models. Combined, these can be used to build a Salesforce Flow to automatically provision Orb customers and subscriptions. Salesforce Flow requires no-code to create.
The integration is flexible enough to fit into your existing Salesforce process. Whether you use native Salesforce CPQ, Salesforce Opportunities with custom fields, or something in between, this integration can fit in and automate provisioning Orb customers and subscriptions for you.
Examples
Below are videos that show how you might set up a Salesforce Flow with this integration. We also include a Github repo that has an example Flow fully set up, which you can import separately into your project as a starting point.
- Create an Orb subscription and customer from an Opportunity
- Create an Orb customer with a billing address
- Create an Orb subscription with custom pricing
High-level, the steps to automate creating a subscription and customer from an Opportunity are:
- Create a new record triggered Flow. Make sure to select the
Include a Run Asynchronously path...
checkbox at the bottom when creating the Flow. This allows you to use the Orb actions. - Configure the flow to run when an Opportunity object is transitioned to the Closed/Won stage.
- Under the
Run Asynchronously
path, add an Action and search for theCreate Orb Customer
action
- Fill in appropriate fields from the opportunity, account, and other built in or custom fields.
- You can also create an Orb object by assigning a variable, to pass in more complex fields. For example, to create an
Address
variable, create anAssignment
with a data type ofApex-Defined
. Search for thewithorb__OrbAddressInput
Apex class, and fill in fields as needed. - You can use this variable as input to the
Create Orb Customer
action.
- You can also create an Orb object by assigning a variable, to pass in more complex fields. For example, to create an
- Next, add the
Create Orb Subscription
action. Similar to customer, fill in the appropriate fields.- To support custom pricing per customer, assign a variable of type
withorb__OrbPriceOverride
and fill in appropriate fields. This data is normally stored on the Opportunity Line Item.
- To support custom pricing per customer, assign a variable of type
- Save and activate the Flow. To test it, transition an opportunity to Closed/Won.
For a detailed walkthrough, we recommend watching the video.