- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
autommatically create participant table
- ftaras
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago - 4 years 7 months ago #187715
by ftaras
autommatically create participant table was created by ftaras
hi,
i'm new to this forum and firs time working with limesurvay.
i would like to find a way to create and invite participants to the servay automatically. Right now using LimeSurvay API i'm able to create new survay and activate it.
I'm stuck with inviting of the participants... I can't find the way to create participants table and without it it's not possible to invite participants using add_participants method. i got error
i would appreciate any suggescion on how to get this work
thank you
i'm new to this forum and firs time working with limesurvay.
i would like to find a way to create and invite participants to the servay automatically. Right now using LimeSurvay API i'm able to create new survay and activate it.
I'm stuck with inviting of the participants... I can't find the way to create participants table and without it it's not possible to invite participants using add_participants method. i got error
Code:
"status": "No survey participants table"
i would appreciate any suggescion on how to get this work
thank you
Last edit: 4 years 7 months ago by ftaras.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 7 months ago #187718
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic autommatically create participant table
The table is created, when using activate_tokens. If no participants table is exisiting, it will be created.
api.limesurvey.org/classes/remotecontrol...thod_activate_tokens
api.limesurvey.org/classes/remotecontrol...thod_activate_tokens
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: ftaras
The topic has been locked.
- ftaras
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 7 months ago #187720
by ftaras
Replied by ftaras on topic autommatically create participant table
hi jelo, thank you for reply. I've tryed to invoke activate_token but nothing changed....
could you plese suggest what should i pass in "aAttributeFields" of the method?
i invoke the methods as follow:
and here is a listing of command execution:
could you plese suggest what should i pass in "aAttributeFields" of the method?
i invoke the methods as follow:
Code:
client.Method = "import_survey"; client.Parameters.Add("sSessionKey", SessionKey); client.Parameters.Add("sImportData", Base64Encode(yourImportDataString)); client.Parameters.Add("sImportDataType", "txt"); client.Post(); client.ClearParameters(); //------------------------------------------------------------------------------- client.Method = "activate_survey"; client.Parameters.Add("sSessionKey", SessionKey); client.Parameters.Add("iSurveyID", SurvID); client.Post(); client.ClearParameters(); //------------------------------------------------------------------------------- client.Method = "activate_tokens"; client.Parameters.Add("sSessionKey", SessionKey); client.Parameters.Add("iSurveyID", SurvID); client.Parameters.Add("aAttributeFields",partDataint); //------------------------------------------------------------------------------- client.Method = "add_participants"; client.Parameters.Add("sSessionKey", SessionKey); client.Parameters.Add("iSurveyID", SurvID); client.Parameters.Add("aTokenId",partData); client.Parameters.Add("bEmail", invmail); client.Post();
and here is a listing of command execution:
Code:
------------------------------------------------ Survey created. new survey id:112724 ------------------------------------------------ Survey activation result:{ "status": "OK", "pluginFeedback": null } ------------------------------------------------ Token activation:{ "status": "OK", "pluginFeedback": null } ------------------------------------------------ add participant to survey Send invitation result:{ "status": "No survey participants table" }
The topic has been locked.
- ftaras
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 7 months ago #187721
by ftaras
Replied by ftaras on topic autommatically create participant table
ok, it seems like aAttributeFields is optional and can be ommited.
Now i got stuck with aParticipantData, still can't get the correct format to send...
Now i got stuck with aParticipantData, still can't get the correct format to send...
The topic has been locked.