Skip to content

Connecting to a Salesforce Sandbox environment [Classic]

A Salesforce Sandbox environment is a copy of your production environment. You can use a Salesforce Sandbox environment to test the OnceHub connector for Salesforce without compromising the data and applications in your production environment.

OnceHub enables you to connect to a Salesforce Sandbox environment and keep your Salesforce connector setup when you switch to your production environment.

In this article, you’ll learn how to connect the OnceHub connector for Salesforce to your Salesforce Sandbox environment and how to switch to your production account after you finish testing.

<script id="snippet-prepend">
$(function(){
/*disable in widget*/
if($('.w-documentation-article').length === 0){
var ToC =
"&lt;nav role='navigation' class='table-of-contents toc-top'><h4>In this article:" + "<ul>";
var el, title, link, header;
//Define the heading levels you want to use in ascending order. Can add extra or remove unneeded.
$(".hg-article-body h1, .hg-article-body h2, .hg-article-body h3, .hg-article-body h4").each(function() &#123;
el = $(this);
title = el.text();
if(title != '')&#123;
anchorTitle = el.text().replace(/([~!@#$%^&*()_+=`&#123;&#125;\[\]\|\\:;'&lt;>,.\/\? ])+/g, '-').toLowerCase();
link = "#" + anchorTitle;
//Set all headers to a 0-nesting level.
header = 'header-nesting-0';
//Adjust header-nesting layers so that they point to the correct html tag. header-nesting-1 should match the second .hg-article-body h# listed above; header-nesting-2 should match the third, etc.
if($(this).is('h2'))&#123;
header = 'header-nesting-1';
&#125;else if($(this).is('h3'))&#123;
header = 'header-nesting-2'
&#125;
el.html('<a id="'+anchorTitle+'" class="toc-anchor">' + el.html());
newLine =
"<li class='"+header+"'>" +
"<a class='article-anchor' href='" + link + "'>" +
title +
"" +
"";
ToC += newLine;
&#125;
&#125;);
ToC +=
"" +
"";
$("#snippet-prepend").before(ToC);
&#125;
&#125;);
&lt;/script>
&lt;style>
/* CSS to style the TOC as it displays and the auto-created anchors
.toc-top styles the box for the TOC; adjust styles here to tweak look and feel */
.toc-top &#123;
background-color: #FAFAFA; /* set to #fff or delete entirely for no background */
border: 1px solid #C8C8C8; /* adjust the color hex here to change border color */
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
margin-top: 24px;
margin-bottom: 36px;
min-height: 20px;
padding: 13px 20px;
max-width: 75%;
&#125;
.toc-top h4 &#123;
font-size: 18px;
line-height: 26px;
margin: 0 0 8px;
font-weight: 400;
&#125;
.toc-top ul &#123;
padding: 0 0 0 15px !important;
margin-bottom: 0;
&#125;
.toc-top > ul &#123;
margin-bottom: 13px!important;
&#125;
.toc-anchor &#123;
display: block;
height: 90px;
margin-top: -90px;
visibility: hidden;
&#125;
/* Set the indentation for the nesting levels. May need to be edited to match changes above. Increase or decrease the margin-left to get your desired level of indentation. */
.header-nesting-1 &#123;
margin-left: 14px;
&#125;
.header-nesting-1:before &#123;
background-image: url(https://dyzz9obi78pm5.cloudfront.net/app/image/id/5d31bcc88e121c9b25ba22c4/n/bulletv2.svg)!important;
&#125;
.header-nesting-2 &#123;
margin-left: 28px;
&#125;
.header-nesting-2:before &#123;
background-image: url(https://dyzz9obi78pm5.cloudfront.net/app/image/id/5d31be536e121cf22b0cc6ae/n/bulletv3.svg)!important;
&#125;
&lt;/style>

To connect OnceHub to a Sandbox environment, you must be:

You do not need an assigned product license to install and update Salesforce account settings. Learn more

To connect to OnceHub, the Salesforce API User must have the following characteristics in your Salesforce Sandbox environment:

  • The User License field must be Salesforce. The Salesforce User License is designed for Users who require full access to standard CRM and Force.com AppExchange apps. Users with this User License are entitled to access the OnceHub connector for Salesforce managed application.
  • The Profile field must be System Administrator. The System Administrator profile must include the API Enabled profile permission and the ModifyAllData permission to ensure the access to the OnceHub connector for Salesforce connected app.

Connecting to the Salesforce Sandbox environment

Section titled “Connecting to the Salesforce Sandbox environment”

ImportantIf OnceHub automatically logged you to your Salesforce production environment, you must disconnect and log out of Salesforce before trying to connect to the API User again.

  1. &lt;style type="text/css">
    p.p1 &#123;margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'&#125;
    &lt;/style>

    Click the gear icon located in the top-right corner of the page.

  2. Select Account Integrations from the dropdown menu.

  3. Filter for CRM.

  4. Click on the Salesforce (For Booking Pages) tile.

  5. In the Salesforce box, click the Setup button (Figure 1).
    Figure 1: Set up API Connection in OnceHub

  6. On the API connection tab, check the Connect to a Salesforce Sandbox environment checkbox and connect to an API User created in your Salesforce Sandbox environment (Figure 2). Learn more about connecting to the API User
    Figure 2: Connect to a Salesforce Sandbox environment

Once connected, you can proceed with the next steps in the Salesforce connector setup process:

Once the setup completed, you can test the OnceHub connector for Salesforce in your Salesforce Sandbox environment.

Switching from a Salesforce Sandbox environment to a Production Account

Section titled “Switching from a Salesforce Sandbox environment to a Production Account”

When you’re ready to switch to your production environment, you must disconnect the API User from your Salesforce Sandbox environment and connect to your production environment.

  1. Select your profile picture or initials in the top right-hand corner → Profile settings → CRM.

  2. In the Salesforce box, click the Setup button.

  3. On the API Connection tab, click Disconnect.
    After disconnecting OnceHub from your Salesforce Sandbox environment, all Users connected to the Salesforce Sandbox will be disconnected automatically and won’t be able to accept bookings.

  4. On the API connection tab, uncheck the Connect to a Salesforce Sandbox environment checkbox and connect to an API User created in your Salesforce production environment. Learn more about connecting to the API User

    ImportantIf OnceHub automatically signed you in to your Salesforce Sandbox environment, you must disconnect and sign out of Salesforce before trying to connect to the API User again.

Once connected, you can proceed with the setup:

ImportantIf the Salesforce Sandbox is a mirror of your production environment, your OnceHub setup will be kept when you switch to your production environment. However, you must complete the OnceHub connector for Salesforce setup to be able to accept bookings in your production environment.

You’re done! Now you need to ask Users to connect to their Salesforce production account to integrate with Salesforce.