Script Trigger Reference of GS2-Datastore

Reference of event triggers that call extended scripts

Trigger

doneUpload

Report completion of data object upload

Synchronous Execution Script

The script is executed synchronously before the report completion of data object upload process.

Request
TypeDescription
namespaceNamespaceNamespace
dataObjectDataObjectData object
objectUrlstringURL of the uploaded object
Result
TypeRequiredDefaultValue LimitsDescription
permitbool
Whether to allow report completion of data object upload
Implementation Example
namespace = args.namespace
dataObject = args.dataObject
objectUrl = args.objectUrl

result = {
  permit=permit
}

Asynchronous Execution Script

The script executes asynchronously after the Report completion of data object upload.

Request
TypeDescription
namespaceNamespaceNamespace
dataObjectDataObjectData object
Implementation Example
namespace = args.namespace
dataObject = args.dataObject

result = {
}