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

canvas_copy

Copy a canvas

Facts

Schema ID

Schema.slack.functions.CanvasCopy

Schema reference

slack#/functions/canvas_copy

Input parameters

Required parameters
Select a canvas
Canvas name
Canvas owner
Optional parameters
A dictionary of key-value pairs representing canvas variables.

Output parameters

Required parameters
Canvas link

Usage guide

This function copies a canvas. 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.

Example workflow step:

const copyCanvasStep = ExampleWorkflow.addStep(
  Schema.slack.functions.CanvasCopy,
  {
    canvas_id: "CAN87654",
    title: "My new canvas",
    owner_id: "ABC123456"
  },
);