> For the complete documentation index, see [llms.txt](https://help.nightfall.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.nightfall.ai/data-exfiltration-prevention/exfiltration_salesforce/policies/trigger.md).

# Trigger

The Trigger section in Salesforce policies allows you to define the frequency of action that must be  considered as an exfiltration event. In case of Salesforce policies, the download frequency is the trigger.&#x20;

The download frequency can be defined as the number of downloads over a period to time. This allows you to set custom thresholds in terms of number of downloads over a specific period of time and can be useful to identify anomalous download patterns for specific locations, users or content type.  This can be set in combination to other scoping capabilities.&#x20;

## Configuring Triggers

In the Actions section, you can define the download action that must be considered as a potential exfiltration attempt by Nightfall. Nightfall allows you to set the frequency of downloads as the action.&#x20;

To configure Actions:

1. Click the minimum number of files that must be the download threshold.

<figure><img src="https://3764378997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZeqNSdo8J8cLJPU3Gs5M%2Fuploads%2FCHn5OwAVxeNPVSprvMw0%2Fimage.png?alt=media&amp;token=d174fe79-70d4-4123-a37f-4e3846bf3162" alt=""><figcaption></figcaption></figure>

2. Set the time period within which the minimum no. of downloads must be considered as exfiltration event.

<figure><img src="https://3764378997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZeqNSdo8J8cLJPU3Gs5M%2Fuploads%2F2pvXPIbF91jzXdMTrWY8%2Fimage.png?alt=media&amp;token=62c29bcf-2edd-4f87-862e-5039ac2610b0" alt=""><figcaption></figcaption></figure>

In the following case, an exfiltration event is created if, there are 2 or more downloads within a minute.

<figure><img src="https://3764378997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZeqNSdo8J8cLJPU3Gs5M%2Fuploads%2F1a9wW7gf52mobw4k5PPn%2Fimage.png?alt=media&amp;token=eb017246-ebe3-4d4d-802c-6dd6a342feb4" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
You must set the action frequency carefully. For example, consider that you set the action condition as **5 or more files**, **within 1 hour** as shown in the following image. In this case, if a user downloads four assets, every 1 hour, the policy does not trigger a violation, since the Action condition does not match. So, a user can keep downloading four files every hour and get away with it.&#x20;
{% endhint %}

<figure><img src="https://3764378997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZeqNSdo8J8cLJPU3Gs5M%2Fuploads%2FxTAi5DJq65pHSaJlyC91%2Fimage.png?alt=media&amp;token=0edacd4a-2cc9-41ab-bee0-b0d410772531" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.nightfall.ai/data-exfiltration-prevention/exfiltration_salesforce/policies/trigger.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
