TagSalesforce.com

Create Short URLs with Bitly

C

This post is related to how to integrate Salesforce and Bitly to create short urls to include in communication Messages. Step 1. Sign-up for Bitly To use the Bitly API you will need to register. You can sign-up using Twitter, Facebook, or create a new login with their service. I chose to create a Bitly specific login using below url. Step 2. Create Bitly Apex Classes I developed below class, that...

How to get last modified field value or previous field value without using Trigger

H

Today in this post i will explain you how you can get last modified value or previous value without using trigger Creating aText Field: Create aTEXT (255) field on the Object and name it say: Old Value 2. Setting up the Workflow Rule + Field Update   Go toSetup | Create | Workflows & Approvals | Workflow Rules New Rule Select theObject ClickNext Evaluation Criteria:created and every time...

Duplicate Management in Salesforce

D

Duplicate Management in Salesforce is very easy. You just have to create a Matching rule on your object which will decide the criteria to detect Duplicates. Then you have to create a Duplicate Rule on your object which will decide what actions to trigger when duplicates are found. In Matching Rule you have to select the object on which you want duplicate detection, enter name for the rule, Unique...

Using Schema.getGlobalDescribe() to get list of all fields in Salesforce Apex

U

I had one dropdown that had options – Lead, Account, Contact, Opportunities and some custom objects. Upon selection of any of this object, all the respective object’s standard and custom fields should be populated in another dropdown. This is how I achieved it: Map<String, Schema.SObjectField> objectFields = Schema.getGlobalDescribe().get(‘Account’).getDescribe()...

Category