- Posts: 24
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
[SOLVED] How to export token properties when exporting responses from the API ?
- orsayman
- Topic Author
- Offline
- Junior Member
Less
More
2 years 9 months ago #218366
by orsayman
How to export token properties when exporting responses from the API ? was created by orsayman
Hello,
I'm trying to export the responses with the Remote Control API. The web interface allows to download token properties (first and last name, email address and, more importantly for me, user defined properties) alongside the responses themselves.
Is there a way to do that with the export_responses RPC ? If I'm correct the aFields parameter is designed to filter the many properties of the responses (essentially the ID and the questions) so I have to query the participants separately (with the user defined properties) and join the 2 informations (using the token for instance).
Thanks in advance,
Mathieu
I'm trying to export the responses with the Remote Control API. The web interface allows to download token properties (first and last name, email address and, more importantly for me, user defined properties) alongside the responses themselves.
Is there a way to do that with the export_responses RPC ? If I'm correct the aFields parameter is designed to filter the many properties of the responses (essentially the ID and the questions) so I have to query the participants separately (with the user defined properties) and join the 2 informations (using the token for instance).
Thanks in advance,
Mathieu
The topic has been locked.
- orsayman
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
2 years 9 months ago #218396
by orsayman
Replied by orsayman on topic How to export token properties when exporting responses from the API ?
Any idea ?
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
2 years 9 months ago #218405
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to export token properties when exporting responses from the API ?
2 solution
1. get partcipant with another request : api.limesurvey.org/classes/remotecontrol...rticipant_properties
2. Create a plugin extensions.sondages.pro/development-and-...i/documentation.html
1. get partcipant with another request : api.limesurvey.org/classes/remotecontrol...rticipant_properties
2. Create a plugin extensions.sondages.pro/development-and-...i/documentation.html
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: orsayman
The topic has been locked.
- orsayman
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
2 years 9 months ago #218436
by orsayman
Replied by orsayman on topic [SOLVED] How to export token properties when exporting responses from the API ?
Thanks (I will choose option 1).
The topic has been locked.
- orsayman
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
2 years 8 months ago #218591
by orsayman
Replied by orsayman on topic [SOLVED] How to export token properties when exporting responses from the API ?
Just to mention that I used list_participants instead of get_participant_properties (because it reduces the number of requests) and join them with pandas (I use python).
The following user(s) said Thank You: DenisChenu, tpartner
The topic has been locked.