A triggered campaign is a long running campaign that can be triggered from somewhere else. This trigger can come from our customer data platform and no coding would be needed, but with a little coding it can also come from your own tooling. For example when someone is registering for your site, or if resetting a persons password. The advantage of using a triggered campaign instead of a normal mail is that the template can be maintained within our web app, so no technical skills are needed. This makes it easy for your marketeer to change the campaign, without the need for a developer. Your marketeer can also see the statistics of this campaign which makes it easier to see how this campaign is performing.
You can create a triggered campaign via our web app. This makes it easy to add a subject, from address and design your email.
You can use whatever merge field you want in your campaign, you just have to make sure your trigger is also including a value for this field. If no value is provided in the trigger the value will be an empty string. To add a merge field, simply add it in the campaign settings tab while creating the triggered campaign. After it is created you can use it in the editor while designing your campaign.
To send a trigger via code you'll need the accountID, the campaignID, the to address and the mergefield values. The accountID is the default accountID that is necessary to use the email campaigns api. In the intro section we already explained how you can obtain your accountID. To obtain your campaignID, you can go to the edit modus of the campaign and copy it from the url. Of course you can also call the Get Campaigns method of this api. The details on the send triggered mail api method can be found here.