function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Formual Field not displaying correct Value



I have a webform which creates opportunity on Salesforce. Once Opportunity is created we are making an asynchronous call (via @future callout) to external web service to fetch the Account number based on the passed telephone number. After receiving we are updating the Opportunity with that Account owner and in case no account number received from web service we are not performing anything.


There is a formula field on the Opportunity which displays the Department and division of the opportunity owner.


So the problem is when we are updating the opportunity with the account number from the @future callout, the formula field is not updating correctly as it is showing incorrect department and division name.


If we manually edit the opportunity and saves with or without modifying anything. The formula field is displaying correctly.


Any suggestion would be helpful.



Mr. Singh


Please share the forula which update the department and division name.




Visit my blog here


Owner__r.Department__c + ": " + Owner__r.Division__c