Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Remote Control feature - add participants to the central participant table?

Remote Control feature - add participants to the central participant table? 11 Monate 21 Stunden her #101801

  • rossokr
  • rossokrs Avatar
  • OFFLINE
  • Bronze Donor
  • Beiträge: 5
  • Karma: 0
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Remote Control feature - add participants to the central participant table? 2 Monate 3 Wochen her #111265

  • jj8931
  • jj8931s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 4
  • Karma: 0
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Remote Control feature - add participants to the central participant table? 2 Monate 3 Wochen her #111275

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6435
  • Dank erhalten: 840
  • Karma: 249
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Remote Control feature - add participants to the central participant table? 2 Monate 3 Wochen her #111283

  • farfadet
  • farfadets Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 8
  • Dank erhalten: 2
  • Karma: 0
Hi there,

I'm also working on a Java application to use the Json-RPC...

To jj8931 B) : 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":"Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!","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.
Letzte Änderung: 2 Monate 3 Wochen her von farfadet.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: DenisChenu, jj8931

Remote Control feature - add participants to the central participant table? 2 Monate 3 Wochen her #111287

  • jj8931
  • jj8931s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 4
  • Karma: 0
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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Ladezeit der Seite: 0.141 Sekunden
Donation Image