Author Archives: Stephen

Apex Calls Between Independent Packages

You have a great idea for a process “Orchestrator” utility that can coordinate processes across your existing Force.com products, and perhaps involve some third-party apps too. Orchestrator may want to create, read, update and delete records within these products, but because … Continue reading

Posted in Patterns | Tagged , , , , | 1 Comment

Apex Method of the Day – Database.Batchable

MyIterableBatch implements Database.Batchable<AnyTypeYouLike> Examples: IntegerIterableBatch.cls CustomTypeIterableBatch.cls Force.com Apex Code Developer’s Guide – Using Batch Apex Original Tweet

Posted in Documentation | Tagged , , | Leave a comment

Salesforce as an Identity Provider for Customer Portal

Salesforce Customer Portal is the Force.com ISV’s natural choice for providing support to users of their applications. However, requiring customers to log in to a Customer Portal using a Salesforce username and password which is separate from their own Salesforce … Continue reading

Posted in Tutorials | Tagged , , , | Leave a comment

Apex Method of the Day – List Iterator

Example: Force.com Apex Code Developer’s Guide – List Methods Force.com Apex Code Developer’s Guide – Custom Iterators Original Tweet

Posted in Documentation | Tagged , | Leave a comment

Apex Method of the Day – JSON.deserialize(jsonString, List.class)

List<Foo> f = (List<Foo>) JSON.deserialize(jsonString, List<Foo>.class); Force.com Apex Code Developer’s Guide – JSON Methods Original Tweet

Posted in Documentation | Tagged , , | 1 Comment

Apex Method of the Day – New Map from SObject List

List<SObject> lst; … Map<ID, SObject> mp = new Map<ID, SObject>(lst); Force.com Apex Code Developer’s Guide – Maps from SObject Arrays Original Tweet

Posted in Documentation | Tagged , , | Leave a comment

Apex Method of the Day – addFields

public class MyControllerExtn { public MyControllerExtn(ApexPages.StandardController c) { // include fields not referenced on the Visualforce page c.addFields(new List<String>{‘Foo__c’,’Bar__c’,’Force__c’}); } } Force.com Apex Code Developer’s Guide – StandardController Class Original Tweet

Posted in Documentation | Tagged , , | Leave a comment