Page Properties | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Resources & Remarks
Modification History
|
...
If you want a format different from JSON, you have to add a third parameter {responseType: 'arraybuffer' | 'blob' | 'json' | 'text'}.
scope.api.http.get
This function works with a mandatory parameter for the url
and a second optional one that controls whether to use the core-api endpoints instead of those of the API-WEB (web-api gateway) which is the primary one for the client.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
function httppost() { var objectId1 = scope.data['system:objectId']; var inst = { "processDefinitionKey":"follow-up", "name":"follow-up", "businessKey":objectId1, "returnVariables":true, "variables": [ { "name":"expiryDateTime", "value":"2020-10-24T09:57:00" }, { "name":"whatAbout", "value":"some reminder" }, { "name":"documentId", "value":objectId1 } ] }; scope.api.http.post('/bpm/process/instances', inst).then( function(result){ scope.api.util.notifier.info('A follow-up for the following object is created: ' + objectId1, 'Success'); }, function(error){ scope.api.util.notifier.error('A follow-up for the following object could not be created ' + objectId1, 'Error'); console.log({error}); } ) |
scope.api.dms
This section describes the read access to object information.
scope.api.dms.getObject()
Loads a DMS object from the backend
Parameter | Type | Description |
---|---|---|
id | string | The id of the DMS object to be fetched. |
version | string | optional: retrieve a specific version of the DMS object. |
...