Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Netsuite-如何从工作流将保存的搜索结果保存到可编写脚本的电子邮件模板中_Netsuite_Saved Searches - Fatal编程技术网

Netsuite-如何从工作流将保存的搜索结果保存到可编写脚本的电子邮件模板中

Netsuite-如何从工作流将保存的搜索结果保存到可编写脚本的电子邮件模板中,netsuite,saved-searches,Netsuite,Saved Searches,因此,我正在尝试创建一封电子邮件,通过工作流处理保存的搜索,将过期余额和详细信息发送给客户。我想使用可编写脚本的电子邮件模板来创建我们发送给客户的信息的布局。我确实考虑过使用这个声明,但是当我们希望我们发送的数据在电子邮件的中间时,它会让你很难看到报表的唯一设置高于电子邮件文本或以下。 我的问题是,在脚本模板中,我有以下声明 <#if results?has_content> <table style="width:100%; margin-top:10px;"><

因此,我正在尝试创建一封电子邮件,通过工作流处理保存的搜索,将过期余额和详细信息发送给客户。我想使用可编写脚本的电子邮件模板来创建我们发送给客户的信息的布局。我确实考虑过使用这个声明,但是当我们希望我们发送的数据在电子邮件的中间时,它会让你很难看到报表的唯一设置高于电子邮件文本或以下。

我的问题是,在脚本模板中,我有以下声明

<#if results?has_content>
<table style="width:100%; margin-top:10px;"><!-- Start items -->
<thead>
    <tr>
    <th colspan="6">Transaction Number</th>
    <th colspan="3">Invoice Date</th>
    <th colspan="3">Due Date</th>
    <th colspan="9">REFERENCE</th>
    <th align="right" colspan="4">Invoice Amount</th>
    <th align="right" colspan="4">Remaining Amount</th>
    <th align="right" colspan="4">Payment / Credit Memo</th>
    </tr>
</thead>
<#list results as result>
<tbody>
    <tr>
    <td colspan="6">${result.tranid}</td>
    <td colspan="3">${result.trandate}</td>
    <td colspan="3">${result.duedate}</td>
    <td colspan="9">${result.otherrefnum}</td>
    <td align="right" colspan="4"><#if results.type == "CustInvc">${result.amount}</#if></td>
    <td align="right" colspan="4">${result.amountremaining}</td>
    <td align="right" colspan="4"><#if results.type == "CustCred">${result.amount}</#if></td>
    </tr>
</tbody>
</#list></table>
</#if>

交易编号
发票日期
到期日
参考文献
发票金额
剩余金额
付款/信用备忘录
${result.tranid}
${result.trandate}
${result.duedate}
${result.otherrefnum}
${result.amount}
${result.amontremaining}
${result.amount}
但是,当计划的工作流启动并发送电子邮件时,我没有得到表格,因为结果似乎没有任何内容。这样能做到吗

之所以没有编写脚本“我更愿意这样做”,是因为当我运行测试脚本时,它们超时,因为收集的数据量太大


非常感谢您的帮助。

您只能在可编写脚本的电子邮件模板中找到记录对象的来源