You need to sign in to do that
Don't have an account?
how to retrieve the uncommitted child records count in an after update trigger event of parent
Hi All,
I am not sure whether its a limitation or system bug,
we have so amny rollup summary fields on Opportunity as it have so many childs.
Ex, custom Forecast, Competitor, Lineitemscount
In an opportunity trigger , i have couple of custom validations which i want to exluded if any othe child records get inserted.
I am doing this in an after update event, for lineitem its working fine, but for custom objects when ever a child records get inserted the validation are not getting excluded. I have veriifed the old, new values of the rollup summary fields both consists of the same values.
Tried to query the rollup directly from the database, tried to query the child records , still no use.
Please help me on resolving this issue.
--yvk
think its not possible , go the required info at the below post
http://forums.sforce.com/t5/Apex-Code-Development/Trigger-amp-Roll-Up-Summary-Field-gt-force-update-recalculate/td-p/288583#M50550
Can any one knew an work around for this, i cant use the future method as i need to show validation message run time.
Any thoughts on this ?
--yvk