PP.App.sharePointShare

Syntax

sharePointShare(mbObject: PP.Mb.Object, title: String, body: String, callback: Function|PP.Delegate);

Parameters

mbObject. Repository object.

title. Title of the published record. The parameter is optional, by default, name of repository object is used.

body. Record contents. The parameter is optional, by default, URL of the current page is specified.

callback. Callback function. Optional parameter.

Description

The sharePointShare method publishes a repository object to the SharePoint service.

Example

Executing the example requires that the express report is opened. The scenario specified below must be started in the browser console.

Now publish the express report to SharePoint, determine identifier, name and time of the last save for the first object sent to this service:

// Publish this express report to SharePoint
PP.App.sharePointShare(mbObject, PP.App.getMbObject().getName(), url, function (sender, args) {
    var response = JSON.parse(args.ResponseText);
    // Get settings of the first passed object
    var object = response.SaveObjectAsResult.objects.objects.its.d[0];
    console.log("Identifier of the first passed object: " + object.i);
    console.log("Object name: " + object.n);
    console.log("The last time the object was saved: " + object["@ts"]);
});

After executing the example the browser console displays identifier, name and time of the last save for the first object sent to SharePoint:

Identifier of the first sent object: OBJ51

Object name: 1. Databases

Time the object was last saved: 2013-03-25T13:36:01.000

See also:

PP.App