Skip to main content
10 events
when toggle format what by license comment
Jan 27, 2016 at 15:59 vote accept AJK
Jan 27, 2016 at 15:59 comment added AJK I know this isn't ideal, but I was able to fix my issue by creating a simple process in the process builder any time an order is created / updated to update an unused field on the order's Account. So now it's updating the field in real time... going to mark your answer as correct, thank you for all of the help!!
Jan 27, 2016 at 15:03 comment added AJK @sfdcfox Yea that's no problem if it lags a little, however it looks like either the order or account have to be "updated" before showing the correct value. So if I go into an account after an order is placed and click edit anywhere and then save without changing anything, it will fire the trigger and update the value.
Jan 26, 2016 at 23:07 comment added sfdcfox @AJ47 Worse case scenario, TotalAmount may not be updating as timely as I thought (but that sounds suspect). How are you updating the value?
Jan 26, 2016 at 21:44 comment added AJK @sfdcfox Sounds good, I changed it back to what you have exactly, but still getting same issue as shown in that screencast. After submitting the order, I have to update either the order or account once more to populate the order sum amount.
Jan 26, 2016 at 21:36 comment added sfdcfox They need to be exactly as written. Before update on account, after insert, update, delete, and undelete on Order. Start from there and see if that helps.
Jan 26, 2016 at 21:23 comment added AJK @sfdcfox thank you! this is just about working perfectly, only thing I can't figure out is after an order gets created, I have to either update the order or account one more time to get it to register the amount, I've made a quick video showing this: screencast.com/t/ZddnSNDY I've tried adding before insert to the sumOrders trigger but same thing, any idea?
Jan 26, 2016 at 21:11 comment added javanoob I am confused..shouldn't the trigger be on order object instead of Account? Thanks!
Jan 26, 2016 at 20:04 history edited sfdcfox CC BY-SA 3.0
added 349 characters in body
Jan 26, 2016 at 19:53 history answered sfdcfox CC BY-SA 3.0