Finally this month (May 2016), Salesforce has released more details on 3 of the Domain Specialist Certifications Exam details and made the 3 exams ready for the public to grab!
Quick Tip – Change Date format in Apex
If you use any date fields in Apex, it prints in this format System.debug('Date: '+contact.Date); Output: 2016-04-26 00:00:00 To change the format you can simply use: format() System.debug('Date: '+contact.Date.format()); Output: 26/04/2016
Awesome Global Picklists
Update: This article was written when Global Picklists was launched. Salesforce has now renamed Global Picklists to Picklist Value Sets. Do you want to use same pick list values in different objects across the system? Global Picklists is your answer! Global Picklists lets you efficiently reuse a single list of values for multiple custom picklist …
Use LIKE with Collections – SOQL Query
How do we use LIKE in SOQL to find accounts that contain the string ABC? Using the following query List<Account> accList = [SELECT Id FROM Account WHERE Name LIKE %ABC%]; Lets say, there is a set of Account Names with these 3 accounts below (abc, xyz, rst) Set<String> setAccNames = new Set<String>(); setAccNames.add('ABC'); setAccNames.add('XYZ'); setAccNames.add('RST'); And …
Salesforce Shield
To help customers with complex governance and compliance needs, Salesforce is introducing Salesforce Shield, a premium set of integrated services built natively in the Salesforce1 Platform. Salesforce Shield lets customers see who is doing what with sensitive data, know the state and value of their data going back up to ten years, and encrypt sensitive data …
Salesforce Ideas: Custom Metadata Type Settings
I was very glad with the release of Custom Metadata Type Settings. But there are limited number of field types that we can create (similar to custom settings). It would be hugely useful if "Rich Text" and "Lookup" field types can be added. Here are the 2 ideas that needs your votes! Need 'Rich Text' field …
Continue reading "Salesforce Ideas: Custom Metadata Type Settings"
Run Script After Sandbox Creation and Refresh
This feature is to make your sandbox environment business ready, automate data manipulation or business logic tasks or even to schedule your jobs. At sandbox creation, specify a single Apex class to perform the tasks. This class executes every time the sandbox is refreshed/copied. Create an Apex class that implements SandboxPostCopy and specify the class here. For example, the …
Continue reading "Run Script After Sandbox Creation and Refresh"
Apex based sharing records with Roles
Apex based sharing a record with a User or Public Group is easy and direct. Below is the sample sharing of an Account record with a user. AccountShare Acctshr = new AccountShare(); Acctshr.AccountId = aid; Acctshr.UserOrGroupId = 'User.Id'; Acctshr.AccountAccessLevel = 'Edit'; Acctshr.OpportunityAccessLevel = 'Edit'; Database.SaveResult sr = Database.insert(Acctshr,false); But how do you share with a …
Salesforce Halloween Special Trail Head Badge
Salesforce added a new community trail head badge for this Halloween called "TrickOrTrailHead". Earn the Trailhead badge this Halloweekend for a Spooktacular surprise by completing this simple Admin module with 3 topics.
Dreamforce Wrap Up 2015!
Attended Dreamforce this year, my first time in forever and its been an awesome experience with great learning. Travelled all the way from Singapore to San Francisco and Dreamforce didn't disappoint a bit. This time Dreamforce is bigger than before with whopping 1,70,000 user registrations and 1600+ sessions and some rock entertainment in the Dreamfest (the Dreamforce …
Wrapper Class Multiple Value Sorting
Came across a scenario where I had to sort a wrapper class. Normal list sorting is simple, list.sort(); would help. But for a wrapper class, it's not straight-forward but it isn't that hard. Below is a simple wrapper class without sorting - this wrapper has 2 columns : Area and AD. global class AreaWrapper{ public String …
New UI for Salesforce
Salesforce.com has a completely redesigned version of its core CRM product. The new version has been designed with a cleaner, more modern looking interface. Here's the previous UI, now being referred to as Classic Salesforce UI And here's the switch to Lightning Experience The new version uses a navigation bar approach, abandoning the tabbed interface of …
Salesforce Introduces New Certifications for Developers
Salesforce introduced 3 new developer certifications for Force.com developers Platform Developer I Platform Developer II Platform App Builder The immediate question is what happens to the existing developer certifications (401 and 501). Well, you can continue to maintain your Salesforce Certified Force.com Developer credential. However, effective September 14th (2015), Salesforce will no longer be offering this credential …
Continue reading "Salesforce Introduces New Certifications for Developers"
Meet the “New Salesforce”
Big announcement coming from Salesforce just before Dreamforce this year (2015). Salesforce says it will be a whole "New Salesforce"! We're excited to share with you that our upcoming release will be our biggest, best, most game changing ever. And you are invited to an exclusive, early preview. Be the first in the world to get …
Regular Expression for Words with spaces
Problem: I want to check for the following strings using regExpression: 1) Main-xxxxx-Accepted 2) Main-xxx xxx-Accepted I used the below String regEx = 'Main-[aA-zZ-]*-Accepted'; Pattern.matches(regEx,'Main-SUBMITTED-Accepted')); results in **TRUE** It works fine for Main-SUBMITTED-Accepted. But it fails for a word with spaces (non submitted) Pattern.matches(regEx,'Main-NOT SUBMITTED-Accepted')); results in **FALSE** I tried the below ones. Nothing works String …
Bootstrap Modal Pop-Up Window – Background Static
I have bootstrap modal pop-up window. I want the background to be non-clickable. I have close button to close the modal pop-up, so the users should use only that. Clicking outside the modal pop-up window also closes the pop-up. Problem: I'm trying to restrict it by using html-data-backdrop="static" in the CommandLink but still not working. …
Continue reading "Bootstrap Modal Pop-Up Window – Background Static"