11-17-2010 11:06 AM
11-22-2010 05:01 PM
11-23-2010 08:20 AM
01-12-2011 04:21 AM
01-13-2011 04:36 AM
Alfresco.util.Ajax.request(
{
url: Alfresco.constants.PROXY_URI + "api/sites/" + this.options.siteId + "/invitations",
method: "POST",
requestContentType: "application/json",
responseContentType: "application/json",
dataObj:
{
invitationType: "NOMINATED",
inviteeUserName: record.getData('userName') || "",
inviteeRoleName: record.getData('role'),
inviteeFirstName: record.getData('firstName'),
inviteeLastName: record.getData('lastName'),
inviteeEmail: record.getData('email'),
serverPath: serverPath,
acceptURL: 'page/accept-invite',
rejectURL: 'page/reject-invite'
},
successCallback:
{
fn: success,
scope: this
},
failureCallback:
{
fn: failure,
scope: this
}
});
Alfresco.util.Ajax.request(
{
url: Alfresco.constants.PROXY_URI + "api/sites/" + this.options.siteId + "/memberships",
method: "POST",
requestContentType: "application/json",
responseContentType: "application/json",
dataObj:
{
person:
{
userName: record.getData('userName')
},
role: record.getData('role')
},
successCallback:
{
fn: success,
scope: this
},
failureCallback:
{
fn: failure,
scope: this
}
});
05-27-2015 12:41 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.