Save Document to Collection (v1) Block (DEPRECATED)
Save documents to the deprecated version of Scout collections
The Save Document to Collection block enables users to store documents within a specified Scout collection. This block is essential for workflows that require saving data securely and efficiently, with support for dynamic content through Jinja templating.
Configuration (Required)
The ID of the collection where the document will be saved. Ensure that the collection ID is correct to avoid saving data to the wrong collection.
The unique identifier for the document. This ID is crucial for distinguishing between different documents and for updating existing ones. This field supports Jinja templating for dynamic ID generation.
The main content of the document to be saved. This field supports Jinja templating, allowing for dynamic content generation.
Additional fields to be saved with the document. These fields can include various data types and are optional. The default value is an empty list.
Outputs
The block outputs a response from the collection service after saving the document. This response confirms the successful storage of the document and provides any relevant feedback from the service.
Usage Context
Use this block to store data into Scout collections from within your workflow. It is particularly useful for applications that require dynamic content generation and storage, such as user-generated content platforms or data logging systems.
Best Practices
- Ensure the collection ID and document ID are correct to avoid data misplacement.
- Use Jinja templating in the text and ID fields for dynamic content and identifiers.
- Validate fields to match the collection schema to ensure data consistency and integrity.