我無法在文檔或此處找到答案。是否可以腳本發送語句給客戶?謝謝你提供的所有幫助。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. Suitescript 2.0 MapReduce腳本
- 2. Recess Framework GET發送語句
- 3. Javascript語句發送密鑰
- 4. bash/shell腳本語句
- 5. PHP如果語句腳本
- 6. Bash腳本if語句
- 7. vb腳本如果語句
- 8. shell腳本:if語句
- 9. IF語句替換腳本
- 10. 條件語句bash腳本
- 11. awk腳本中, 「if」 語句
- 12. 腳本語句太多
- 13. VB腳本設置語句
- 14. SQL腳本USE語句 - C#
- 15. SuiteScript 2.0 UserEvent腳本調用Map Reduce
- 16. Bash腳本,OR語句上的語法
- 17. 將MySQL * .sql腳本(語句)轉換爲MS SQL SERVER * .sql腳本(語句)
- 18. 發送陣列PBS腳本
- 19. PHP發送表單腳本
- 20. 從bash腳本發送「ENTER」
- 21. 不發送腳本消息
- 22. 不能發送郵件()與if語句
- 23. 夠程渠道 - 發送語句的值
- 24. 向mysql語句發送操作符
- 25. 「發送到」插入語句像mongoDB
- 26. bash腳本語句if語句,比較小數點
- 27. 谷歌電子表格腳本:ELSE語句覆蓋IF語句
- 28. 在關閉文件句柄時向Perl腳本發送信號
- 29. 在第二條語句之後發生腳本中斷
- 30. 我的if語句不被傾聽,觸發腳本反正