sharePointShare (mbObject, title, body, callback)
mbObject. Object to be published - PP.Mb.Object;
title. Title of the discussion topic related to the current object.
body. Text of the message to be published in discussion.
callback. Callback procedure.
The sharePointShare method is used to publish an object to SharePoint.
SharePoint site and discussion group must be defined in the repository to create a discussion.
To execute the example, the page must contain a connection to repository named "metabase" and a model of express report named eaxAnalyzer. Publish the report to SharePoint:
metabase.sharePointShare(eaxAnalyzer, "olap1", "My olap1", function (sender, args)
{
var res = JSON.parse(args.ResponseText);
var sharedObj = res.SaveObjectAsResult.object;
console.log(sharedObj)
})
After executing the example the specified report is published to SharePoint portal, and browser console displays description of the published report.
See also: