Showing posts with label Community. Show all posts
Showing posts with label Community. Show all posts

Tuesday 26 August 2014

Top reasons why you should attend Dreamforce this year

15:06




  Here are some of the reasons why I think you should attend Dreamforce this year ...

Monday 30 September 2013

REGEX in Salesforce

13:00
What is a RegEx?

Regular Expression in computing terms is a pattern that is used to search. It has its own syntax and semantics. To learn more on what RegEx is visit --> here
Great now we learnt what REGEX is, to build your own regex visit --> buildregex.com

So how does all this play in salesforce apex ? There are numerous use cases for using regex and checking patterns e.g. Checking if string is in Email Format.

There are 2 Major Classes to check if regex matches. Pattern Class and Matcher Class
in short, the pattern class is used to store a type of regex and once you have a pattern stored, We use the Matcher Class to identify if a specified string matches the pattern.

Here's the code for Matching String to Email pattern In salesforce

public static Boolean checkEmailFormat(String email) {
        String emailRegEx = '[a-zA-Z0-9\\.\\!\\#\\$\\%\\&\\*\\/\\=\\?\\^\\_\\+\\-\\`\\{\\|\\}\\~\'._%+-]+@[a-zA-Z0-9\\-.-]+\\.[a-zA-Z]+';
        Pattern MyPattern = Pattern.compile(emailRegex);
        Matcher MyMatcher = MyPattern.matcher(email);
        Boolean result = MyMatcher.matches();
        return result;
    }

This is a self explanatory code, the Pattern is first compiled and stored, then we check the "email" parameter matches the regex, the result (true/false) is returned to the calling method. Wanna learn more ? --> Check SFDC Documentation

Hope this helped  ! Let me know your thoughts or if there are some neat regex that you'd like to share in the comments . Happy Coding !

Wednesday 24 April 2013

How to activate Summer ’13 Preview on sandbox

10:18
Summer 13The salesforce.com Summer ‘13 release is quickly approaching and soon you'll be able to take advantage of exciting new features and functionality! If you are a Force.com Sandbox customer, you have the opportunity to get early access to Summer ‘13 in your Sandbox and test new customization and features (the chance to get your feet wet) before your production organization is upgraded.




Tuesday 23 April 2013

Escalate Question to Case

18:11

AnswersThis is a very useful need at times requested by clients.  “Escalate Question to Case” / “Create Case from a question” / “Convert Question to case” in either customer portal , Partner portal, or any self serve portal.

In the answers portal, when we are required to Escalate the question to a case so that the executives can handle it. Salesforce provides this functionality internally but its a little tricky to turn it on and in this post I want to address this.

Thursday 31 January 2013

Spring ‘13 Release Rituals

11:50

The much awaited Spring ‘13 webinar was yesterday 30-JAN-2013. It was exciting and thanks to Pat Paterson(@metadaddy) and Samantha (@samantha_ready) for the amazing webinar presentation which covered the thrilling topics of spring 13 like
          • Tooling API, 
          • Connect in Apex,
          •  Canvas 
          •  Connected apps.

Tuesday 8 January 2013

Spring ‘13 Features Release Preview

01:09

spring13Salesforce.com Spring ‘13 is a debated release where some say there are not many features being released like the usual salesforce releases while some say that Spring ‘13 packs really good and needed features. I’ll let you be the judge of that.
All of what I can say is , it is exciting as we are all waiting to see what is packed in this release and can’t wait to get our hands on it. Below are the videos salesforce released on their YouTube channel some time ago.
you can also find the release notes here : http://shivd.me/Spring13Release
The Spring 13 Release Preview of all features : http://shivd.me/Spring13ReleasePreview
and you could join us for the webinar here: http://shivd.me/Spring13Webinar
You could sign up for the Pre-Release ORG here : http://bit.ly/getspring13