Get Started with Salesforce Spiff System Activity Log Export API
Create, query, download, and delete exports of your Salesforce Spiff System Activity Log (SAL) data for audit, monitoring, and compliance workflows.
To create an OAuth application, the user must have the System Activity Log: View permission.
- On the Admin tab in Spiff, select Settings, and then select API Access Management.
- Enter an application name, select the System Activity Log Export application scope, and click Create.
- From the window that appears, copy the Client ID and Client Secret. The Client ID appears in the Connected APIs list, but you can’t view the Client Secret again.
Authenticate with OAuth 2.0 and retrieve an access token before calling SAL export endpoints.
Replace these values:
CLIENT_SECRET: The OAuth 2.0 client secret generated in Spiff Settings.CLIENT_ID: The OAuth 2.0 client ID generated in Spiff Settings.SUBDOMAIN: The subdomain for your Spiff environment.- If you’re in the US, use
us1. - If you’re in the EU, use
eu1.
- If you’re in the US, use
Use the access_token from the response as a bearer token in all API requests:
Authorization: Bearer YOUR_BEARER_TOKEN
These are possible error responses that the user can encounter from any of the API endpoints.
401: The authorization header is missing or the scope is incorrect.
{"message":"Authorization header is missing or does not contain the required scope."}401: The OAuth application user doesn’t have permission to access SAL data.
{"message":"User not authorized to manage system activity log data."}403: The OAuth application company doesn’t have the SAL export API feature enabled.500: The request was interrupted by an internal server error.
{"message":"Something went wrong. Please try again."}
See Also
-
- Salesforce Help: System Activity Log in Salesforce Spiff