Posts

Showing posts from June, 2014

Salesforce Apex @future after summer 14

@future @summer'14 @future is an annotation that tells the system to process the data asynchronously, When you specify @future, the method executes when Salesforce has available resources. In integrations, There are times when other systems may not respond immediately when you make a request. And in case of triggers, Apex governors do not allow callouts as it cannot keep the resources idle until the other systems respond. That's when you opt for @future. To make a method in a class execute asynchronously, define the method with the future annotation. For example: global   class MyFutureClass {   @future    static   void myMethod( String a, Integer i) {     System.debug( 'Method called with: ' + a + ' and ' + i);     // Perform long-running code   } } See this link: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm And there are limitations which have been really headaches for a de

Salesforce Aura/ Aura Framework

Image
Salesforce Aura, a UI framework, is one of the greatest things that salesforce has come up with. Please watch this video: Things I've noticed are: Its free. You can build mobile apps as well as any transformable apps for both mobile and desktop. Here is the github link for u to get a copy and try:   https://github.com/forcedotcom/aura I can kiss goodbye to the Mobile SDK. It does not require Visualforce/ Apex to work. For that matter it is independent of Salesforce platform.  It is shown in the video the syntax of aura components, <aura:component extensible="true"> <aura:attribute> tags, which means we are going to learn new things and have fun :) The basic knowledge of java/ Apache Maven is good to start with this development. As you know salesforce technologies dont mandate any thing. So, I think, the newbies can also be comfortable with this.  Salesforce1 is built on this and it has excellent capabilities. I dug into the git and foun