Canvas Apps in the Publisher

Canvas enables you to expose your canvas apps as quick actions. The publisher allows users access to the most common actions in your organization. You can expand the publisher to include a canvas app so that users can leverage the common custom actions of a canvas app. These actions can then integrate with the feed and create a feed post specific to the action that was performed.

Developers can use canvas apps in the publisher to:

  • Add content from a Web application into the Chatter publisher.
  • Create a custom action that exposes a canvas app.
  • Integrate your canvas app directly into the publisher life cycle: post from your canvas app into the Chatter feed, use the Share button functionality, and designate where to post your message.

For example, you might have a canvas app that your users use to log their hours worked. You can create a quick action that allows a user to open that canvas app in the publisher so they can quickly submit a time record, all right from within the publisher.

Users can still access the canvas app in the standard way for full functionality; but the canvas app in the publisher provides quick access to the most common functions of your app. A user can select the quick action and create a Chatter feed item that can be a text post, a link post, or even a canvas post.

  • Set Canvas App Location and Create the Action

    To add a canvas app to the publisher or action bar, you must set the location and create the action when you create the canvas app.

  • Create the Action Manually

    If you didn’t select the Create Actions Automatically field when you created the canvas app, then you’ll need to create the action manually.

  • Canvas SDK Publisher Events

    When you expose a canvas app in the publisher, you can use well-defined events to enable communication between the canvas app and the publisher.

  • Publisher Context Considerations

    When you display a canvas app inside the publisher, the context information you receive from the signed request or from a getContext() call contains information specific to the publisher:

  • Publisher Canvas App Access Considerations

    When modifying a canvas app that appears in the publisher, keep these considerations in mind:

See Also