Welcome to the LimeSurvey Community Forum

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

Retrieve responses from a specific survey using the response ID

  • raptyk
  • raptyk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 1 week ago #267012 by raptyk
In the API documentation, I can see that it's possible to fetch all responses, but in my scenario, this isn't the most optimal solution. After the survey is completed, the "end URL" redirects the user to an external program, which, based on the received survey response ID, needs to fetch the answers through the API. What would be the best way to achieve this?

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 1 week ago #267037 by DenisChenu
See api.limesurvey.org/classes/remotecontrol...hod_export_responses
iFromResponseID == iToResponseID == the Saved id

You can get the current id in the endurl with {SAVEDID}

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 following user(s) said Thank You: raptyk

Please Log in to join the conversation.

  • raptyk
  • raptyk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 1 week ago #267042 by raptyk
I’ve gone through the documentation several times, but I missed this part.

Thanks for the tip!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose