Sur cette page : découvrez comment utiliser l’activité de ciblage de requête incrémentale pour renvoyer uniquement les nouveaux enregistrements sur chaque exécution de campagne orchestrée, à l’exclusion des profils déjà ciblés dans les exécutions précédentes.
La requête incrémentale est une activité de ciblage qui exécute une requête de base de données à chaque exécution de la campagne orchestrée. Le plus important est que chaque exécution génère uniquement les enregistrements dont la valeur du champ de date est postérieure à la date de l’exécution précédente. Vous éviterez ainsi de recibler les mêmes personnes ou de réexporter les mêmes lignes.
Utilisez-la lorsque la campagne peut s’exécuter plusieurs fois, par exemple lorsque vous planifiez la campagne, par exemple une fois par semaine ou lorsqu’elle est déclenchée par un signal externe ou une API. Chaque exécution ne cible que les enregistrements postérieurs à l’exécution précédente, afin d’éviter les doublons.
Utilisations courantes :
- Messagerie et audiences : extrayez uniquement les nouvelles inscriptions, les nouveaux acheteurs ou d’autres segments « nouveau depuis la dernière exécution » dans l’étape suivante (par exemple, e-mail, message mobile).
- Exports en cours : envoyez uniquement des lignes nouvelles ou mises à jour aux fichiers pour les outils de création de rapports ou de BI, sans dupliquer ce que vous avez déjà exporté.
Configurer l’activité Requête incrémentale incremental-query-configuration
Définissez la dimension de ciblage, créez votre requête et choisissez comment l’activité décide des enregistrements à exclure des exécutions futures.
-
Ajoutez une activité Requête incrémentale à votre campagne orchestrée.
-
Dans Audience, choisissez la dimension de ciblage par exemple, personnes destinataires, abonnées, puis cliquez sur Continuer. En savoir plus sur Dimensions de ciblage.
-
Cliquez sur Ajouter une condition pour définir la requête. Découvrez comment utiliser le créateur de règles.
-
Sous Données traitées, choisissez votre chemin d’accès au champ de date. Un champ de date est obligatoire et l’attribut doit utiliser le format Date/heure. Chaque exécution renvoie uniquement les lignes dont la date est postérieure à la dernière exécution.
note NOTE L'éligibilité dépend uniquement de la valeur du champ de date, et non de la date d'ingestion de l'enregistrement. Un enregistrement ingéré après l’exécution précédente n’est pas renvoyé si sa valeur de champ de date est antérieure à la date de cette exécution.
Vérifier la date de dernière exécution incremental-query-last-execution
Une fois l’activité exécutée, le champ Date de dernière exécution s’affiche sous Données traitées, sous le Chemin d’accès au champ de date. Elle affiche la date et l’heure de la précédente exécution de l’activité. Il s’agit de la date limite utilisée par la prochaine exécution. Ce champ est en lecture seule.
Exemple incremental-query-example
L’exemple suivant envoie un e-mail de bienvenue aux profils qui viennent de devenir membres Gold. La campagne peut être planifiée pour s’exécuter toutes les semaines, tous les lundis. Chaque exécution cible uniquement les profils qualifiés pour l’adhésion Gold depuis l’exécution précédente. Chaque destinataire reçoit donc l’e-mail de bienvenue une fois.
- Requête incrémentale : sélectionne des membres Gold. Première exécution : l’ensemble des personnes membres Gold actuelles. Exécutions ultérieures : uniquement les profils qui sont devenus membres Gold depuis l’exécution précédente.
- Diffusion e-mail : envoie l’e-mail de bienvenue aux profils issus de la requête.
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: The Incremental query activity is a Targeting activity that runs a database query each time an Orchestrated campaign runs and outputs only records whose date field value is later than the date of the previous execution, so you avoid re-targeting the same people or re-exporting the same rows.
Intents:
- Add an Incremental query activity to an Orchestrated campaign that can run multiple times, for example when the campaign is scheduled or triggered by an external signal or API.
- Pick the Targeting dimension of the Incremental query activity in Audience and define its query with Add condition.
- Choose the Path to the date field under Processed data so that each run returns only rows whose date is after the last execution.
- Check the Last execution date of the Incremental query activity under Processed data.
- Pull only new sign-ups, new purchasers, or other “new since last run” segments into the next step of an Orchestrated campaign, for example email or mobile message.
- Send only new or updated rows to files for reporting or BI tools, without duplicating what was already exported.
Glossary:
- Incremental query (product-specific): A Targeting activity that runs a database query each time the Orchestrated campaign runs and outputs only records whose date field value is later than the date of the previous execution.
- Processed data (product-specific): The part of the Incremental query activity configuration where you choose the Path to the date field and where the Last execution date is displayed.
- Path to the date field (product-specific): The date field that the Incremental query activity compares with the date of the last execution. Each run returns only rows whose date is after the last execution.
- Last execution date (product-specific): A read-only field displayed under Processed data, below the Path to the date field, once the activity has run. It shows the date and time of the previous execution of the activity and is the cutoff date used by the next run.
Guardrails:
- A date field is required in the Path to the date field of the Incremental query activity, and the attribute must use the Date Time format.
- Eligibility depends only on the value of the date field, not on when the record was ingested. A record ingested after the previous execution is not returned if its date field value is older than the date of that execution.
- When a run of the Incremental query activity returns no rows, the Orchestrated campaign stops at the Incremental query. Activities after the Incremental query are not executed until there is data, when the campaign runs again.
Terminology:
- Canonical name: Incremental query — variants: Incremental query activity
FAQ:
- When should I use the Incremental query activity? Use it when the Orchestrated campaign can run multiple times, for example when you schedule the campaign weekly or when it is triggered by an external signal or API.
- Which records does each run of the Incremental query activity return? Each run returns only rows whose date field value is after the last execution, which avoids re-targeting the same people or re-exporting the same rows.
- Is a record ingested after the previous execution always returned? No. Eligibility depends only on the value of the date field. A record ingested after the previous execution is not returned if its date field value is older than the date of that execution.
- What happens when a run of the Incremental query activity returns no rows? The Orchestrated campaign stops at the Incremental query, and the activities after it are not executed until there is data, when the campaign runs again.
- Where can I see the cutoff date used by the next run? Once the activity has run, the read-only Last execution date field under Processed data shows the date and time of the previous execution of the activity, which is the cutoff date used by the next run.
- What format must the date field use? The attribute selected in the Path to the date field must use the Date Time format.
Examples:
- Welcome email to new gold members: an Orchestrated campaign that can be scheduled to run weekly, every Monday. The Incremental query activity selects gold members (first run: all current gold members; later runs: only profiles that became gold members since the previous execution), and the Email delivery activity sends the welcome email to the profiles output by the query, so each recipient receives the welcome email once.
Related pages:
- To pick the Targeting dimension in Audience: Targeting dimensions
- To define the query with Add condition: Learn how to use the rule builder
Personas:
- marketer: Can drop an Incremental query activity into an Orchestrated campaign, pick the Targeting dimension in Audience and define the query with Add condition. Can choose the Path to the date field under Processed data so that each run returns only rows whose date is after the last execution. Can check the read-only Last execution date field under Processed data once the activity has run. The page states that a date field is required, and the attribute must use the Date Time format. Where: “Configure the Incremental query activity”.
Onboarding:
- Level: Intermediate
- First minimal step: Drop an Incremental query activity into your Orchestrated campaign.
- Success check: Once the activity has run, the Last execution date field is displayed under Processed data, below the Path to the date field.