Create New Customer and Send Message

Overview

This scenario creates an event for a customer who is not in the Connect database. In this case, Connect creates a new customer record and automatically subscribes the customer to the conversation before sending the message.

XML

The XML is almost identical to the previous scenario except that it is directed to [email protected]. Recall that [email protected] has no customer record in the Connect database.

<?xml version="1.0" encoding="UTF-8"?>
<kanaRoot>
<EventRequest Id="" CompanyName="default">
<Customer KeyField="EmailAddress" EmailAddress="[email protected]">
</Customer>
<Event CampaignName="ETCamp1">
<ExternalXML>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Greatest Hits</title>
<artist>Dolly Parton</artist>
<country>USA</country>
<company>RCA</company>
<price>9.90</price>
<year>1982</year>
</cd>
</catalog>
</ExternalXML>
</Event>
</EventRequest>
</kanaRoot>


Result

A new customer is created in Connect with the Email ID [email protected]. The customer is subscribed to conv. An email is sent to [email protected] with content that looks similar to the result in the previous scenario.