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
0
votes
0 answers

succes method keeps showing up undefined

My cloud log says that it cannot call the method "success" of undefined at query.first.success however i dont understand this because my console.log is showing up which is called inside of the success block. What is undefined in this code? var…
ian
  • 1,002
  • 2
  • 12
  • 29
0
votes
0 answers

Activity feed with Parse.com Cloud Code

I am trying to build an activity feed that gets all recent activities from people you follow and your own activities you created. I want to do this in the cloud so as to have a consistent dataset across all platforms. The way my classes are set up,…
Mr Smith
  • 331
  • 1
  • 4
  • 14
0
votes
1 answer

Parse.Cloud.afterSave method not working

Im trying to run this cloud code every time a new object gets saved to my class called "Message", however i believe i am calling the afterSave method incorrectly because not even my console.log is showing up after i save a new object to my class…
ian
  • 1,002
  • 2
  • 12
  • 29
0
votes
1 answer

Query entire class vs first object in the class

In my cloud code I want to retrieve the first object in the "Messages" class. Then i want to grab some information from that object, send it to another class, and finally delete that object from the "Messages" class i originally pulled it from. My…
ian
  • 1,002
  • 2
  • 12
  • 29
0
votes
1 answer

parse push notification language with cloud code

My app needs to be bilingual (english and italian). I'm working on push notifications through cloud code and i'm trying to send different notifications based on the client language. I created a language field in the Installation table and saved to…
Diego
  • 366
  • 3
  • 18
0
votes
1 answer

Parse ACL limit write on current user instance from current user

I have a _User class on parse for my application and i want to make it so that its ACL restricts writing from everywhere expect cloud code (W/ master key). The user has a "Verified" boolean column acknowledging weather they are a verified user or…
MingMan
  • 911
  • 1
  • 10
  • 31
0
votes
1 answer

manipulating parse.com class with cloud code

I have a random messaging app using parse.com as a backend. I am saving the messages in a class called "Messages" with the keys: "messageBody"(which is the content of the message) and "senderId"(which is the sender id of course) After this gets…
ian
  • 1,002
  • 2
  • 12
  • 29
0
votes
2 answers

Parse.com Cloud Code - After Save

I was hoping to add an after save trigger to Parse.com that notified me when a certain type of user's account was updated. In this case, if column "user_ispro" is true in Parse.User I want to be emailed after the save (this column is either null to…
0
votes
1 answer

400 Bad Request when doing a Parse Unity cloud call to user.logIn in Parse.Cloud.Define

When trying to define a Parse Cloud Code server side function to handle login I get 400 Bad Request when I try to call it. When I look at the Parse logs it records the error "Failed with: ReferenceError: user is not defined". But the user is…
0
votes
0 answers

Parse.com Cloud Code - Query for optional object

I'm working with Parse.com's Cloud Code to implement Mailgun and Stripe Cloud Methods. When a Stripe payment is successfully charged, I use Mailgun to send an email to the user. I've stored a company email "signature logo" on Parse, and I'd like…
mbm29414
  • 11,558
  • 6
  • 56
  • 87
0
votes
1 answer

Parse.com Cloud Code custom method call result undefined

I've got an afterSave handler in Cloud Code that conditionally calls a custom method. From my testing, both functions appear to be working exactly as desired. The custom method is skipped appropriately (with confirming console messages looking…
mbm29414
  • 11,558
  • 6
  • 56
  • 87
0
votes
0 answers

parse.com: cloud code to return a PFFile

Background... I'm exploring Parse.com as a back end for an iOS app that also has an html/web browser interface for some users (either via javascript client or asp.net client - to be determined). The web users are 'an audience' for the data/files…
Ox73
  • 1
  • 1
0
votes
1 answer

How can I access a field of a Parse.com Object when I don't know the fieldname?

When I use the code below to access a class row for the current user? Parse reports that the function returns a data set…
Carl
  • 2,896
  • 2
  • 32
  • 50
0
votes
1 answer

Access to global variables inside Parse.Cloud.httpRequest{()}

{Edited my code to include parent loop) I'm having trouble with the Parse.Cloud.httpRequest function that runs in Parse cloud code and there's no documentation on this method. Essentially I would like to be able to either access a global variable…
0
votes
1 answer

Retrieving class from parse.com with cloud code

Im having trouble with the my cloud code on parse.com. I have a class on parse.com in my data browser called "User". In this class I have seven users. each user has the keys "objectId" and "username". I want to import an array of the "objectId's"…
ian
  • 1,002
  • 2
  • 12
  • 29