How to get default value in a picklist in Salesforce?
When we insert a record using Apex, the default values of picklist fields will not be populated until DML operation is done on the record. It will be empty/blank. So, ....
When we insert a record using Apex, the default values of picklist fields will not be populated until DML operation is done on the record. It will be empty/blank. So, ....
Sample Trigger: trigger Opportunity_AIUD on Opportunity (after insert, after update, after delete) { Map<Id, List<Opportunity>> acctIdOpptyListMap = new Map<Id, List<Opportunity>>(); Set<Id> acctIds = new Set<Id>(); List<Opportunity> opptyList = new List<Opportunity>(); ....
Sample Program: package packageForREST; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.IOException; import java.io.UnsupportedEncodingException; import org.apache.http.Header; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicHeader; import org.apache.http.util.EntityUtils; ....
Sample Program: package packageForREST; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import org.apache.http.Header; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicHeader; ....
Static variable is a variable that has been allocated statically. Static variable lifetime extends across the entire run of the program.Things to remember while using Static keyword Static methods can ....
RESTREST's sweet spot is when you are exposing a public API over the internet to handle CRUD operations on data. REST is focused on accessing named resources through a single ....
Use the interaction log to write notes in call logs while using a Salesforce console application. A call log is an activity record that automatically generates when you use a ....
Chat window: To enable or disable chat settings in Salesforce, follow the below steps 1. Go to Customize --> Chatter --> Chat Settings. 2. Enable or disable to view or hide.