Cubic Compass Software

- Support Wiki

Dialogue Script : CampaignResponder

Modified: 2008/07/05 07:38 by mleach - Categorized as: Dialogue Script
Syntax
<dlog:CampaignResponder id={unique control ID} NotificationParam={CGI param for email ID} 
StatusParam={CGI Param for response status} CampaignParam={CGI Param for Campaign ID} 
LeadParam={CGI Param for Lead ID} ContactParam={CGI Param for Contact ID}
></dlog:CampaignResponder>

Usage
Creates or updates a Salesforce Campaign Member response status based on CGI params.

Attributes
id: (Required) A unique identifier for the control. Multiple campaign responders may be used on a page, but each responder control must have a unique ID.
NotificationParam: (Optional) Default='nid'. Defines the URL parameter containing the unique ID of an email or notification message. For emails delivered by i-Dialogue, the CampaignID and Lead/Contact ID can be inferred from the nid without the need for any other parameters.
StatusParam: (Optional) Default='status'. Defines the URL parameter containing the response status.
CampaignParam: (Optional) Default='cid'. Defines the URL parameter containing the Salesforce Campaign ID.
LeadParam: (Optional) Default='lead'. Defines the URL parameter containing the Salesforce Lead ID.
ContactParam: (Optional) Default='contact'. Defines the URL parameter containing the Salesforce Contact ID.


The dialogue below consists of an outbound email message template for inviting a person to an event, and an inbound webpage response containing a CampaignResponder control for updating the status to the event.

Example Usage in Email Template
Are you attending this event?
<a href="http://www.domain.com/response.aspx?nid=#NotificationID#&status=Attending">Yes</a>
<a href="http://www.domain.com/response.aspx?nid=#NotificationID#&status=NotAttending">No</a>
<a href="http://www.domain.com/response.aspx?nid=#NotificationID#&status=Maybe">Maybe</a>

Example definition on web page (Response.aspx referred to in example above)
<h1>Thank You</h1>
Your response to this event has been updated.
<dlog:CampaignResponder id="CampaignResponderID"></dlog:CampaignResponder>
<-- The CampaignResponder control above extracts the Campaign and User context from the "nid" parameter 
and updates the CampaignMember response status from the value provided in the "status" parameter -->

ScrewTurn Wiki version 2.0.35. Some of the icons created by FamFamFam.