%%[ var @EmailAddress, @SubmitDate, @Brand, @lastname, @firstname, @guid SET @SubmitDate = now() SET @Brand = "Carnation" Set @EmailAddress = RequestParameter("email") Set @firstName = RequestParameter("firstname") Set @lastName = RequestParameter("lastname") Set @guid = RequestParameter("guid") Set @brand_id = "20" UpsertData("NUK2899101_carnation_x_simplycook",1,"EmailAddress", @EmailAddress, "Brand", @Brand,"SubmitDate", @SubmitDate, "firstname", @firstname, "lastname", @lastname, "SubscriberKey", @guid) /* Trigger Send Object Creation */ VAR @ts, @tsDef, @ts_extkey, @ts_email, @ts_sub, @ts_statusCode, @ts_statusMsg, @errorCode, @attr SET @ts = CreateObject("TriggeredSend") SET @tsDef = CreateObject("TriggeredSendDefinition") SET @ts_subkey = @guid SET @ts_extkey = "Carnation_Welcome_Trigger" SET @ts_email = @EmailAddress SetObjectProperty(@tsDef, "CustomerKey", @ts_extkey) SetObjectProperty(@ts, "TriggeredSendDefinition", @tsDef) SET @ts_sub = CreateObject("Subscriber") SetObjectProperty(@ts_sub, "EmailAddress", @ts_email) SetObjectProperty(@ts_sub, "SubscriberKey", @ts_subkey) SET @attr = CreateObject("Attribute") SetObjectProperty(@attr, "Name", "hero_name") SetObjectProperty(@attr, "Value", @firstName) AddObjectArrayItem(@ts_sub, "Attributes", @attr) SET @attr = CreateObject("Attribute") SetObjectProperty(@attr, "Name", "brand") SetObjectProperty(@attr, "Value", @brand_id) AddObjectArrayItem(@ts_sub, "Attributes", @attr) AddObjectArrayItem(@ts, "Subscribers", @ts_sub) SET @ts_statusCode = InvokeCreate(@ts, @ts_statusMsg, @errorCode) ]%%
Carnation logo

Thank you!
Please check your email for your Carnation recipe e-book.

Browse our recipes