Salesforce

Lightning component - An overview

After spring 15 release salesforce made so many changes to its new javascript component framework lightning component . It has a rich, elegant event driven architecture that appeals to JavaScript developers and all of the power of the Force.com platform. Unlike other component frameworks where you typically have to design your own backend functionality, authentication and connectivity, with Lightning you simply expose server-side Apex functionality with a single annotation (@AuraEnabled) and then tell the component to utilize it. That’s all you have to do!!!

Invoking apex class from process builder

Overview 

The Process Builder is a new workflow tool from spring release 15 that promises you to easily automate your business processes by providing a powerful and user-friendly visual representation of your process as you build it. The Process Builder’s simple and powerful design which not only creates, updates records, send emails, Call a Flow, Post to Chatter and Submit for approval but also calls apex class in order to achieve requirements which cant be done by any of the above.

Pie Chart in salesforce

Use Case: 

Representing the value in pie chart format.

Solution:

To display the values in pie chart you want to first construct the data in the format of string and Integer in a Wrapper class then pass that list of the wrapper class to the apex:chart . Height , Width and data are required parameters in apex:chart.

Where am I ? Salesforce

It’s an age old question: “Where the hell am I?”  I don’t like to stop and ask for directions and neither does my code.  I’m surprised it took me this long to require some way for my code to be able to detect the environment in which it was running.

I needed to answer these two questions: