Salesforce: Send a Gift Setup

This guide assumes you have already communicated with Brilliant to enable the Salesforce Send a Gift integration for your account. Please note you must be using the Salesforce Developer, Unlimited, Enterprise, or Performance edition in order to integrate with Brilliant.

Before integrating your Salesforce account with Brilliant, you must first set up your Salesforce instance to streamline gifting to your Contacts and Leads and prepare for data syncing. After you set up Salesforce, you can connect your Salesforce account to Brilliant to enable the integration.

Salesforce Setup

In order to connect Brilliant to your Salesforce instance, please have your Salesforce admin follow the steps below to create a custom Send a Gift button for Contacts and Leads, create a custom Brilliant Gift object, and create custom fields for Events.

Create Send a Gift Button

You will need to create two Send a Gift buttons: one for Contacts and one for Leads. Each button will link to a Brilliant URL containing the appropriate Salesforce ID. This will allow Brilliant to pull in the Contact or Lead information automatically and push data back into Salesforce when a gift is sent or a sent gift is updated.

To create a button for Contacts:

  1. Open the Salesforce Object Manager.
  2. Go to the Contact page.
  3. Click Buttons, Links, and Actions.
  4. Click New Button or Link.
  5. Set the Label to Send a Gift.
  6. Set the Display Type to Detail Page Button.
  7. Set the link to the following URL:
    • https://app.brilliantmade.com/send_gifts?xee=Salesforce-*-Contact-*-{!Contact.Id}
  8. Edit your Contact Page Layout to show the button you just created.

Repeat these steps for Leads, but instead use the following link in your button and edit your Lead Page Layout:

    • https://app.brilliantmade.com/send_gifts?xee=Salesforce-*-Lead-*-{!Lead.Id}

Create Brilliant Gift Object

The integration will push data from Brilliant to a custom gift object in your Salesforce instance. You will need to create this custom object according to the instructions below:

  1. Navigate to the Object Manager.
  2. In the upper right corner, click the Create dropdown, then click Create Object.
  3. For the Label, enter Brilliant Gift. After doing this, the Object Name should be auto-populated with Brilliant_Gift. Please make sure that the value in Object Name is exactly Brilliant_Gift. For the Plural Label, enter Brilliant Gifts.
  4. In the Optional Features section, check the box next to Allow Reports.
  5. Leave the rest of the options at their defaults, and click Save.
  6. Find and click on the Brilliant Gift object you just created in the Object Manager menu.
  7. Click on Fields & Relationships.
  8. Create new fields for each of the fields listed below according to their specifications. You can leave the field level security as visible for all profiles for each of these fields:
  • Brilliant Recipient Id: A text field 16 characters in length with a field name set to Brilliant_Recipient_Id when creating the field.
  • Brilliant Order Id: A text field 16 characters in length with a field name set to Brilliant_Order_Id when creating the field. Please also check the External ID box when creating the field.
  • Contact: A lookup field tied to your Contacts with a field name set to ContactId when creating the field.
  • Lead: A lookup field tied to your Leads with a field name set to LeadId when creating the field.
  • Cost: A currency field with a length of 16, 2 decimal places, and a field name of Cost when creating the field. This field will be populated with the total cost of the gift.
  • Shipping Cost: A currency field with a length of 16, 2 decimal places, and a field name of Shipping_Cost when creating the field. This field will be populated with the shipping cost for the gift.
  • For/Send Status: A picklist field with the following values: Sent, Clicked, Submitted, and Canceled. The field name should be For_Send_Status when creating the field.
  • Order Status: A picklist field with the following values: Pending, Awaiting Fulfillment, In Fulfillment, Partially Shipped, Out For Delivery, Partially Delivered, Delivered, and Canceled. The field name should be Order_Status when creating the field.
  • Campaign: A lookup field tied to your campaigns with a field name of Campaign when creating the field. This is used if you are also enabling the Salesforce Campaign Integration.

Custom Event Fields

The integration will create events on a Contact or Lead's calendar whenever a gift is sent to that Contact or Lead, or whenever they claim the gift. This requires you to add some custom fields to your Salesforce Events:

  1. Go to the Salesforce Object Manager.
  2. Go to the Activity page.
  3. Click on Fields & Relationships.
  4. Create a Brilliant Recipient Id field by following these steps:
    1. Go to the Fields and Relationships tab of the Activity Object, then click New in the upper right corner.
    2. Select the Text data type, then click Next.
    3. Enter Brilliant Recipient Id in the Field Label. After doing this, the Field Name should be auto-populated with Brilliant_Recipient_Id. Please make sure that the value in Field Name is exactly Brilliant_Recipient_Id.
    4. Set the Length to 16.
    5. Uncheck Auto add to custom report type, then click Next.
    6. Leave the field level security for each profile at their default values (which should allow the field to be visible to all profiles), then click Next.
    7. Uncheck the box next to Task Layout so that the field is applied to Events only.
  5. Repeat step 4, but this time the Field Label should be Brilliant Gift Status, the Field Name should be populated with Brilliant_Gift_Status, and the Length should be 32.

Connect Brilliant

After you have followed the steps above to setup your Salesforce instance, you are ready to integrate with Brilliant by following the steps below:

  1. Login to Brilliant using your email address and password.
  2. On the lefthand side of the page, navigate to the Automations page of the store you wish to connect the automation to via Storefront -> Your Store to Connect -> Automations.
  3. Find the Salesforce integration and click Connect.

    From here, you will be brought to a new tab where you can provide authentication for the integration.

  4. You will be asked for your account information for both Brilliant and Salesforce.
    1. For Brilliant, the account will be added for you, so you can skip to adding your Salesforce account information.
    2. For Salesforce, you can provide your account information via an OAuth connection.
  5. After adding your accounts, click Finish. Your integration setup is now complete!

Salesforce Campaign Integration Connection

If you would also like to enable the Salesforce Campaign integration, please follow the below steps. If not, you can skip this section.

  1. On the Automations page of the store you wish to connect, click Connect on the Salesforce Campaign integration.

  2. On the configuration page, please add your Salesforce account information, enter the Salesforce Campaign ID of the Salesforce Campaign you wish to integrate, select which Preferred Gift Campaign you want to add campaign members to, and choose whether or not you would like to create Brilliant Gift records in your Salesforce instance for campaign members which choose to receive a gift. You can find the Salesforce Campaign ID by visiting the Campaign's page in Salesforce and copying the ID from the URL.

  3. After clicking Finish, your campaign integration setup is complete!

Still need help? Contact Us Contact Us