---
title: "Salesforce scheduling buttons for Person Accounts"
description: "Salesforce scheduling buttons for Person Accounts provide a quick method to schedule on behalf of a Customer."
url: "https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/salesforce-scheduling-buttons-for-person-accounts"
---

[Salesforce scheduling buttons](https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/introduction-to-salesforce-scheduling-buttons "Salesforce scheduling buttons") for [Person Accounts](https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/working-with-salesforce-person-accounts "Working with Salesforce Person accounts") provide a quick method to schedule on behalf of a Customer. A schedule button on the Person Account record allows quick scheduling with the Person Account’s related Contact record. Bookings made via these buttons are automatically added to the Salesforce record that the booking is scheduled from.

Salesforce scheduling buttons can be configured to [prepopulate the booking form, or skip it altogether](https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/prepopulate-or-skip-booking-form-step-in-salesforce-integration "Prepopulating or skipping the Booking form step in Salesforce integration"). This is enabled by the [optional mapping step in the Salesforce setup wizard](https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/mapping-oncehub-fields-to-non-mandatory-salesforce-fields "Mapping ScheduleOnce fields to non-mandatory Salesforce fields"), where you can define the mapping between Salesforce record fields and OnceHub Booking form fields.

In this article, you will learn how to add the **Schedule with Me** button to the [Person Account Page Layouts](http://resources.docs.salesforce.com/198/16/en-us/sfdc/pdf/salesforce_B2C_implementation_guide.pdf) in Salesforce.

## Requirements

[Section titled “Requirements”](#requirements)

To add the **Schedule with Me** button to the Person Account Page Layouts in Salesforce, you will need:

* A Salesforce Administrator for your organization.
* [A completed Salesforce connector setup in OnceHub](https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/connecting-salesforce-api-user "How to connect a Salesforce API User").
* [A OnceHub User connected to Salesforce](https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/connecting-to-salesforce "Connecting to Salesforce").

## Creating a Contact Lookup field

[Section titled “Creating a Contact Lookup field”](#creating-a-contact-lookup-field)

First, we will add a custom Lookup field to the Person Account record.

1. Sign in to Salesforce as your [API user](https://help.staticso2.com/scheduleonce/account-integrations/crm/salesforce/connecting-salesforce-api-user "How to connect a Salesforce API User").

2. Go to the **Setup** page.

3. In the **Platform Tools** section, go to **Objects and Fields → Object Manager** (Figure 1). ![](https://help.staticso2.com/_astro/1567090296122.dWykdIXE_1sUtRY.png)Figure 1: Object Manager in the Objects and Fields menu

4. In the **Object Manager** list, select the **Account** object (Figure 2). ![](https://help.staticso2.com/_astro/1568022895170.Dqvkd38i_1NQB1E.png)Figure 2: Account object in the Object Manager list

5. Select **Field & Relationships → New** (Figure 3). ![](https://help.staticso2.com/_astro/1568023026091.CMQGDm0o_Z2nnzI8.png)Figure 3: Fields & Relationships

6. In the **New** **Custom Field** pane, select **Lookup Relationship** and click **Next** (Figure 4). ![](https://help.staticso2.com/_astro/1568023156181.kYYqNKBE_Z1zsv7V.png)Figure 4: Lookup Relationship

7. In the **Related to** drop-down, select **Contact**.

8. Click **Next**.

9. Enter a label and name for the Lookup field, then click **Next** (Figure 5).

   * Field Label: **Contact**
   * Field Name: **Contact\_ID** **![](https://help.staticso2.com/_astro/1567499576191.C6p3UYco_Z2rqRsf.png)Figure 5: New Relationship**

10. In Step 4 and Step 5, click **Next**.

11. In Step 6, click **Save**.

## Creating a button in Salesforce

[Section titled “Creating a button in Salesforce”](#creating-a-button-in-salesforce)

Now you can create the button to add to the Person Accounts Page Layout. The button will retrieve the Contact ID from the custom Contact Lookup field. When clicked, you will be able to make a booking on behalf of the Contact added to that Person Account.

Note

You can also follow the steps below for Custom objects. In this case, the button and the custom Lookup field should be added to a Custom object instead of the Person Account Page Layout.

1. Go to the **Setup** page.

2. In the **Platform Tools** section, go to **Objects and Fields → Object Manager**.

3. Select the **Account** object.

4. Select **Buttons, Links, and Actions → New Button or Link** (Figure 6). ![](https://help.staticso2.com/_astro/1568024689776.BjfOcy7F_y992m.png)Figure 6: New Button or Link

5. In the **New Button or Link** pane, enter the following information:

   * Label: **Schedule with related Contact**
   * Name: **Schedule\_with\_related\_Contact**
   * Description: **This button allows you to schedule meetings on behalf of the Contact related to this Person Account record.**
   * Display Type: **Detail Page Button**
   * Behavior: **Display in new window**
   * Content Source: **URL**

6. Copy the following link and paste it in the large text box (Figure 7).

   ```plaintext
   https://go.oncehub.com/EXAMPLEBOOKINGPAGE?so&Skip=1&sfLeadId={!Lead.Id}&sfContactId={!Account.Contact_IDid__c}&sfCaseId={!Case.Id}
   ```

   ![](https://help.staticso2.com/_astro/1568033990873.Begugciu_2mfMwl.png)Figure 7: Paste link in the large text box

7. Replace the placeholder URL (Figure 8) with the [Public link](https://help.staticso2.com/scheduleonce/sharing-publishing/general-one-time-links/using-general-links "Using General links") of the Booking page or Master page that you want to use for the new button. You can find the Public link in the [Booking page Overview section](https://help.staticso2.com/scheduleonce/event-types-booking-pages/booking-pages/booking-pages-overview "Booking page: Overview section") or [Master page Overview section](https://help.staticso2.com/scheduleonce/master-pages-resource-pools/master-pages/master-pages-overview "Master page: Overview section"). ![](https://help.staticso2.com/_astro/1568034053872.DagGkbXK_1vsRh3.png)Figure 8: Placeholder URL text For example, if you want to create a button for a Booking page with the Public link *<https://go.oncehub.com/danafisher>*, your finished link would be: *[https://go.oncehub.com/danafisher?soSkip=1\&sosfLeadId=\`{!Lead.Id}\`\\\&sosfContactId=\`{!Account.Contact\_IDid\_\_c}\`\\\&sosfCaseId=\`{!Case.Id}\`](https://go.oncehub.com/danafisher?soSkip=1\&sosfLeadId=%60%7B!Lead.Id%7D%60%5C\&sosfContactId=%60%7B!Account.Contact_IDid__c%7D%60%5C\&sosfCaseId=%60%7B!Case.Id%7D%60)*

8. Click **Save.**

## Adding a button to Salesforce Page Layouts

[Section titled “Adding a button to Salesforce Page Layouts”](#adding-a-button-to-salesforce-page-layouts)

The next step is to add the new button you created [](https://help.salesforce.com/articleView?id=customize_layout.htm\&type=5)to the Person Accounts Page Layout. The button will retrieve the Contact ID from the custom Contact Lookup field. When clicked, you will be able to make a booking on behalf of the Contact added to that Person Account.

Note

Page Layouts control which buttons are visible. If you want to display the buttons only to specific Salesforce Users, you can assign your Page Layouts to specific Users. [Learn more about assigning Page Layouts to Profiles](https://help.salesforce.com/HTViewHelpDoc?id=customize_layoutassign.htm\&language=en_US)

1. Go to the **Setup** page.
2. Enter **Person Accounts** in the Quick Find box.
3. Select **Page Layouts**.
4. In the Layout editor, select **Mobile & Lightning Actions**.
5. Click and drag the **Schedule with related Contact** button to the **Salesforce Mobile and Lightning Experience Actions** section.
6. Click **Save**.
