Showing posts with label salesforce. Show all posts
Showing posts with label salesforce. Show all posts

Thursday, December 13, 2012

Preventing Recursive Method Calls in Salesforce

Hello Guys,
        Yesterday i was playing with salesforce custom object. I had task to update the object once particular field get updated /inserted (for same object). 

Eg. I have Student__c is custom object on salesforce.

Structure of Student__c object is like:
Id, Name__c, Score_in_maths__c, Score_in_science__c, Total_score__c

So when trying to update any score value required to update Total_score__c  accordingly.  To fulfill  this i have added trigger on Student__c (after update) but it results as recursive loop.

To overcome above issue just followed the steps mention in http://blog.jeffdouglas.com/2009/10/02/preventing-recursive-future-method-calls-in-salesforce/. And it works for me.

Free feel to leave comment or ask queries. :)

Wednesday, July 25, 2012

Cannot deserialize instance of date from VALUE_STRING on salesforce

Hello Guys,
        I am working on salesforce from past few days. Just discover the bug related to date field setting using databasedotcom gem. When we are setting date value using ruby 1.9.2 it works as per expectation but with ruby 1.8.7 it gives error like 'Cannot deserialize instance of date from VALUE_STRING value'. To resolve this issue need to install latest gem version databasedotcom-1.2.7.

See this thread on github to get more detail