# Syncing Spend from Salesforce

As part of HockeyStack's integration to Salesforce, you are able to pull in advertising spend from both online and offline events tracked in your Salesforce.&#x20;

To get started, navigate to [Settings > API & Integrations](https://app.hockeystack.com/dashboard/settings?tab=5)&#x20;

<figure><img src="/files/xYhUg9QILT7CSc5XU7fy" alt=""><figcaption></figcaption></figure>

1. **Select Salesforce - Configuration > Scroll to the very bottom and toggle the Salesforce Spend Sync button.** &#x20;

* HockeyStack will automatically pull in the following fields from the Campaign Object by default:&#x20;
  * Name&#x20;
  * Type
  * Start Date
  * Actual Cost

2. **Select any additional fields** to be included in your HockeyStack reporting from the dropdown menu.&#x20;

<figure><img src="/files/kiEkXtX7DwTAjfHvfvvo" alt=""><figcaption></figcaption></figure>

3. HockeyStack will insert the full spend amount into the date denoted in Start Date field. We do not distribute the spend across multiple days because End Date may not exist or can be changed more often.

Please allow for 24 hours for Spend data to populate in HockeyStack.

### How It Works&#x20;

* HockeyStack pulls the "Actual Cost" field directly from Salesforce into your instance.&#x20;
* Spend Data is synced as part of your daily sync from Salesforce&#x20;

{% hint style="info" %}
**Note:** You will not need to make any adjustments to you **Channel** or **Campaign** property definitions in HockeyStack — everything will work seamlessly. Event and Tradeshow mappings are automatically created as soon as data becomes available.&#x20;
{% endhint %}

### Caveats

* Currently, HockeyStack only supports spend data in the "**Actual Cost**" field. For other spend data fields, refer to this guide: [Sync Spend](/marketing-intelligence/advanced-data-connections/sync-spend.md)
* **Start Date must not be empty**. If this field is blank, data for that campaign will not be imported.&#x20;
* Relation fields on the Campaign Object are currently not supported for Spend fields.&#x20;

&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hockeystack.com/marketing-intelligence/advanced-data-connections/syncing-spend-from-salesforce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
