Create channel canvas
Schema.slack.functions.ChannelCanvasCreate
slack#/functions/channel_canvas_create
blank
or template
. Default is blank
. If type is blank
or undefined, no canvas_template_id
is needed. If type is template
, provide a canvas_template_id
.
canvas_create_type
is set to template
.
canvas_create_type
is set to blank
.
This function updates creates a channel canvas. The canvas_create_type
will default to blank
if not provided.
The app using this function will need the following App Home features set in the app manifest file:
features: {
appHome: {
messagesTabEnabled: true,
messagesTabReadOnlyEnabled: false,
},
},
For information about the expanded_rich_text
type that you can use to update your canvases, refer to expanded_rich_text.
const createChannelCanvasStep = ExampleWorkflow.addStep(
Schema.slack.functions.ChannelCanvasCreate,
{
channel_id: "CHAN123456",
canvas_create_type: "template",
canvas_template_id: "TEM123456",
content: { inputs.content }
},
);