Overview
This node generates Firebase-style push IDs, which are unique identifiers commonly used in real-time databases like Firebase. It is useful for scenarios where you need to create unique IDs for new records or events in workflows, ensuring they are sortable by creation time and collision-resistant. For example, it can be used to generate unique keys for database entries, message IDs, or any case where a unique string identifier is required.
Use Case Examples
- Generating unique IDs for new database records in a workflow.
- Creating unique message identifiers for event tracking.
- Assigning unique keys to items processed in an automation pipeline.
Properties
| Name | Meaning |
|---|---|
| Output Field | The name of the field where the generated push ID will be stored in the output data. |
| Prefix | An optional string to prepend to the generated push ID, allowing customization or categorization of IDs. |
| Merge with Input | Determines whether the output should include the original input fields along with the new ID (true) or only the new ID field (false). |
Output
JSON
json - The generated Firebase-style push ID, optionally prefixed as specified.
Troubleshooting
- Ensure the node receives input data items; otherwise, no IDs will be generated.
- If IDs are not unique, check that the node's static data is properly maintained between executions, as it relies on stored state for uniqueness.
- Verify that the 'Output Field' name does not conflict with existing fields in the input data if merging is enabled.
Links
- Firebase Push IDs - Official Firebase documentation explaining push IDs and their usage.