Welcome to the LimeSurvey Community Forum

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

Invitation email send by a trigger in different system

  • survey_folk
  • survey_folk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #221333 by survey_folk
Hello fellows,

Im wondering if thats achiveble with yours software:

I want to send invitation email to specific person on some event triggered in the different system - lets call it system A. Email template needs to have URL to the survey with parameters (?simple_param=value). Parameter values will came from system A.

Can I use your API ( www.limesurvey.org/manual/RemoteControl_2_API ) for that?
I found only invite_participants(string $sSessionKey,integer $iSurveyID,array $aTokenIds = null,boolean $bEmail = true): array
function but it seems I would need recipient ID first in order to sent invitation email out.

How easy that will be to achieve?

Regards
Jasper.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #221336 by tpartner
Use the add_participants() function first.

Here is a similar example - forums.limesurvey.org/forum/development/...-custom-token#193943

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • survey_folk
  • survey_folk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #221338 by survey_folk
Thanks for your quick response.

That would be fairly easy.

It will be achievable when calling invite_participants function to add to the survey email template parameters to the survey URL? (So to get something like @@SURVEYURL@@?param1=value1&param2=value2 in the email template that goes to the User?

I want to have survey form prefilled when User clicks on the email survey link.

Thanks
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 6 months ago #221343 by DenisChenu
@@SURVEYURL@@?param1={TOKEN:ATTRIBUTE_1}&param2={TOKEN:ATTRIBUTE_2} for example.
You set the attribute when you create user.

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 topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose