List record element
This is a rich text element, compatible only with the rich_text block. It must be used within the rich_text_list, rich_text_quote, or rich_text_section block element within the rich_text block's elements array.
Fields
| Field | Type | Description | Required? |
|---|---|---|---|
type | String | The type of object; in this case, "list_record". | Required |
file_id | String | The ID of the Slack list record to link to. | Required |
record_id | String | The record ID. | Optional |
view_id | String | View ID of the list record. | Optional |
style | Object | An object of optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, underline, and unlink. | Optional |
text | String | Title of the list record. | Optional |
url | String | URL of the list record. | Optional |
Example
- JSON
{
"blocks": [
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "list_record",
"file_id": "F123ABC456"
}
]
}
]
}
]
}