Skip to main content

Endpoint

On this page you will find how to create a workspace using an Endpoint as DataSource

Basic Usage

function returnEndpoint(mapper) {
var clientId = SW.Application.Workspace.context().currentDocument.Oid;
return SW.executeAPI(
"GET",
"v3/commercial-clients/" + clientId + "/requests/new"
).then((result) => {
return mapper(result.Request);
});
}

Example

img-box-shadow

img-box-shadow