當應用程式需要存取現有表格、SQL檢視或遠端資料庫資料時,請使用下列資料在Adobe Campaign中建立其架構:
要建立相應的方案,請應用以下階段:
編輯Adobe Campaign樹狀結構的Administration>Configuration>Data schemas節點,然後按一下New。
選擇Access data from an existing table or an SQL view選項,然後按一下Next。
選擇表或現有視圖:
調整架構內容以符合您的需求。
必須在<srcSchema>
根元素上以view="true"屬性填充模式,才能不生成表建立SQL指令碼。
範例 :
<srcSchema name="recipient" namespace="cus" view="true">
<element name="recipient" sqltable="dbsrv.recipient">
<key name="email">
<keyfield xpath="@email"/>
</key>
<attribute name="email" type="string" length="80" sqlname="email"/>
</element>
</srcSchema>
同盟資料存取- FDA選項允許您訪問儲存在外部資料庫中的資料。
要在結構上執行的訪問外部資料庫中資料的配置在本頁中有詳細說明。