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 creates a channel canvas. The canvas_create_type
will default to blank
if not provided.
In order to use this Slack function in a coded workflow, you must do the following:
create_channel
Slack function to do this.create_channel
Slack function accepts a manager_ids
parameter where you can assign a user as a channel manager. This allows you to automatically add a user to a channel when creating it.invite_user_to_channel
Slack function after the create_channel
Slack function completes to invite the invoking user to the channel.In addition, the app calling this function will need the following App Home features configured in its 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 }
},
);