Trigger Reference of GS2-Datastore Script
Reference of event triggers that call extended scripts
Trigger
doneUpload
Report completion of data object upload
Synchronous Execution Script
Script and Report completion of data object upload are executed synchronously in that order.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| dataObject | DataObject | Data object |
| objectUrl | string | URL of the uploaded object |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | 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 will run after the Report completion of data object upload is executed.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| dataObject | DataObject | Data object |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
dataObject = args.dataObject
result = {
}