Welcome to the LimeSurvey Community Forum

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

RPC API Responding With Incomplete Responses After Filtering

  • caetano
  • caetano's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago - 4 years 5 months ago #210573 by caetano
Hi all,

I have been using the `export_responses_by_token` method as part of the RPC API, trying to filter by complete responses. I thought it worked for my needs, as it would return a `status` if there was something wrong with the request (i.e. no responses yet for the token).

However, I was testing the API today, I created a new token and executed the survey, stopping about halfway through. When I queried the API with the token that I created and filtering by complete responses, it responsed with the survey outline, only with blank responses. I'm not sure if this is the expected response, because it is returning data (albeit empty) when I specifically requested complete surveys. One additional detail that I found peculiar was that this only occurs when there are no actual completed responses for the token, after I complete a response the query works successfully (without incomplete data).

Thanks!
Last edit: 4 years 5 months ago by caetano. Reason: typo
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 5 months ago #210624 by DenisChenu

caetano wrote: When I queried the API with the token that I created and filtering by complete responses, it responsed with the survey outline, only with blank responses. I'm not sure if this is the expected response, because it is returning data (albeit empty) when I specifically requested complete surveys.

Totally unclear here …

My opinion : it must return an empty array only : mean no response. Be"cause export return array of array.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose