This is reference content about building functions and workflows. Learn more if you're not yet familiar with this new Slack platform paradigm.

share_canvas_in_thread

Share a canvas in thread

Facts

Schema ID

Schema.slack.functions.ShareCanvasInThread

Schema reference

slack#/functions/share_canvas_in_thread

Input parameters

Required parameters
The ID of the canvas to share
The message to reply to
Select an access level. Options are view or edit.
Optional parameters
Add a message
Send to the conversation as well

Output parameters

Optional parameters
Canvas link
Reference to the sent message

Usage guide

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 }
  },
);