Defensive future calls

I would like to talk about the wonderful and simple pattern for making future calls. This pattern was presented by Dan Appleman at one of his sessions at Dreamforce this year. It looks like this: public void CallFuture2() { if(System.isFuture() ||system.isBatch()) defensiveFutureCallSync(); else { if(Limits.getFutureCalls() < Limits.getLimitFutureCalls()) defensiveFutureCallAsync(); else { // error handling } } […]

Update relationships using External IDs

Let’s suppose we have two objects, Speaker object and another one called company. The speaker record below has “Marc_Benioff” as External Id and it is related to a company called “SFDC”.   Its company looks as follows: We want to update the speaker’s company to another one called Microsoft   We can do it without […]

Using JWT to share data between Orgs

Let’s suppose we want to show some records in our Salesforce Org, let’s call this Org “A”, but this information is stored in another Salesforce Org, “B”. There are several ways to accomplish this requirement. We could use Salesforce-to-Salesforce to share records between different Orgs. We could also use third-party tools like Informatica Cloud or […]

Welcome to my brand new blog

My name is Manuel Tejeiro. I work as a Salesforce consultant and developer. I will be publishing everything related with this amazing technology among others. Let’s have fun…