075_ Decryption Encryption

Source: Internet
Author: User

81017246

76229260 calling the message template

75271801 submit approval with Apex Code via trigger/batch submission and approval on List view

Button Calls Class 75531358

Pictures on the page autoplay: 79529141

site:76427687

Formula Field Inreport:https://success.salesforce.com/answers?id=90630000000gplbaay

Approvers in the query approval queue: Select group.name, Id, userorgroupid from groupmember where group.type = ' queue ' and group.name = ' App Rove Name';

74002944

Article two: Salesforce custom Link/button and execute JS

Upload Image: 72897346

Apex Message Severity (Visual Reference)-Apex Action trigger/Exception Intelligence Tips
Modify request public void Modifyapplication () {Boolean validateemailformal = true; Verify that the modified note is empty if (description.length () = = 0) {apexpages.addmessage (New Apexpages.message (ApexPages.severity.WARNING, ' Please fill in the changes in the comments in accordance with the details of the application!    ‘)); }//Verify that the reply received message is empty if (recieveemail.length () = = 0) {apexpages.addmessage (new Apexpages.message (apexpages.sever ity. WARNING, ' Reply to incoming mail is a required field, please make sure the administrator can contact The advertiser after the modification is completed!    ‘)); }//Verify that the mailbox format is correct if (recieveemail.length () > 0) {validateemailformal = Pattern.matches (' ^\\[email prot Ected][0-9a-za-z]+\\.        [0-9a-za-z]+$ ', recieveemail); if (!validateemailformal) {apexpages.addmessage (new Apexpages.message (ApexPages.severity.WARNING), ' mailbox format is incorrect, please verify and then Operation!        ‘));        }} 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) {//If the message is sent successfully apexpages.addmessage (new Apexpages.message (ApexPages.severity.CONFIRM, ' modify personal Information request has been submitted, Please check with the administrator after replying to the email!        ‘)); }}} public VoiD SendEmail (account ACC) {String adminemail = System.Label.AdminEmail;         try{messaging.singleemailmessage mail = new Messaging.singleemailmessage (); String emailbody = ' <span style= ' display:inline-block; width:28px; " ></span> system administrator: [' + Acc. Name + '] want to modify the supplier's personal information, please ask the administrator to help modify! </br> What to modify: ' + Acc. Description + ';</br> supplier record ID is: ' + acc. Id + ';</br> Thank you!        ‘;        Mail.setsubject (' site: Modify supplier Information Notice ');        Mail.sethtmlbody (Emailbody); Mail.setsenderdisplayname (acc.        Name); Set the mail to send the destination mailbox, if you need to modify the processing vendor information of the designated administrator mailbox, in the background to search for custom tags, directly in the "value" to modify the new mailbox can be mail.settoaddresses (new string[] {adminemail}); Set the reply person mailbox, here defaults to the vendor initial mailbox, if the supplier in the site more that reply to receive the mailbox, then the new mailbox 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, ' Mail send failed, pleaseContact the Administrator!    ‘)); } }

  

075_ Decryption Encryption

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.