Questions tagged [parse-cloud-code]

This code runs in the Parse Cloud rather than running on a mobile device. For complex apps, sometimes developers just need a bit of logic that isn't running on a mobile device. Cloud Code makes this possible.

The Parse Platform's vision is to let developers build any mobile app without dealing with servers. For complex apps, sometimes developers just need a bit of logic that isn't running on a mobile device. Cloud Code makes this possible.

Cloud Code is easy to use because it's built on the same JavaScript SDK that powers thousands of apps. The only difference is that this code runs in on a Parse Server rather than running on a mobile device. When developers update their Cloud Code, it becomes available to all mobile environments instantly. They don't have to wait for a new release of their application. This lets developers change app behavior on the fly and add new features faster.

1120 questions
2
votes
1 answer

How-to correctly make a Parse.com Parse.Cloud.httpRequest from the client-side?

I'd like to make a http request from my cloudcode that gets called on my clientside.
user4297677
2
votes
1 answer

setup cloud code for Parse.com

I have gone through the instruction found on Parse.com to setup Cloud code. I downloaded exe file as instructed in 1. It seems like there is a step missing before step 2. When i run "parse new" in the command prompt i get "not recognized as an…
Morgan Hayes
  • 321
  • 2
  • 25
2
votes
1 answer

Cloud Code function running twice

I have written a cloud function that is working well. Sometimes this function is being executed more than one time for the same user (I made sure that only one request is being requested from the client android app). After some debugging I noticed…
msamhoury
  • 333
  • 3
  • 12
2
votes
1 answer

Parse Local Datastore for Ionic App?

I see that Parse.com has a local datastore for iOS and Android. Any solutions for Ionic (or hybrid) Apps?
2
votes
1 answer

PARSE check original object on BeforeSave

I need to check the original object on before save to see what value has changed. currently i have this: Parse.Cloud.beforeSave("Stats", function(request, response) { if (!request.object.isNew()){ var query = new Parse.Query("Stats"); …
rob180
  • 901
  • 1
  • 9
  • 29
2
votes
2 answers

Create Parse.com Roles Programmatically

I'm looking to create Parse.com roles programmatically because from what I've gathered you can not create parent/child relationships or roles referencing roles in the data browser. I currently do not have any roles in Parse. When I run the…
rashadb
  • 2,515
  • 4
  • 32
  • 57
2
votes
0 answers

httpResponse.data is Empty for IAP Receipt Validation with Parse CloudCode

I'm trying to validate an Apple IAP auto-renewing receipt (https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html), but the response payload seems to be (surprisingly) empty. I would…
Rahul Jaswa
  • 509
  • 4
  • 17
2
votes
1 answer

From a cloud function: how to call JavaScript function that is recursive?

Is this recursion coded wrong or is it just that console.log() is not always executed even if the recursion is executed?   function testrecur(s) { console.log("begin testrecur=" + s); s++; if (s < 10) { testrecur(s); } else…
2
votes
1 answer

Parse verification email with image

I am currently using Parse email verification to validate the user. Parse has given the option to send custom email for verification. My question is: Is it possible to include an image in that email? I would like to show an image at the end of the…
Anudeep
  • 1,520
  • 1
  • 19
  • 38
2
votes
0 answers

beforeSave request undefined - cloud code bug?

Very strange, android code: ParseObject t = new ParseObject("Test"); t.put("test","test"); t.save(); It works. If I add a beforeSave cloud code, all fields will be undefined! Parse.Cloud.beforeSave("Test", function(request, response) { …
xnagyg
  • 4,784
  • 2
  • 32
  • 24
2
votes
2 answers

Parse Cloud Code with Swift & Stripe: TypeError: Object [object Object] has no method '_each'

I am trying to use cloud code with stripe, but I am getting an error from the cloud code file: TypeError: Object [object Object] has no method '_each' at request (stripe.js:58:11) at post (stripe.js:117:12) at…
surfaspen
  • 391
  • 7
  • 17
2
votes
1 answer

Parse cloud code ascending / limit won't work in query in promise

In the following cloud code, the first query works fine. In the chained query, if you include the two lines of code: query.ascending("createdAt"); // NOTE query.limit(5); // NOTE it does not work! if you comment out those…
Fattie
  • 27,874
  • 70
  • 431
  • 719
2
votes
0 answers

Why is Parse.com Job: Status = pending and Ended = Not Completed?

I have a job on Parse.com that runs successfully when I manually trigger it, but when it runs on the schedule I set, it logs: Status = pending and Ended = Not Completed. I'm not passing any parameters to the job. Any idea how to fix this? Thanks!
John Doe
  • 1,005
  • 2
  • 8
  • 23
2
votes
1 answer

Can't figure out Parse Config with Cloud Code

Been searching for solutions for hours and getting close to no luck. I just don't see much documentation on the matter of Parse Config. At least with solutions because I tried everything I could find. So basically I'm trying to set a default picture…
user4830411
2
votes
1 answer

ClouldCode not returning right results (randomnumber range limited)

My Parse Javascript cloudcode is not working correctly. Basically all my objects have a corresponding "index/menindex & womenindex" number. If both genders are selected- all items show up (as they should). If just male or female is selected- it only…
Yian
  • 189
  • 14