
I have postUpdate trigger and postCreate trigger for the Account object. Both triggers have future method and the postCreate future method modified the Account object which triggers the postUpdate trigger. Because we can't have future method calling another future method, it always generates the error "Future method cannot be called from a future method ".
Whenever the Salesforce account is created, it has to ask my own web service to allocate an ID for it and whenever the account is updated it has to ask the web service to synchronize the data. Are there anyway to solve this issue? Or if it is not possible, are there any ways to prevent the postUpdate trigger when updating the object from the postCreate trigger callout? If there is, then I can probably change the business logic to make it work.
Thanks.
4 Antworten
No problem. I would think that's how, but mine doesn't work either! If I hover over the 'x' to a reply it changes in response to the hover, but when I do so to a question I posted nothing happens. I would just mark a best answer to "close" it so it doesn't show up in "Unresolved questions."