Archive for December, 2009

Increasing Java Heap for Ant

I ran across a little tip tonight I thought I should share. Trying to perform a large Salesforce Code migration with Ant kept giving me the following error: Out of memory. Increase Heap Size. This is a Java error indicating that the virtual machine is out of memory. So now I know what the problem is, [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
23 December 2009 at 21:15 - Comments

Apex Code to Invoke an External Web Service

To invoke an external service after using its WSDL document to generate an Apex class, create an instance of the stub in your Apex script and call the methods on it. For example, to invoke the StrikeIron IP address lookup service from Apex, you could write a script similar to the following:

// Create the stub strikeironIplookup.DNSSoap [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
22 December 2009 at 16:43 - Comments

Web Service Callout Request/Response Size Governor Limit

The release of Summer 09 increased the governor limit of a SOAP web service callout request/response size to 1MB from 100KB as can be seen in the Apex documentation here If you are using the Apex HTTP classes to send web service callouts, the limit is still 100KB. .

Share and Enjoy:

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
22 December 2009 at 16:39 - Comments

Salesforce Web service Callout Limits(Timeouts)

The following limits apply when an Apex script makes a callout to an HTTP request or a Web services call. The Web services call can be a Force.com Web Services API call or any external Web services call.

A single Apex transaction can make a maximum of 10 callouts to an HTTP request or an API [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
22 December 2009 at 15:56 - Comments

How to Set Java Heap Space

The Java Virtual Machine (JVM) is the execution component of the Java Runtime Environment (JRE) that interprets and executes the byte code stores in a Java class. Within the Java Virtual Machine is a notional idea of the Java heap which is where objects created in a Java class reside in memory during the program’s [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
21 December 2009 at 14:47 - Comments

Salesforce Java Application to export Attachments – Appreciation …

Following are few appreciation notes from client, manager and team member …. Ajay Kumar – Chirag chipped in early to find more details about this and got a fix in couple of long working days!! I would like to take this opportunity to appreciate Chirag’s terrific contribution and dedication on this. Bravo Chirag!! [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
20 December 2009 at 23:55 - Comments
Susan ... Ajay was able to work some magic with the help of Chirag Jain,
5 January 10 at 11:23
Arun ... Great news Sambeet and team ! Keep it up !
5 January 10 at 11:24

Salesforce – Move Attachments from 1 Organization to another

If you want to migrate from one org to another, then you first need to get a Weekly Export Service download. Make sure you check the “Include attachments” box. You will get an attachments.csv and the actual attachments. The key to importing attachments is a little known feature inside Data Loader. The part that is [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
18 December 2009 at 17:33 - Comments

5 ways Google Mail makes life easier

Many things are designed to make our lives easier, but sometimes they seem to make them more complicated. If everything worked like Google Mail, life would be much simpler! Google launched set of 5 videos which illustrates how life is easier with Google Mail … Google Mail conversation chains – Email replies are grouped into conversations with [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
16 December 2009 at 22:36 - Comments

Salesforce – Stop Recursion of Trigger Execution

Suppose there’s a scenario where in one trigger perform update operation, which results in invocation of second trigger and the update operation in second trigger acts as triggering criteria for trigger one. In that case there will be a recursion and than will be Apex Governor Limits Errors .. bla .. ala .. bla …. Following [...]

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
15 December 2009 at 18:07 - Comments

Salesforce – Retrieve server URL in APEX class or trigger

In Visualforce controllers, use ApexPages.currentPage().getHeaders().get(‘Host’) to get the server name (e.g., na1.salesforce.com).

Share and Enjoy:

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • RSS
14 December 2009 at 17:56 - Comments