Timeline for Need to set Shipping Address to Billing Address when Account Type is A or B
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 17, 2019 at 16:33 | vote | accept | AjFmO | ||
Sep 30, 2018 at 20:23 | history | edited | Shane Steinfeld | CC BY-SA 4.0 |
Added some clarifying information.
|
Sep 30, 2018 at 20:20 | comment | added | Shane Steinfeld | Ah -- I see. There are two problems: First, the trigger needs to fire in Before context, not After. You can't update the records that caused the trigger to run once you're in After context...or, at least, not like this. || Second, you don't need the update accList DML statement after "And you're done!" The records that you've modified are already being processed by the trigger. They'll be inserted/updated with the modified values after the transaction is complete. Give that a try. | |
Sep 30, 2018 at 20:15 | comment | added | Shane Steinfeld | @Adrian, It looks like you've updated your code to reflect my suggestions, but I see in your thread with Sebastian that it still isn't working for you. What errors are you getting now? | |
Sep 26, 2018 at 17:28 | comment | added | AjFmO | I have tried as you said, including some lines more. I have updated the question to show the actual code. | |
Sep 26, 2018 at 2:59 | history | edited | Shane Steinfeld | CC BY-SA 4.0 |
Improving formatting.
|
Sep 26, 2018 at 2:28 | history | answered | Shane Steinfeld | CC BY-SA 4.0 |