2

Canvas SDK documentation pretty clearly describes the canvas app event flow in case user wishes to share something:

Sfdc.canvas.client.subscribe(sr.client,
{
    name: "publisher.getPayload", onData: function (event)
    {
        var post = {};

        post.feedItemType = "LinkPost";
        post.url = url;
        post.urlName = urlName;

        Sfdc.canvas.client.publish(sr.client,
            { name: "publisher.setPayload", payload: post });
    }
});

But is there an event or a method (that canvas app can fire) to either

  • cancel the publishing action inside the publisher.getPayload handler, or
  • reset the state of a publisher canvas (clearing the "Share an update..." part, etc)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.