https://blog.csdn.net/itsme_web/article/details/81017246
https://blog.csdn.net/itsme_web/article/details/76229260 调用邮件模板
https://blog.csdn.net/itsme_web/article/details/75271801 用apex代码通过Trigger提交审批/在List View上批量提交与审批
button 调用 class https://blog.csdn.net/itsme_web/article/details/75531358
图片 在页面上自动播放:https://blog.csdn.net/itsme_web/article/details/79529141
site :https://blog.csdn.net/itsme_web/article/details/76427687
Formula field inReport :https://success.salesforce.com/answers?id=90630000000gpLBAAY
查询审批队列中的审批者:Select Group.Name, Id, UserOrGroupId from GroupMember where Group.Type = 'Queue' and group.name = 'Approve Name';
https://blog.csdn.net/itsme_web/article/details/74002944
第二篇:salesforce自定义link/button并执行js
上传图片:https://blog.csdn.net/itsme_web/article/details/72897346
Apex Message Severity (Visual Reference) - Apex动作触发/异常智能提示
// 修改申请 public void modifyApplication() { Boolean validateEmailFormal = true; // 验证修改备注是否为空 if(description.length() == 0) { ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.WARNING,'请在修改备注里面按照实例填写修改详情!')); } // 验证回复接收邮件是否为空 if(recieveEmail.length() == 0) { ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.WARNING,'回复接收邮件为必填字段,请确保管理员修改完成后能够联系到广告商!')); } // 验证邮箱格式是否正确 if(recieveEmail.length() > 0) { validateEmailFormal = Pattern.matches('^\w+@[0-9a-zA-Z]+\.[0-9a-zA-Z]+$', recieveEmail); if(!validateEmailFormal) { ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.WARNING,'邮箱格式不正确,请核实后再操作!')); } } if(description.length() > 0 && recieveEmail.length() > 0 && validateEmailFormal) { Account acc = [SELECT Id, Name, Advertiser_Email__c, Description FROM Account WHERE Id = :accountId]; acc.Description = description; update acc; sendEmail(acc); if(sendResult) {// 如果邮件发送成功 ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.CONFIRM,'修改个人信息申请已提交,请收到管理员回复邮件后核实!')); } } } public void sendEmail(Account acc) { String adminEmail = System.Label.AdminEmail; try{ Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); String emailBody = '<span style="display: inline-block; 28px;"></span>系统管理员:[' + acc.Name + ']想修改供应商个人信息,烦请管理员帮忙修改!</br>修改内容:' + acc.Description + ';</br>供应商记录ID为:' + acc.Id +';</br>谢谢!'; mail.setSubject('站点:修改供应商信息通知'); mail.setHtmlBody(emailBody); mail.setSenderDisplayName(acc.Name); // 设置邮件发送目的地邮箱,如需修改处理供应商信息的指定管理员邮箱,请在后台搜索自定义标签,直接在“值”里面修改新邮箱即可 mail.setToAddresses(new String[] {adminEmail}); // 设置回复人邮箱,这里默认为供应商初始邮箱,若供应商在站点中更该过回复接收邮箱,则为新邮箱 mail.setReplyTo(recieveEmail); mail.setSaveAsActivity(false); Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail}); sendResult = true; }catch(Exception e){ System.debug(e.getMessage()); ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.WARNING,'邮件发送失败,请联系管理员!')); } }