簡體   English   中英

嘗試鏈接數據,然后使用 ampscript 顯示不同的內容塊

[英]Trying to link data and then using ampscript to display different content blocks

我正在嘗試從另一個(共享)DE 中引入數據,然后使用 IF 語句根據結果顯示特定的內容塊。 我設法擺脫了錯誤,但沒有顯示內容塊。 我哪里錯了?

SET @CustomerContactable = Lookup ('ENT.Customerdata', 'CustomerContactable', 'Id', @SubscriberKey)

IF @CustomerContactable == 'True' THEN SET @BodyContent = ContentBlockbyId("127410") ELSE 

SET @BodyContent = ContentBlockbyId("127411") ENDIF]%%```

您的代碼塊不顯示實際的內容塊。 它僅根據數據行上的“查找”function“設置”內容塊。 您需要添加%%=TreatAsContent(@BodyContent)=%%

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM