- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Remote Control feature - add participants to the central participant table?
- rossokr
- Topic Author
- Offline
- New Member
Less
More
10 years 5 months ago #101801
by rossokr
Remote Control feature - add participants to the central participant table? was created by rossokr
Right now there is the ability to add records to the token table via a remote method called add_participants. Is there any discussion of allowing this method to possibly insert an actual record into the central participant table? It seems like that would be the natural result of that method. So maybe the method names would be:
add_participants: adds participants to the database
add_tokens: adds tokens to a particular survey
Please let me know if this makes sense or is not feasible
add_participants: adds participants to the database
add_tokens: adds tokens to a particular survey
Please let me know if this makes sense or is not feasible
The topic has been locked.
- jj8931
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
9 years 8 months ago #111265
by jj8931
Replied by jj8931 on topic Remote Control feature - add participants to the central participant table?
Is there any update on this. I am creating an automated process to send a survey on completion of projects triggered from a event in our ERP system.
I am able to add_participents but the emails are not being sent because the user is not in the central participant list.
I am able to add_participents but the emails are not being sent because the user is not in the central participant list.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
9 years 8 months ago #111275
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 Remote Control feature - add participants to the central participant table?
Hi,
You can propose a patch for LimeSurvey core in our github github.com/LimeSurvey/LimeSurvey/pulls .
And for feature request : www.limesurvey.org/en/community-services/feature-requests
You can propose a patch for LimeSurvey core in our github github.com/LimeSurvey/LimeSurvey/pulls .
And for feature request : www.limesurvey.org/en/community-services/feature-requests
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 topic has been locked.
- farfadet
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 2
9 years 8 months ago - 9 years 8 months ago #111283
by farfadet
Replied by farfadet on topic Remote Control feature - add participants to the central participant table?
Hi there,
I'm also working on a Java application to use the Json-RPC...
To jj8931 : You cannot send you invitation NOT because your participant is not in your central participant list BUT BECAUSE you're lacking the "emailstatus":"OK" in your add_participant participantData...
Also if you want a per participant personalized Survey access token think:
- in your "params" to set "createTokenKey":"0" (false or "false" instead of "0" is not recognized !) to avoid creation of an automatic token and
- in your "participantData" to add the personalized "token":"YOURPERSONALTOKEN"
Here one of my demands that works:
EntityCorps : {"method":"add_participants","params":{"sessionkey":"YOURSESSIONKEY","surveyID":"YOURSURVEYID","participantData":[{"lastname":"testNomClient","email":"testmail@gmail.com","emailstatus":"OK","token":"YOURPERSONALTOKEN"}],"createTokenKey":"0"},"id":1}
Answer : {"id":1,"result":[{"sent":"N","remindersent":"N","remindercount":0,"completed":"N","usesleft":1,"lastname":"testNomClient","email":"testmail@gmail.com","emailstatus":"OK","token":"testNomClient1testId","tid":"26","participant_id":null,"firstname":null,"language":null,"blacklisted":null,"validfrom":null,"validuntil":null,"mpid":null,"attribute_1":null}],"error":null}
So I got a "ready to send email" participant but with no "language" in the participant list .
I tried to add the absent "language":"Français" ... which ends because of the "ç" with an {"id":null,"result":null,"error":"unable to decode malformed json"}. Probably I must set somewhere an UTF-8 encoding but where ?
Also, I never succeeded in adding anything in the language field of the participant list even trying "language":"Francais", "language":"Anglais", "language":"English" or "language":"english"
If anybody got an idea, I take...
The demand : {"method":"invite_participants","params":{"sSessionKey":"YOURSESSIONKEY","iSurveyID":"YOURSURVEYID"},"id":1}
results in answer : {"id":1,"result":{"26":{"name":" testNomClient","email":"testmail@gmail.com","status":"OK"},"status":"0 left to send"},"error":null}
and email sending succeeds even with the empty language field...
Hope this helps.
I'm also working on a Java application to use the Json-RPC...
To jj8931 : You cannot send you invitation NOT because your participant is not in your central participant list BUT BECAUSE you're lacking the "emailstatus":"OK" in your add_participant participantData...
Also if you want a per participant personalized Survey access token think:
- in your "params" to set "createTokenKey":"0" (false or "false" instead of "0" is not recognized !) to avoid creation of an automatic token and
- in your "participantData" to add the personalized "token":"YOURPERSONALTOKEN"
Here one of my demands that works:
EntityCorps : {"method":"add_participants","params":{"sessionkey":"YOURSESSIONKEY","surveyID":"YOURSURVEYID","participantData":[{"lastname":"testNomClient","email":"testmail@gmail.com","emailstatus":"OK","token":"YOURPERSONALTOKEN"}],"createTokenKey":"0"},"id":1}
Answer : {"id":1,"result":[{"sent":"N","remindersent":"N","remindercount":0,"completed":"N","usesleft":1,"lastname":"testNomClient","email":"testmail@gmail.com","emailstatus":"OK","token":"testNomClient1testId","tid":"26","participant_id":null,"firstname":null,"language":null,"blacklisted":null,"validfrom":null,"validuntil":null,"mpid":null,"attribute_1":null}],"error":null}
So I got a "ready to send email" participant but with no "language" in the participant list .
I tried to add the absent "language":"Français" ... which ends because of the "ç" with an {"id":null,"result":null,"error":"unable to decode malformed json"}. Probably I must set somewhere an UTF-8 encoding but where ?
Also, I never succeeded in adding anything in the language field of the participant list even trying "language":"Francais", "language":"Anglais", "language":"English" or "language":"english"
If anybody got an idea, I take...
The demand : {"method":"invite_participants","params":{"sSessionKey":"YOURSESSIONKEY","iSurveyID":"YOURSURVEYID"},"id":1}
results in answer : {"id":1,"result":{"26":{"name":" testNomClient","email":"testmail@gmail.com","status":"OK"},"status":"0 left to send"},"error":null}
and email sending succeeds even with the empty language field...
Hope this helps.
Last edit: 9 years 8 months ago by farfadet.
The following user(s) said Thank You: DenisChenu, jj8931
The topic has been locked.
- jj8931
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
9 years 8 months ago #111287
by jj8931
Replied by jj8931 on topic Remote Control feature - add participants to the central participant table?
I have confirmed this is the resolution. I have been looking over all of the API guides and don't find this parameter identified anywhere. Did I just miss it? Should we request this to be added to the API documentation?
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
7 years 2 days ago #153116
by Ben_V
Related discussion (April 2017) at :
www.limesurvey.org/forum/installation-a-...trol-2/153115#153115
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Remote Control feature - add participants to the central participant table?
farfadet wrote: - in your "params" to set "createTokenKey":"0" (false or "false" instead of "0" is not recognized !) to avoid creation of an automatic token and
- in your "participantData" to add the personalized "token":"YOURPERSONALTOKEN"
Related discussion (April 2017) at :
www.limesurvey.org/forum/installation-a-...trol-2/153115#153115
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.