# \#cloud-code-trigger

**URL:** https://community.parseplatform.org/tag/cloud-code-trigger/8.md

[Latest](https://community.parseplatform.org/latest.md) · [Categories](https://community.parseplatform.org/categories.md) · [Tags](https://community.parseplatform.org/tags.md)

---

## [Sending push in afterSave trigger](https://community.parseplatform.org/t/sending-push-in-aftersave-trigger/4961)

<div class="topic-metadata">

**Author:** [@adammlevy](https://community.parseplatform.org/u/adammlevy)\
**Replies:** 1\
**Last updated:** [June 6, 2025, 12:17am UTC](https://community.parseplatform.org/t/sending-push-in-aftersave-trigger/4961 "2025-06-06T00:17:04Z")

</div>

I’m trying to send a push notification from an afterSave trigger but receiving the following error: Error: {"message":"Cannot use the Master Key, it has not been provided.","code":141} Prior to upgrading to 3.x I was ab…

---

## [Add a captcha middleware for auth?](https://community.parseplatform.org/t/add-a-captcha-middleware-for-auth/3546)

<div class="topic-metadata">

**Author:** [@andrew\_wahid](https://community.parseplatform.org/u/andrew_wahid)\
**Replies:** 1\
**Last updated:** [December 27, 2023, 2:28pm UTC](https://community.parseplatform.org/t/add-a-captcha-middleware-for-auth/3546 "2023-12-27T14:28:16Z")

</div>

Hi everyone, Anyone know if it’s possible to integrate a captcha solution to my authentication flow in parse ? Does this need to restrict User creation (block user.signUp()) and only allow it through cloud functions ? …

---

## [Return the data from beforeFind trigger and stop the Find query](https://community.parseplatform.org/t/return-the-data-from-beforefind-trigger-and-stop-the-find-query/826)

<div class="topic-metadata">

**Author:** [@ender-code](https://community.parseplatform.org/u/ender-code)\
**Replies:** 9\
**Last updated:** [July 19, 2023, 3:26am UTC](https://community.parseplatform.org/t/return-the-data-from-beforefind-trigger-and-stop-the-find-query/826 "2023-07-19T03:26:33Z")

</div>

Hi I am integrating ElasticSearch to Parse Server for caching and searching capabilities. I’ll cache data of few specific classes into the ElasticSearch. When a find query is executed on one of those classes then a che…

---

## [Query \`include\` doesn't trigger \`beforeFind\` trigger for included objects](https://community.parseplatform.org/t/query-include-doesnt-trigger-beforefind-trigger-for-included-objects/1964)

<div class="topic-metadata">

**Author:** [@hariprasadiit](https://community.parseplatform.org/u/hariprasadiit)\
**Replies:** 13\
**Last updated:** [September 26, 2022, 3:11pm UTC](https://community.parseplatform.org/t/query-include-doesnt-trigger-beforefind-trigger-for-included-objects/1964 "2022-09-26T15:11:47Z")

</div>

Hello, When I was testing parse server I’ve found that, beforeFind trigger is not triggered for included objects in find or get queries using include option. Is this working as expected? We’re applying custom ACLs in b…

---

## [Sequenced calls of afterSave](https://community.parseplatform.org/t/sequenced-calls-of-aftersave/2075)

<div class="topic-metadata">

**Author:** [@avramo](https://community.parseplatform.org/u/avramo)\
**Replies:** 3\
**Last updated:** [October 18, 2021, 3:22am UTC](https://community.parseplatform.org/t/sequenced-calls-of-aftersave/2075 "2021-10-18T03:22:53Z")

</div>

I have a data consistency problem, my afterSave trigger does many operations (a few database calls in a row) and I don’t want it to be interrupted by a call of afterSave from another record. Sample: I would like it to …

---

## [Context in ParseSwift save](https://community.parseplatform.org/t/context-in-parseswift-save/1644)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 6\
**Last updated:** [June 20, 2021, 3:12pm UTC](https://community.parseplatform.org/t/context-in-parseswift-save/1644 "2021-06-20T15:12:25Z")

</div>

Hello, is there a way how to pass date as context for the .save() function in ParseSwift SDK? Thanks!

---

## [Prevent setting certain fields in beforeSave](https://community.parseplatform.org/t/prevent-setting-certain-fields-in-beforesave/1645)

<div class="topic-metadata">

**Author:** [@lsmilek1](https://community.parseplatform.org/u/lsmilek1)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 12:44am UTC](https://community.parseplatform.org/t/prevent-setting-certain-fields-in-beforesave/1645 "2021-05-10T00:44:53Z")

</div>

As I noticed, the request.object in the beforeSave is already modified. I am investigating the following concept of last update wins: object in database has a nested object with fields and related last update dates. f…

---

## [Support wildcard className in Cloud triggers](https://community.parseplatform.org/t/support-wildcard-classname-in-cloud-triggers/1584)

<div class="topic-metadata">

**Author:** [@kulanu](https://community.parseplatform.org/u/kulanu)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 12:45pm UTC](https://community.parseplatform.org/t/support-wildcard-classname-in-cloud-triggers/1584 "2021-04-27T12:45:54Z")

</div>

I gather that Parse Server cloud functions don’t support wildcard className? At least I can’t find in the docs. Parse.Cloud.beforeSave("Review", (request) =\> { ... }) In my application I have dozens, eventually hundre…

---

## [Cloud Code to Upload File (GeoTiff with properties) to add to Parent Object](https://community.parseplatform.org/t/cloud-code-to-upload-file-geotiff-with-properties-to-add-to-parent-object/1515)

<div class="topic-metadata">

**Author:** [@yozef](https://community.parseplatform.org/u/yozef)\
**Replies:** 5\
**Last updated:** [April 1, 2021, 11:44am UTC](https://community.parseplatform.org/t/cloud-code-to-upload-file-geotiff-with-properties-to-add-to-parent-object/1515 "2021-04-01T11:44:32Z")

</div>

What is the best practice for Cloud Functions for this scenario, I have two possible scenarios (or maybe you can see another) I’d like to make an API that receives/upload a file (.tif with geodata) and extract propertie…

---

## [Sharp package in beforeSaveFile](https://community.parseplatform.org/t/sharp-package-in-beforesavefile/1398)

<div class="topic-metadata">

**Author:** [@aytugulis](https://community.parseplatform.org/u/aytugulis)\
**Replies:** 4\
**Last updated:** [March 4, 2021, 8:15pm UTC](https://community.parseplatform.org/t/sharp-package-in-beforesavefile/1398 "2021-03-04T20:15:00Z")

</div>

I want to use this package: sharp - npm in beforeSaveFile trigger but it doesn’t work. beforeSaveFile doesn’t change anythink. My codes: Parse.Cloud.define('test', async (req) =\> { try { const Resim = Parse.Objec…

---

## [Dow to debug Jobs and Triggers code?](https://community.parseplatform.org/t/dow-to-debug-jobs-and-triggers-code/1122)

<div class="topic-metadata">

**Author:** [@avramo](https://community.parseplatform.org/u/avramo)\
**Replies:** 19\
**Last updated:** [December 27, 2020, 11:39pm UTC](https://community.parseplatform.org/t/dow-to-debug-jobs-and-triggers-code/1122 "2020-12-27T23:39:26Z")

</div>

I’m trying to debug my quite complex job code and when I get an exception like TypeError: Cannot read property ‘get’ of undefined I can’t find the code line where the problem appeared - there is no stack trace. Also t…

---

## [When should triggers be used?](https://community.parseplatform.org/t/when-should-triggers-be-used/1001)

<div class="topic-metadata">

**Author:** [@CastAsHuman](https://community.parseplatform.org/u/CastAsHuman)\
**Replies:** 2\
**Last updated:** [November 2, 2020, 11:50pm UTC](https://community.parseplatform.org/t/when-should-triggers-be-used/1001 "2020-11-02T23:50:41Z")

</div>

I have a social mobile app, where users can like posts. Every time a like occurs, a cloud function creates a new Like object and then, a Like afterSave trigger fetches the post, increases its numberOfLikes, creates a Not…

---

## [Manipulating User on BeforeSave breaks email verification](https://community.parseplatform.org/t/manipulating-user-on-beforesave-breaks-email-verification/157)

<div class="topic-metadata">

**Author:** [@nuborian](https://community.parseplatform.org/u/nuborian)\
**Replies:** 5\
**Last updated:** [April 16, 2020, 7:29pm UTC](https://community.parseplatform.org/t/manipulating-user-on-beforesave-breaks-email-verification/157 "2020-04-16T19:29:54Z")

</div>

Hey guys, I am struggling at the moment. Parse.Cloud.beforeSave("\_User", (request) =\> { if( request.object.get("username") ){ request.object.set("username", request.object.get("username").toLowerCase()) reque…
