# \#cloud-code

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

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

---

## [Recommended way to integrate with NextJS](https://community.parseplatform.org/t/recommended-way-to-integrate-with-nextjs/4208)

<div class="topic-metadata">

**Author:** [@reptilehaus](https://community.parseplatform.org/u/reptilehaus)\
**Replies:** 2\
**Last updated:** [June 25, 2024, 11:05am UTC](https://community.parseplatform.org/t/recommended-way-to-integrate-with-nextjs/4208 "2024-06-25T11:05:24Z")

</div>

I have a pretty solid workflow for Angular with SSR and parse but Im working a lot with NextJS at the moment and would like to try Parse with it. Is there any recommended example repo’s showing an integration with a Nex…

---

## [How to remove user authData](https://community.parseplatform.org/t/how-to-remove-user-authdata/3906)

<div class="topic-metadata">

**Author:** [@rhaps](https://community.parseplatform.org/u/rhaps)\
**Replies:** 2\
**Last updated:** [April 13, 2024, 10:33am UTC](https://community.parseplatform.org/t/how-to-remove-user-authdata/3906 "2024-04-13T10:33:10Z")

</div>

Hi I have a use case where i dont delete a user directly, i intend to disable the user, but i need to remove the user authData, I am doing this via cloud code, i dont seem to find how to remove the authdata thanks

---

## [Reusable functions in cloud code?](https://community.parseplatform.org/t/reusable-functions-in-cloud-code/3785)

<div class="topic-metadata">

**Author:** [@sfraise](https://community.parseplatform.org/u/sfraise)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 7:44pm UTC](https://community.parseplatform.org/t/reusable-functions-in-cloud-code/3785 "2024-01-03T19:44:59Z")

</div>

I’d like to setup some reusable cloud code helper functions, stuff that’s used in mulitple different cloud code functions without having to replicate the code over and over. What’s the standard correct way to do this? I…

---

## [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 ? …

---

## [Can't get the current user in cloud code](https://community.parseplatform.org/t/cant-get-the-current-user-in-cloud-code/2790)

<div class="topic-metadata">

**Author:** [@keanallen](https://community.parseplatform.org/u/keanallen)\
**Replies:** 2\
**Last updated:** [July 19, 2022, 7:40am UTC](https://community.parseplatform.org/t/cant-get-the-current-user-in-cloud-code/2790 "2022-07-19T07:40:20Z")

</div>

Why I can’t get the current user in my cloud code? Even though I pass a header X-Parse-Session-Token, user is still {} Cloud code: Parse.Cloud.define('hello', req =\> { return req.user; // =\> {} }); or Parse.Cloud.de…

---

## [Getting more details on decoding errors](https://community.parseplatform.org/t/getting-more-details-on-decoding-errors/2788)

<div class="topic-metadata">

**Author:** [@danipralea](https://community.parseplatform.org/u/danipralea)\
**Replies:** 3\
**Last updated:** [July 12, 2022, 2:33pm UTC](https://community.parseplatform.org/t/getting-more-details-on-decoding-errors/2788 "2022-07-12T14:33:04Z")

</div>

Hello! Is there any way to get more details on decoding errors? Codable provides some nice logging with the try catch mechanism. is there any way to use that? I’m currently having issues with a request. I am trying to…

---

## [Write Server-Side Cloud Code with the Swift SDK](https://community.parseplatform.org/t/write-server-side-cloud-code-with-the-swift-sdk/2769)

<div class="topic-metadata">

**Author:** [@cbaker6](https://community.parseplatform.org/u/cbaker6)\
**Replies:** 5\
**Last updated:** [July 4, 2022, 6:27pm UTC](https://community.parseplatform.org/t/write-server-side-cloud-code-with-the-swift-sdk/2769 "2022-07-04T18:27:39Z")

</div>

Version 4.6.0 of the Swift SDK allows you to write Parse Cloud Code Functions and Triggers completely in Swift by taking advantage of Parse Webhooks. Using the Swift SDK on the server-side allows you to send Push Noti…

---

## [How to apply aftersave on dynamic class](https://community.parseplatform.org/t/how-to-apply-aftersave-on-dynamic-class/2671)

<div class="topic-metadata">

**Author:** [@manish.yes](https://community.parseplatform.org/u/manish.yes)\
**Replies:** 10\
**Last updated:** [June 6, 2022, 12:16am UTC](https://community.parseplatform.org/t/how-to-apply-aftersave-on-dynamic-class/2671 "2022-06-06T00:16:36Z")

</div>

Hi team, We have a dynamic class, I want to do some operations on after save and also want to use multiple cloud triggers on these dynamic classes. is it possible? This is how we have created a dynamic class of student…

---

## [Validation failed on nested cloud code functions with requireUser: true](https://community.parseplatform.org/t/validation-failed-on-nested-cloud-code-functions-with-requireuser-true/2696)

<div class="topic-metadata">

**Author:** [@jayson](https://community.parseplatform.org/u/jayson)\
**Replies:** 7\
**Last updated:** [May 28, 2022, 11:09am UTC](https://community.parseplatform.org/t/validation-failed-on-nested-cloud-code-functions-with-requireuser-true/2696 "2022-05-28T11:09:59Z")

</div>

I get this error error: Failed running cloud function testGetAllUsers for user undefined with: Input: {} Error: {"message":"Validation failed. Please login to continue.","code":142} {"error":{"code":142,"message":"V…

---

## [Suggestions for load balancing Parse Servers](https://community.parseplatform.org/t/suggestions-for-load-balancing-parse-servers/2513)

<div class="topic-metadata">

**Author:** [@CastAsHuman](https://community.parseplatform.org/u/CastAsHuman)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 9:03am UTC](https://community.parseplatform.org/t/suggestions-for-load-balancing-parse-servers/2513 "2022-03-18T09:03:59Z")

</div>

Right now we have just one droplet hosting a Parse Server (2.8.4) and a Parse Dashboard (1.2.0). The Parse Server uses the built-in sessions, installations, cloud code, and config and uses MongoDB, which is hosted in ano…

---

## [Skip email verification for some users?](https://community.parseplatform.org/t/skip-email-verification-for-some-users/2163)

<div class="topic-metadata">

**Author:** [@andrew\_wahid](https://community.parseplatform.org/u/andrew_wahid)\
**Replies:** 1\
**Last updated:** [November 11, 2021, 3:27pm UTC](https://community.parseplatform.org/t/skip-email-verification-for-some-users/2163 "2021-11-11T15:27:24Z")

</div>

Can I skip email verification for some users (for example a user with an already verified email wants to change his email and I don’t want to ask him to verify again) Is it possible ?

---

## [Migrating existing Users to Parse-Server](https://community.parseplatform.org/t/migrating-existing-users-to-parse-server/1971)

<div class="topic-metadata">

**Author:** [@rhaps](https://community.parseplatform.org/u/rhaps)\
**Replies:** 5\
**Last updated:** [September 11, 2021, 9:12pm UTC](https://community.parseplatform.org/t/migrating-existing-users-to-parse-server/1971 "2021-09-11T21:12:33Z")

</div>

hi I have this pressing issue, i search so well and cant find an answer. How do i migrate existing users to parse-server ? For users with username and password, i can write a cloud function to do that, but i have prob…

---

## [Best Practice for Flutter Cloud Code?](https://community.parseplatform.org/t/best-practice-for-flutter-cloud-code/1609)

<div class="topic-metadata">

**Author:** [@mtgawesome](https://community.parseplatform.org/u/mtgawesome)\
**Replies:** 11\
**Last updated:** [May 1, 2021, 3:28pm UTC](https://community.parseplatform.org/t/best-practice-for-flutter-cloud-code/1609 "2021-05-01T15:28:50Z")

</div>

I have this listview builder in flutter where I need to get the data for it from cloudcode but I don’t know whether to pass is through a FutureBuilder or using an async class. Their is also an issue with having FutureBui…

---

## [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…

---

## [Need help to finish a Parse Cloud Code](https://community.parseplatform.org/t/need-help-to-finish-a-parse-cloud-code/817)

<div class="topic-metadata">

**Author:** [@pitxels](https://community.parseplatform.org/u/pitxels)\
**Replies:** 4\
**Last updated:** [February 11, 2021, 2:35am UTC](https://community.parseplatform.org/t/need-help-to-finish-a-parse-cloud-code/817 "2021-02-11T02:35:00Z")

</div>

Hi, I am a freelancer and I am creating an API for a business idea I want to validate, I have some cloud code on Parse but I need a developer that can help me finish. Please send me your hourly rate at pitxels \[at\] gmai…

---

## [Fetch list of cloud functions?](https://community.parseplatform.org/t/fetch-list-of-cloud-functions/1249)

<div class="topic-metadata">

**Author:** [@Koosmann](https://community.parseplatform.org/u/Koosmann)\
**Replies:** 4\
**Last updated:** [February 1, 2021, 12:58am UTC](https://community.parseplatform.org/t/fetch-list-of-cloud-functions/1249 "2021-02-01T00:58:05Z")

</div>

Hi guys - Does Parse Server provide any way to programmatically get a list of the cloud functions registered in the app? The use case here is to make it possible to create automate test that check if each cloud function…

---

## [Call cloud function from another cloud function](https://community.parseplatform.org/t/call-cloud-function-from-another-cloud-function/1251)

<div class="topic-metadata">

**Author:** [@BendabizAdam](https://community.parseplatform.org/u/BendabizAdam)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 9:22pm UTC](https://community.parseplatform.org/t/call-cloud-function-from-another-cloud-function/1251 "2021-01-21T21:22:33Z")

</div>

hello guys i have function A that calls function B… how can i restrict users from calling function B on their device … thanks
