我無法在文檔或此處找到答案。是否可以腳本發送語句給客戶?謝謝你提供的所有幫助。SuiteScript腳本發送語句
0
A
回答
0
我在SuiteAnswers中找到了它,這足以滿足我的目的。
function printStatement()
{
//this is is the customer id
var id = nlapiGetRecordId();
var email = nlapiGetFieldValue('custentity_accounting_email');
//create an array to set the STATEMENT properties(optional)
var sdate = new Array();
sdate.startdate = '11/01/2015'; // replace it as per requirement
sdate.statementdate = '11/30/2015'; // replace it as per requirement
sdate.openonly = 'T'; // replace it as per requirement
sdate.formnuber = 112; // replace it as per requirement
//print the statement to a PDF file object
var file = nlapiPrintRecord('STATEMENT', id, 'PDF', sdate);
//send the PDF as an attachment
nlapiSendEmail('-5', email, 'Regular Statement', 'Please see attached Statment', null, null, null, file); //change the value of author id.
}
2
是的,但使用工作流程更容易。我們爲'聲明聯繫人'創建了一個自定義字段,並基於「保存的搜索過濾器」設置了一個計劃的工作流程,基本檢查客戶是否有餘額。有一個狀態包含一個「發送電子郵件」操作。 「發送電子郵件」操作可以選擇「包含聲明」。它在每個月的第4天發生 - 您可以將此設置或任何其他參數設置爲適合您的任何參數。這對我們很好,所以我希望它能幫助你。
相關問題
- 1. Javascript語句發送密鑰
- 2. Bash腳本if語句
- 3. awk腳本中, 「if」 語句
- 4. PHP如果語句腳本
- 5. vb腳本如果語句
- 6. bash/shell腳本語句
- 7. SuiteScript 2.0 UserEvent腳本調用Map Reduce
- 8. Bash腳本,OR語句上的語法
- 9. 發送陣列PBS腳本
- 10. 夠程渠道 - 發送語句的值
- 11. 不能發送郵件()與if語句
- 12. 向mysql語句發送操作符
- 13. bash腳本語句if語句,比較小數點
- 14. 在關閉文件句柄時向Perl腳本發送信號
- 15. 如何在PHP中觸發jQuery腳本if語句
- 16. 我的if語句不被傾聽,觸發腳本反正
- 17. IF語句批處理腳本
- 18. 凡從CONCAT /工會的腳本語句
- 19. Groovy腳本執行時看到語句
- 20. Bash腳本IF語句不起作用
- 21. 批處理腳本中的IF語句
- 22. MySQL IF語句 - 腳本有錯誤
- 23. 批處理腳本語句 - 意外(
- 24. 錯誤,如果使用腳本語句
- 25. CASE語句中的SQL搜索腳本
- 26. 操作腳本3.0 if else語句
- 27. 如果&AND語句在PHP腳本
- 28. 執行語句或運行腳本?
- 29. bash腳本如果語句錯誤
- 30. 經典ASP中if語句的腳本