You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Preparing for Deployment](#preparing-for-deployment)
@@ -362,6 +363,71 @@ For example:
362
363
363
364
You can conveniently create a filter definition without having to write it by hand by first saving a filter in the data browser, then exporting the filter definition under *App Settings > Export Class Preferences*.
364
365
366
+
### Scripts
367
+
368
+
You can specify scripts to execute Cloud Functions with the `scripts` option:
369
+
370
+
371
+
```json
372
+
"apps": [
373
+
{
374
+
"scripts": [
375
+
{
376
+
"title": "Delete Account",
377
+
"classes": ["_User"],
378
+
"cloudCodeFunction": "deleteAccount"
379
+
}
380
+
]
381
+
}
382
+
]
383
+
```
384
+
385
+
Next, define the Cloud Function in Parse Server that will be called. The object that has been selected in the data browser will be made available as a request parameter:
⚠️ Depending on your Parse Server version you may need to set the Parse Server option `encodeParseObjectInCloudFunction` to `true` so that the selected object in the data browser is made available in the Cloud Function as an instance of `Parse.Object`. If the option is not set, is set to `false`, or you are using an older version of Parse Server, the object is made available as a plain JavaScript object and needs to be converted from a JSON object to a `Parse.Object` instance with `req.params.object = Parse.Object.fromJSON(req.params.object);`, before you can call any `Parse.Object` properties and methods on it.
397
+
398
+
For older versions of Parse Server:
399
+
400
+
<details>
401
+
<summary>Parse Server >=4.4.0 <6.2.0</summary>
console.warn('Missing push locales for \''+appName+'\', see this link for details on setting localizations up. https://github.com/parse-community/parse-dashboard#configuring-localized-push-notifications');
0 commit comments