# Salesforce

### Setting Up <a href="#setting-up" id="setting-up"></a>

Salesforce setup uses OAuth 2.0 for authentication. You must have the appropriate permissions within your Salesforce account to grant access to our App to begin.  From there, you'll only need to click install from within the Turngate app and proceed through the Authorization prompts to authorize Turngate to access your audit logs.

{% hint style="info" %}
It helps to already be logged in to your Salesforce account before starting the Integration setup process.
{% endhint %}

### Turning on Logging

By default, logging is not turned on in SalesForce. Navigate to Security -> Event Monitoring -> Event Monitoring Settings and turn on  “Generate Event Logs." That will start the logging process but it make take a while (hours to a full day) for logs to start showing up. You can verify logs are being created by checking the Turngate interface or looking for log files that can be downloaded from SalesForce.

### License Considerations

The types of logs available depend on the license level and add-ons you have. Basic user logging is included Classic and Lightning Experience licenses. This captures high level user and system events (logins, configuration changes, etc) but not much else.&#x20;

If you want detailed audit logs about user and system activity on the platform, that requires Salesforce Shield or Salesforce Event Monitoring add-on subscriptions for Enterprise, Performance, and Unlimited editions. There may be seprate configuration options depending on your license and desired level of logging.

### Other Resources

&#x20;SalesForce Event Types — [EventLogFile Supported Event Types](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventlogfile_supportedeventtypes.htm)

Managing Realtime Monitoring - [Manage Real-Time Event Monitoring Events](https://help.salesforce.com/s/articleView?id=xcloud.event_monitoring_monitor_events_with_event_manager.htm\&type=5)


---

# 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://support.turngate.io/setup/integrations/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.
