当前位置:K88软件开发文章中心编程语言非主流编程语言Apex → 文章内容

Apex - 触发设计模式

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-15 16:30:59

oice Recordspublic static void createInvoiceRecords (List<apex_customer__c> customerList) {for (APEX_Customer__c objCustomer: customerList) {if (objCustomer.APEX_Customer_Status__c == 'Active' && trigger.oldMap.get(objCustomer.id).APEX_Customer_Status__c == 'Inactive') {//condition to check the old value and new valueAPEX_Invoice__c objInvoice = new APEX_Invoice__c();objInvoice.APEX_Status__c = 'Pending';InvoiceList.add(objInvoice);}}insert InvoiceList;//DML to insert the Invoice List in SFDC}}

上一页  [1] [2] 


Apex - 触发设计模式