無法看到電子郵件中「長文字」欄位的任何值

說明 description

環境

  • Campaign Standard

問題/症狀

嘗試在任何自訂資源(例如從設定檔擴充的表格)中使用「長文字」型別建立文字欄位時。

發佈後,該欄位會填滿文字,而嘗試在電子郵件中顯示來自此欄位的文字時,除了此變數<%= context.profile.cusTestMemoField %>.以外,看不到任何內容

按一下側邊欄上的「data」連結時,文字會以JSON顯示,但無法在電子郵件中的任何位置列印此欄位的值。

解決方法 resolution

問題位於使用長文字欄位發佈cusResource時所產生的srcSchemas中。

欄位產生為:

<attribute category="99_none" label="longText" name="cusLongText" type="memo"/>

在資源定義中會以下列方式參照和:

<attribute name="cusLongText" template="ext:recipient:recipient/@cusLongText"/>

以上說明是一致的,但同樣是錯誤的。

正確語法:

<element category="99_none" label="longText" name="cusLongText" type="memo"/>

引用為:

<element name="cusLongText" template="ext:recipient:recipient/cusLongText"/>
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f