在以下兩種情況下,需要建立目標對應:
目標對應建立精靈將協助您建立使用自訂表格所需的所有結構描述。
建立目標對應之前,需要完成數個設定,Adobe Campaign才能使用新的收件者資料結構描述運作。
若要這麼做,請套用下列步驟:
建立新的資料結構,整合您要使用的自訂表格欄位。
如需詳細資訊,請參閱 結構描述參考(xtk:srcSchema).
在我們的範例中,我們將建立客戶結構,這是一個非常簡單的表格,包含下列欄位:ID、名字、姓氏、電子郵件地址、行動電話號碼。 目的是能夠傳送電子郵件或簡訊警示給儲存在此表格中的個人。
結構描述範例(cus:individual)
<srcSchema name="individual" namespace="cus" label="Individuals">
<element name="individual">
<key name="id" internal="true">
<keyfield xpath="@id"/>
</key>
<attribute name="id" type="long" length="32"/>
<attribute name="lastName" type="string" length="100"/>
<attribute name="firstName" type="string" length="100"/>
<attribute name="email" type="string" length="100"/>
<attribute name="mobile" type="string" length="100"/>
</element>
</srcSchema>
使用="true"屬性將您的結構描述宣告為外部檢視。 請參閱 檢視屬性.
<srcSchema desc="External recipient table" namespace="cus" view="true"....>
...
</srcSchema>
如果您需要新增直接郵件地址,請使用下列結構型別:
<element advanced="true" name="postalAddress" template="nms:common:postalAddress">
<attribute expr="SubString(JuxtWords(Smart([../infos/@firstname]), Upper([../infos/@name])), 1, 80)"
name="line1"/>
<attribute expr="Upper([../address/@line2])" name="line2"/>
<attribute expr="Upper([../address/@line])" name="line3"/>
<attribute expr="Upper([../address/@line])" name="line4"/>
<attribute expr="Upper([../address/@line])" name="line5"/>
<attribute expr="Upper([../address/@line])" name="line6"/>
<attribute _operation="delete" name="line7"/>
<attribute _operation="delete" name="addrErrorCount"/>
<attribute _operation="delete" name="addrQuality"/>
<attribute _operation="delete" name="addrLastCheck"/>
<element expr="@line1+'n'+@line2+'n'+@line3+'n'+@line4+'n'+@line5+'n'+@line6"
name="serialized"/>
<attribute expr="AllNonNull2([../address/@line], [../infos/@name])" name="addrDefined"/>
</element>
按一下 Administration > Campaign management > Target mappings 節點。
按一下 新增 按鈕以開啟目標對應建立精靈。
輸入 標籤 欄位並選取您剛在中建立的結構 目標維度 欄位。
在 編輯地址表單 視窗,選取符合各種傳送地址的結構描述欄位。 在此,我們可以 @email 和 @mobile 欄位。
在以下內容中 儲存 視窗,輸入 擴充功能結構描述的尾碼 欄位來區分Adobe Campaign提供的新方案與現成可用的方案。
按一下 Define new additional fields 以選取您要在傳送中鎖定的維度。
依預設,排除管理會儲存在與訊息相同的表格中。
檢查 產生儲存結構描述以進行追蹤 方塊來設定連結至目標對應的追蹤儲存。
Adobe Campaign不支援多個收件者結構描述(也稱為目標定位結構描述),連結至相同的broadlog和/或trackinglog結構描述。 否則,這可能會導致之後資料協調出現異常。 如需詳細資訊,請參閱 建議和限制 頁面。
在 擴充功能 視窗,選取您要產生的選用結構描述(可用結構描述清單取決於Adobe Campaign平台上安裝的模組)。
按一下 儲存 按鈕以關閉精靈。
精靈會使用啟動結構描述來建立使新目標對應運作所需的所有其他結構描述。
使用新結構作為傳送目標的方法有兩種: