# storage.write

Canonical URL: https://developers.iagenify.com/ar/sdk/workflows/steps/storage-write/
Language: ar

`type: "storage.write"`

٨ اجراءات ، كل منها مع ما يتطلبه ، ويُرفض المرشَّح الفارغ مرتين .

Status: storage required · 8 actions · empty filter needs all

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `storage` | string | مطلوب | التخزين |
| `action` | string | مطلوب | `insert` · `update` · `delete` · `sql` · `put` · `remove` · `createCollection` · `dropCollection`. |
| `collection` | string |  | مطلوب بموجب إجراءات الوثيقة الخمسة. |
| `sql` | string |  | & & & & & `sql`. |
| `key` | string |  | Required by `put` and `remove`. |
| `all` | boolean |  | يؤكد a تغيير مع a فارغ. |

```javascript
{ id: "file", type: "storage.write", config: {
    storage: "…", action: "insert", collection: "tickets",
    documents: [{ text: "{{input.text}}", at: "{{input.receivedAt}}" }] } }
```

## يُرفض الفلتر الفارغ — مرتين {#guard}

> **مرة واحدة على التوفير، مرة واحدة خلال التشغيل**
>
> احفظ a مرشح هو فارغ ككتابة لكن { { { { {steps.find.output.id}}} } يمرر المصادقة ويمكنه أن يقرر على سلسلة فارغة في وقت التنفيذ -- لذلك يتم فحصها مرة أخرى ، مع اسم الحقل. أي تشغيل مع لا أحد يراقب يجب أن لا يكون قادرا على تفريغ مجموعة لأن نموذج أولي لم ينتج شيئا.

## المخرجات {#output}

```javascript
{{steps.file.output.result}}
{{steps.file.output.action}}
{{steps.file.output.storage}}
```

## لا يوجد هناك أي تراجع {#no-undo}

ولا حاجة الى الموافقة ايضا ، وهذا يبقى في داخل الحساب . [re](/ar/sdk/ref/workflow-run/retry) من قبل هذه الخطوة تكتب مرة أخرى، وهو الشيء الذي يجب التفكير فيه قبل إعادة كتابة سلسلة كتابة.

- [storage.query](/ar/sdk/workflows/steps/storage-query): القراءة الأولى
- [write_storage](/ar/sdk/agent/tools/write-storage): نسخة الوكيل.
- [خطوات سير العمل](/ar/sdk/workflows/steps): الأنواع الثلاثة والعشرون.

```python
{"id": "file", "type": "storage.write", "config": {
    "storage": "…", "action": "insert", "collection": "tickets",
    "documents": [{"text": "{{input.text}}", "at": "{{input.receivedAt}}"}]}}
```

```python
"{{steps.file.output.result}}"
"{{steps.file.output.action}}"
"{{steps.file.output.storage}}"
```
