share_canvas_in_thread
Facts
DescriptionShare a canvas in thread
Schema
Schema.slack.functions.ShareCanvasInThreadSchema reference
slack#/functions/share_canvas_in_threadInput Parameters
Required Input Parameters
access_levelSchema.types.stringRequiredSelect an access level. Options are view or edit.
canvas_idSchema.slack.types.canvas_idRequiredThe ID of the canvas to share
message_contextSchema.slack.types.message_contextRequiredThe message to reply to
Optional Input Parameters
messageSchema.slack.types.rich_textOptionalAdd a message
reply_broadcastSchema.types.booleanOptionalSend to the conversation as well
Output Parameters
Optional Output Parameters
canvas_idSchema.slack.types.canvas_idOptionalCanvas link
message_contextSchema.slack.types.message_contextOptionalReference to the sent message
Usage info
This function allows you to share a canvas in a thread.
The app using this function will need the following App Home features set in the app manifest file:
features: {
appHome: {
messagesTabEnabled: true,
messagesTabReadOnlyEnabled: false,
},
},
Example workflow step:
const shareCanvasStep = ExampleWorkflow.addStep(
Schema.slack.functions.ShareCanvasInThread,
{
canvas_id: "CAN123456",
access_level: "edit",
message_context: inputs.messageContext,
message: { inputs.message }
},
);