Actions71
- Asset Actions
- Attribute Actions
- Block Actions
- Database Actions
- Document Actions
- Markdown Table Actions
- Notebook Actions
- Search Actions
- System Actions
- Tag Actions
Attribute → Get
AI-generatedOverview
This node interacts with the SiYuan API to manage various resources including attributes on blocks. Specifically, for the 'Attribute' resource with the 'Get' operation, it retrieves custom or built-in attributes from blocks within the SiYuan workspace. This is useful for workflows that need to extract metadata or specific attribute information from content blocks in SiYuan notebooks or documents.
Use Case Examples
- Extracting a custom attribute value from a block to use in further automation.
- Retrieving built-in attributes like creation date or author from a block for reporting or processing.
Properties
| Name | Meaning |
|---|---|
| Block ID | The unique ID of the block from which to get the attribute value. |
Output
JSON
attributeName- The name of the attribute retrieved from the block.attributeValue- The value of the attribute retrieved from the block.blockId- The unique ID of the block from which the attribute was retrieved.
Dependencies
- Requires SiYuan API URL and API token credentials for authentication.
Troubleshooting
- Ensure the Block ID provided is correct and exists in the SiYuan workspace to avoid errors.
- Verify that the API URL and token credentials are correctly set and valid to prevent authentication failures.
- If the attribute does not exist on the block, the node may return an empty or error response; verify attribute existence beforehand.