> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/parametrage/automatiser/generalites.md).

# Généralités

Quelles données peut-on utiliser dans les actions automatiques ?

1\) L'enregistrement Boucle courant (pour récupérer la valeur d'une de ses colonnes)

2\) L' ID. Unique de l'enregistrement courant de chaque boucle

3\) Compteur et CompteurMax

4\) L'enregistrement Courant (si on a un « créer stock » puis opération sur colonne de stock)

5\) L'enregistrement déclencheur

6\) l'enregistrement précédent

A la suppression d'un enregistrement, les automatismes de suppression sur cet enregistrement vont être appelés ainsi que les automatismes des suppressions qui en découlent (actions liées).

*Exemple :*

*Si vous supprimez une commande, voici ce qu'il se passe :*

*- Supprimer toutes les lignes de commande de la commande (action liées)*

*- Pour chaque suppression de ligne de commande, traiter les automatismes de suppression s'il y en a (exemple: automatisme 'supprimer ligne de commande=> modifier ligne de stock')*

*- Supprimer la commande*

*- Traiter les automatismes de suppression sur la commande s'il y en a (automatisme supprimer commande => modifier devis : état de devis = 'devis envoyé' et non plus 'commande passée')*


---

# 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://doc.simax.fr/parametrage/automatiser/generalites.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.
