是否可以在没有函数 BuildRowSetFromString 的情况下使用 AMPScript 创建数组?

Is it possible to create an array with AMPScript without function BuildRowSetFromString?

除了函数 BuildRowSetFromString 中的字符串之外,还有其他方法可以在 AMPScript 中创建数组吗?

来自官方文档: http://help.exacttarget.com/en/documentation/exacttarget/content/ampscript/ampscript_syntax_guide/content_ampscript_functions/#BuildRowSetFromString

没错,ampscript中没有数组数据类型。 所以,你必须找到创造性的方法来模仿这种行为。使用 BuildRowSetFromString 和 BuildRowSetFromXML 是不错的选择。

服务器端JavaScript 允许您创建数组。您可以编写同时使用 amscript 和 ssjs 的代码。可以使用 "getValue" 和 "setValue" 函数来回传递变量。

参考: http://wiki.memberlandingpages.com/en/documentation/exacttarget/content/server_side_javascript/server_side_javascript_syntax_guide/platform_server_side_javascript_functions/retrieving_ampscript_variables_in_server_side_javascript_using_the_variable_object/

另一种选择是使用 InsertDE、UpdateDE、UpsertDE 和 Lookup 函数将值读取和写入数据扩展。 这可能会给您的流程带来更多开销。但是,具有允许创建多维数组的额外好处。

参考: http://wiki.memberlandingpages.com/en/documentation/exacttarget/content/ampscript/ampscript_syntax_guide/data_extension_ampscript_functions/