Blog Categories

Posted by on Jun 22, 2017 in Featured Blogs, Tutorials | 1 comment

Learn how to test your Rest API’s in Salesforce

Being a Developer its a big plus having knowledge implementing Webservices and more complex is the environment to Test those. I very often come across questions about “Testing the REST API’s” so I cannot resist sharing some great amount of knowledge for all new developers with this blog “Learn how to test your Rest API’s in Salesforce”. Everyone is aware about the two very common tools “Workbench” & “Postman”, these offer you some seriously amazing features to test your REST API’s. In this blog I’ll explain some working examples of the Same with building oAuth, Demo class, Basic JSON with examples and explanation. Let’s Start: Here is a Sample Apex Rest webservice that allows a Connected Application to push data into Salesforce. /******************************************************************************************* * Description – Apex REST service with GET and POST methods * Author – Vinay { “name” : “Vinay”, “phone” : “9999345317”, “website” : “www.vinaychaturvedi.com” } ********************************************************************************************/ @RestResource(urlMapping=’/v1/accounts/*’) global with sharing class RESTWebserviceForAccount { @HttpPost global static AccountWrapper doPost(String name, String phone, String website) { RestRequest req =...

Read More

Posted by on Mar 15, 2017 in Blog Series, Featured Blogs, Learn Salesforce Lightning with Examples, Tutorials | 1 comment

Learn Salesforce Lightning with Examples – Part 5 (Switch Screens Using Lightning Events)

Learn Salesforce Lightning with Examples – Part 5 (Switch Screens Using Lightning Events) is the fifth part of the series – “Learn Salesforce Lightning with Examples” where We would share the key practical examples and experience with lightning.We are focusing on Lightning Components for now. Background,Blog Contributors and Pre-Requisites To get started for this blog you need to fulfill all the Pre-requisites mentioned here.In this link,you will also get to know the background and blog contributors for this series. Switch Screens Using Events Business Case: Adam is working as a Senior Application Developer in Universal Containers. Company wants to move their traditional (classic version )recruitment app to lighting. Adam needs to do a Proof of Concept by building a custom lighting component for creating the Candidate’s record into Salesforce. Now that he has created the first ,second and third part which is explained here,He would like to showcase even users know how to switch screens using lightning events. Solution: Before getting started,Adam makes sure that he doesn’t miss any pre-requisites mentioned...

Read More

Posted by on Feb 10, 2017 in Featured Blogs, Tutorials | 2 comments

Learn Regex in Salesforce with Examples

Regular expressions and its usage is a common topic in all projects where there’s a need of maintaining quality data about our customers or organization based on the patterns we describe beforehand. Based on this theory, this blog Learn Regex in Salesforce with Examples is inclined to suggest few of the most common ways to implement Regex in Salesforce to refine our data and imposing validations. “Regex or Regular Expressions are special texts or string for describing a predefined pattern as per the use case” for example if there’s a field, named: (Mobile Number) so we are aware that here we must use numbers as input, how this can be validated, the answer is using regex or regular expressions. “A regular expression, regex or regexp (sometimes called a rational expression) is, in theoretical computer science and formal language theory, a sequence of characters that define a search pattern. Usually this pattern is then used by string searching algorithms for “find” or “find and replace” operations on strings.” Find the...

Read More

Posted by on Sep 14, 2016 in Blog Series, Featured Blogs, Learn Salesforce Lightning with Examples, Tutorials | 6 comments

Learn Salesforce Lightning with Examples – Part 3 (Display and Select list of records using Wrapper Class in Lightning Component)

Learn Salesforce Lightning with Examples – Part 3 ( Display and Select list of records using Wrapper Class in Lightning Component) is the third part of the series – “Learn Salesforce Lightning with Examples” where We would share the key practical examples and experience with lightning.We are focusing on Lightning Components for now. Background,Blog Contributors and Pre-Requisites To get started for this blog you need to fulfill all the Pre-requisites mentioned here.In this link,you will also get to know the background and blog contributors for this series. Display and Select list of records using Wrapper Class in Lightning Component Business Case: Adam is working as a Senior Application Developer in Universal Containers. Company wants to move their traditional (classic version )recruitment app to lighting. Adam needs to do a Proof of Concept by building a custom lighting component for creating the Candidate’s record into Salesforce. Now that he has created the first and second part which is explained here,He would like to showcase even users know how to display a list of...

Read More

Posted by on Sep 2, 2016 in Blog Series, Featured Blogs, Learn Salesforce Lightning with Examples, Tutorials | 3 comments

Learn Salesforce Lightning with Examples – Part 2 (Handling Apex Messages in Lightning Component)

Learn Salesforce Lightning with Examples – Part 2 ( Handling Apex Messages in Lightning Component ) is the second part of the series – “Learn Salesforce Lightning with Examples” where We would share the key practical examples and experience with lightning.We are focusing on Lightning Components for now. Background,Blog Contributors and Pre-Requisites To get started for this blog you need to fulfill all the Pre-requisites mentioned here.In this link,you will also get to know the background and blog contributors for this series. Handling Apex Messages in Lightning Component Business Case: Adam is working as a Senior Application Developer in Universal Containers. Company wants to move their traditional (classic version )recruitment app to lighting. Adam needs to do a Proof of Concept by building a custom lighting component for creating the Candidate’s record into Salesforce. Now that he has created the first part which is explained here,He would like to showcase even users know the success or error messages occurring from Apex.This will help users to understand if there have been receiving any...

Read More

Posted by on Aug 23, 2016 in Blog Series, Featured Blogs, Learn Salesforce Lightning with Examples, Tutorials | 31 comments

Learn Salesforce Lightning with Examples – Part 1 (Create Records using Lightning Components)

Learn Salesforce Lightning with Examples – Part 1 (Create Records using Lightning Components) is the first part of the series – “Learn Salesforce Lightning with Examples“. Introducing ‘Learn Salesforce Lightning with Examples’ Series Learn Salesforce Lightning with Examples is the series where We would share the key practical examples and experience with lightning.We are focusing on Lightning Components for now and hope we come up with great stuff later in other lightning features as well.So stay tuned and enjoy our series. Background & Blog Contributors           Gaurav Jain and I had worked together on lightning projects and We started working from the time when there was not much online material available.We decided to start a blog series to share our learning and experiments with “Lightning Lovers” hoping that they might get benefit from it.Many thanks to Gaurav for helping and being an equal contributor to this blog series.You can connect with Gaurav at twitter and check more about him here. Pre-Requisites Here are some pre-requisites for the blog series,Please...

Read More