This API writes to the following data extensions:
Shared Items > Shared Data Extensions > UPMC > Sitecore > Hillman Clinical Trials > Hillman_Clinical_Trials_HOLDING (and Hillman_Clinical_Trials_HOLDING_TEST)
Shared Items > Shared Data Extensions > UPMC > Sitecore > Hillman Clinical Trials > Interactions > Hillman_Clinical_Trials_TY_TSDE and Hillman_Clinical_Trials_Service_TSDE
N/A
UPMC BU > CloudPages > Conversion Pixels > [API] Hillman Clinical Trials
<img src=”https://pages.upmc.com/hillman-clinical-trials” height=”1″ width=”1″ />
This form includes a checkbox to opt in to marketing communications.
/* allow marketing communications if the opt in checkbox is checked (true) */
IF @marketing_opt_in == 'true' THEN
VAR @ts_sub
SET @ts_sub = CreateObject("Subscriber")
SetObjectProperty(@ts_sub, "EmailAddress", @EmailAddress)
SetObjectProperty(@ts_sub, "SubscriberKey", @EmailAddress)
/* GET THE LIST */
SET @List = CreateObject("SubscriberList")
SetObjectProperty(@List, "ID", 20)
set @attr = CreateObject("Attribute")
SetObjectProperty(@attr, "Name", "MarketingOptIn")
SetObjectProperty(@attr, "Value", "true")
AddObjectArrayItem(@ts_sub , "Attributes", @attr)
/* ADD THE LIST TO CONTACT */
AddObjectArrayItem( @ts_sub, "Lists", @List )
/* UPDATE THE CONTACT */
InvokeUpdate(@ts_sub)
SET @err = 0
ENDIFA CloudPage form created by a flying cork dev to test the API configuration internally.
A dev version of the Sitecore form used for testing.
The production version of the Sitecore form.
A checklist utilized by the flying cork team to keep track of API tasks and deliverables.