Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Problem with remotecontrol get_question_properties

  • jsibley
  • jsibley's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago #162095 by jsibley
Hello,

Again, I've had success with a number of remotecontrol calls, but am also having trouble with get_question_properties.

My json/rpc body is:

{
"method": "get_question_properties",
"id": " ",
"params": {
"sSessionKey" : {{SessionKey}},
"iQuestionID" : "330"
}
}

and the response is:

{"id":" ","result":{"status":"No valid Data"},"error":null}

It's not saying that it can't find the question and doesn't seem to be complaining about the json format that I've sent, but doesn't seem to be able to return the appropriate data. I've also tried adding a specific property to return but that doesn't seem to help.

Any thoughts on where the problem is? Is this potentially a problem specific to json rather than xml?

Thanks and Happy New Year.
The topic has been locked.
  • jsibley
  • jsibley's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 1 month ago #164929 by jsibley
This works without a problem if I specify some fields in aQuestionSettings. Although it says that the default is null for aQuestionSettings, in which case all results are supposed to be returned, that is when I am getting the error.

This isn't crucial for me now that I see that I can specify the properties I want, I am just curious now why it isn't working.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose