Email Campaigns & Actions

Important Update to Custom Scripting

SurveyGizmo's CustomScript Action now supports the LUA programming language. Visit our NEW Lua Scripting Resources!

Legacy Custom Scripting Language Deprecation Plans 

  1. New accounts (created after October 29, 2018) will only have the option to use Lua in scripts.
  2. As of October 29, 2018 Custom Scripting Actions will default to Lua as the scripting type in the Custom Scripting Action for accounts created before this date. You will be able to switch to the Legacy Custom Scripting; though we highly encourage using Lua.
  3. In the long term, Legacy Custom Scripting Actions will be switched to read-only. The exact date on this is to be determined; we will send notifications well ahead of time.

These functions manage your email contact lists, create email content and trigger send email actions.

sgapAddContactToInvite - This function adds the given contact to the given invite.

sgapiRemoveContactFromInvite - This function removes the given contact from the given invite.

sgapAddContactToList - This function adds or updates a contact to the given contact list (as opposed to an email campaign).

sgapiRemoveContactFromList - This function removes a contact from a Contact List.

sgapiSetHTMLEmail / sgapiSetTEXTEmail - These functions sets either the HTML or TEXT content of a send email action.

sgapiEmailSend - This function constructs and sends an email at the runtime of your custom script.