I am still new in Salesforce and have Java background.There some governor limit that I totally not sure what to do.
The issue started when I need to update the Account object with the value that I retrieved from Google API that required me to do @future.I completed this until I get this error during testing:
Future method cannot be called from a future
I figured out there a trigger that fired on Account using @future, and it from other application and another purpose,it call external API.So when I call my @future and want to update the Account, there will be other trigger also calling @future.
Here the figure that might illustrate how it connected: I am not sure what to do, if I do checking system.isFuture(), it will only check whether it is future running or not, but what can I do to make my future call also run?
So can I say, one object only can call one @future?So is there scenario in Salesforce whereby the object need to update with value from several external API?