Welcome to the LimeSurvey Community Forum

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

Automatically transfer responses to other DB?

  • pschmidt
  • pschmidt's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #164962 by pschmidt
Hello everyone,

I'd like to export the responses from a survey to another DB. This should happen once a day and I need the submit date, responses by questions and first and last name. I'm on 3.1.0.

I assume that I have to use the API functions list_participants to filter for the current date and then use export_responses_by_token for the answers and submit date. I tested with Postman, however I can't seem to filter for the date correctly. This is my request:

{"method":"list_participants",
"params":{
"sSessionKey":"XXX",
"iSurveyID":XXX,
"iStart":0,
"iLimit":-1,
"bUnused":false,
"aAttributes":false,
"aConditions":{"submitdate":"2018-02-16"}
},
"id":1}

This just returns all participants. Filtering for other stuff like email works. Am I doing something wrong?

Also, what would be the best way to automate this?
The topic has been locked.
More
6 years 8 months ago #164969 by jelo
Might be a bug. Instead of submitdate you might try:
"completed": "2018-02-17 00:00"
I haven't used the API for a longer time and I'm not using Postman.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose