Netsuite | Authentication/Login to Netsuite sandbox account through java code using Netsuite WSDL

| By Webner

Authentication/Login to Netsuite sandbox account through java code using Netsuite WSDL In order to login to your sandbox Netsuite sandbox account via code, you need to have below files handy: 1. Netsuite sandbox WSDL: The latest version of wsdl can

Mysql Workbench | How to copy Remote database into your local machine

| By Webner

1.  Select Database: Schema Transfer Wizard from the Mysql workbench menu bar. You will see schema transfer wizard on your screen as below: Click on Start the Wizard option. 2.  Connection Selection: Now select your source and destination location to copy database:

Salesforce | Send email using apex code along with attachment and manage email history

| By Webner

1. Send simple email using apex : Messaging.SingleEmailMessage emailTobeSent = new Messaging.SingleEmailMessage(); List <String> listEmailMembers = new List<String>(); listEmailMembers.add(’email@domain.com’); emailTobeSent.setToAddresses(listEmailMembers); emailTobeSent.setSubject(‘Hi, Just Testing’); emailTobeSent.setHtmlBody(‘msg : ‘ + msg); Messaging.SendEmailResult [] r1 = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {emailTobeSent} 2. Use template instead of

Salesforce | Set CreatedDate for s-object records in test class

| By Webner

In some cases, we need to set CreatedDate for records. setCreatedDate() method can be used to set CreatedDate for records. For Example : Set createddate for a contact in test class Contact con = new Contact() con.FirstName=’Firstname’; con.LastName=’LastName’; insert con;