SMS Invite

Description:

script:SmsInvite(token,qsId,baselineId,sendoutId,altId,countryCode,phoneNumer,p1,v1,p2,v2....)

Add a SMS request to the QuickSample

Parameters:

This function has exactly 7 or more parameters:

  • Token
    • The client API token
  • QsId
    • The client ID
  • BaselineId
    • The baseløine of the survey top be sent an invite
  • SendoutId
    • The id of the QuickSample sendoutId, this is the "template for the SMS
  • Altid
    • Optional altid, that will be used in the invite
  • CountryCode
    • Optional country prefix code to be added to the phone number
  • PhoneNumber
    • The phone number to be sent the SMS
  • P1,V1,P2,V2...
    • Optional name/value pairs that will be added. These can be used in the interview as sms_P1, sms_P2 etc, and also can be substituted ih the SMS message if it contains placeholders like [p1], [p2] etc.

Example:

script:SmsInvite('eeeeeeee-9774-4dab-b15e-ca654eb2276c','88888888-6127-43b3-a363-7940a6ec7e1b','22222222-6391-4694-8e5f-fce9402b0a13','77777777-f3b5-4b16-a7a9-63d95864b027',\@sys_respguid,'47',\phone.a,'message',\message.a)