问题描述
我在尝试在 DE 中组合多行时遇到问题。例如,我想采用以下数据(保单数据)并合并保单编号相同的数据,并在电子邮件中显示该信息。我也在下面复制了我的 AMPscript。
Policy_data
Policy_Number|First_Name|Relationship
1111|Steve|Primary
1111|Mary|Spouse
1111|Dave|Child
1111|Wendy|Child
2222|Morgan|Primary
2222|Tom|Child
3333|Greg|Primary
4444|Kayla|Primary
<html>
…
Hi,your policy has the following members:
<table>
%%[
set @rows = LookupRows(Policy_Data,Policy_Number,Policy_Number)
set @rc = RowCount(@rows)
for @i = 1 TO @rc DO
set @row = Row(@rows,@i)
set @fName = Field(@row,first_name)
set @relationship = Field(@row,relationship)
]%%
<tr><td>%%=v(@fName)=%%</td><td>%%=v(@relationship)=%%</td></tr>
%%[next @r]%%
%%[end]%%
</table>
</html>
想知道是否有人有过类似的经历?
谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)