Search code examples
androidparse-platform

How to send ParseObject to cloud function correctly?


When I try to send a ParseObject to cloud function

params.put("obj", myParseObject);
ParseCloud.callFunctionInBackground(functionName, params,...

I get an error IllegalArgumentException("ParseObjects not allowed here")

What is the correct way to send ParseObject to clould funciton?


Solution

  • You can't send ParseObjects to cloud code. You should instead send the object Id string and then fetch the object on cloud code.