Archives

Apex Return Diff fields between records

Sometimes you want to determine what has changed between an existing record in the database and an update to the record. The diffRecord method will return all the fields that changed for a specific record. Compare the difference between to records and return changed fields Test that only changed fields are returned

Rate this:

Read More

Apex Compare two Records and Merge updated fields

When you have two record, one being the existing queried record and the other the updated record. To merge the original with the updated field without committing the changes you can iterate the current record’s fields and check which of the fields changed. Update the changed fields to the new updated fields value. Now we […]

Rate this:

Read More

List Salesforce Objects, Fields, References, Picklist Values using API in Java

package com.thysmichels; import java.io.IOException; import com.sforce.soap.partner.*; import com.sforce.ws.*; public class SalesforceGlobalSearch { /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub ConnectorConfig sfconfig = new ConnectorConfig(); //Use your salesforce username = email sfconfig.setUsername(“username”); //Use your saleforce password with your security token look like: […]

Rate this:

Read More