建立自訂表單對應 creating-custom-form-mappings
當您在Adobe Campaign中建立自訂表格時,可能會想要在AEM中建立對應至該自訂表格的表單。
本檔案說明如何建立自訂表單對應。 當您完成本檔案中的步驟時,將為使用者提供事件頁面,讓他們註冊即將舉行的事件。 然後您透過Adobe Campaign跟進這些使用者。
先決條件 prerequisites
您必須安裝下列專案:
- Adobe Experience Manager
- Adobe Campaign Classic
另請參閱 將AEM與Adobe Campaign Classic整合 以取得詳細資訊。
建立自訂表單對應 creating-custom-form-mappings-2
若要建立自訂表單對應,您必須依照以下各節中詳細說明的這些高階步驟操作:
- 建立自訂表格。
- 擴充 種子 表格。
- 建立自訂對應。
- 根據自訂對應建立傳遞。
- 在AEM中建立表單,此表單將使用建立的傳遞。
- 提交表單以進行測試。
在Adobe Campaign中建立自訂表格 creating-the-custom-table-in-adobe-campaign
首先,在Adobe Campaign中建立自訂表格。 在此範例中,我們使用以下定義來建立事件表格:
<element autopk="true" label="Event" labelSingular="Event" name="event">
<attribute label="Event Date" name="eventdate" type="date"/>
<attribute label="Event Name" name="eventname" type="string"/>
<attribute label="Email" name="email" type="string"/>
<attribute label="Number of Seats" name="seats" type="long"/>
</element>
建立事件表格之後,請執行 更新資料庫結構精靈 以建立表格。
擴充種子表格 extending-the-seed-table
在Adobe Campaign中,選取 新增 若要建立 種子地址(nms) 表格。
現在,使用 事件 表格以擴充 種子 表格:
<element label="Event" name="custom_cus_event">
<attribute name="eventname" template="cus:event:event/@eventname"/>
<attribute name="eventdate" template="cus:event:event/@eventdate"/>
<attribute name="email" template="cus:event:event/@email"/>
<attribute name="seats" template="cus:event:event/@seats"/>
</element>
之後,執行 更新資料庫精靈 以套用變更。
建立自訂目標對應 creating-custom-target-mapping
在 管理/行銷活動管理 t,前往 目標對應 並新增一個T 目標對應。
建立自訂傳遞範本 creating-a-custom-delivery-template
在此步驟中,您會新增使用建立的傳遞範本 目標對應.
在 資源/範本,導覽至傳遞範本並複製現有的AEM傳遞。 當您按一下 至,選取建立事件 目標對應.
在AEM中建立表單 building-the-form-in-aem
在AEMCloud Service中,確定您已在 頁面屬性.
然後,在 Adobe Campaign 索引標籤中,選取在中建立的傳遞 建立自訂傳遞範本.
設定欄位時,請務必為表單欄位指定唯一的元素名稱。
設定欄位後,您需要手動變更對應。
在CRXDE-LITE中,移至 jcr:content (頁面的)節點並變更 acMapping 的內部名稱的value 目標對應.
在表單的設定中,如果不存在要建立的核取方塊,請務必勾選
提交表單 submitting-the-form
您現在可以提交表單,並在Adobe Campaign端驗證值是否已儲存。
疑難排解 troubleshooting
「元素'@eventdate'的值'02/02/2015'的型別無效(型別為'Event ([adb:event])')」
提交表單時,此錯誤會記錄在 error.log 在AEM中。
這是由於日期欄位的格式無效。 因應措施是提供 yyyy-mm-dd 做為值。