Oracle Responsys RPL:如果项目已从 table 中删除,如何跳过发送电子邮件
Oracle Responsys RPL: How to skip sending an email if items have been deleted from table
我的电子邮件中有以下 RPL 代码:
<#data ALERTS as alerts>
<#filter USER_ID1=CONTACTS_LIST.CUSTOMER_ID_1>
<#fields AD_ID_LIST1>
<#assign cellCount = 0>
<#list alerts.AD_ID_LIST1?split(r'\s*,\s*', 'r') as idString>
<#data AD_TABLE as adtable>
<#filter AD_ID="${idString}">
<#fields AD_ID TITLE IMAGES DESCRIPTION PRICE_AMOUNT PRICE_TYPE CATEGORY_ID1 AD_STATE>
<#if idstring?? && adtable.AD_STATE='ACTIVE'>
<#assign cellCount = cellCount + 1>
<#if cellCount % 2 == 1 && idString_has_next == false>
<!-- INCLUDE SINGLE -->
<#elseif cellCount % 2 == 1 && idString_has_next == true>
<!-- Include LEFT -->
<#else>
<!-- INCLUDE RIGHT -->
</#if>
</#if></#data></#list></#data>
如果 cellCount = 0,我需要做的是在确定没有要显示的广告 ID 后,让电子邮件跳过发送给用户(无论是状态未激活还是已从 table.
有人知道怎么做吗?
您可以使用跳过指令,例如:
<#if cellCount == 0 >
<#skip "skip comment or description" >
</#if>
我的电子邮件中有以下 RPL 代码:
<#data ALERTS as alerts>
<#filter USER_ID1=CONTACTS_LIST.CUSTOMER_ID_1>
<#fields AD_ID_LIST1>
<#assign cellCount = 0>
<#list alerts.AD_ID_LIST1?split(r'\s*,\s*', 'r') as idString>
<#data AD_TABLE as adtable>
<#filter AD_ID="${idString}">
<#fields AD_ID TITLE IMAGES DESCRIPTION PRICE_AMOUNT PRICE_TYPE CATEGORY_ID1 AD_STATE>
<#if idstring?? && adtable.AD_STATE='ACTIVE'>
<#assign cellCount = cellCount + 1>
<#if cellCount % 2 == 1 && idString_has_next == false>
<!-- INCLUDE SINGLE -->
<#elseif cellCount % 2 == 1 && idString_has_next == true>
<!-- Include LEFT -->
<#else>
<!-- INCLUDE RIGHT -->
</#if>
</#if></#data></#list></#data>
如果 cellCount = 0,我需要做的是在确定没有要显示的广告 ID 后,让电子邮件跳过发送给用户(无论是状态未激活还是已从 table.
有人知道怎么做吗?
您可以使用跳过指令,例如:
<#if cellCount == 0 >
<#skip "skip comment or description" >
</#if>