Timeline for Opportunity standard Clone button. How to detect cloned record in an Apex trigger?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 17, 2017 at 15:11 | comment | added | Santanu Boral | You need to migrate the data for older records | |
| Mar 17, 2017 at 15:09 | history | edited | Santanu Boral | CC BY-SA 3.0 | added 28 characters in body |
| Mar 17, 2017 at 14:59 | comment | added | kirankumar | The above answer will solve for records which were from now on but what about the old records which does not have record id value for that field.Is there any alternative way which will work for older records also? | |
| Jun 19, 2016 at 20:18 | comment | added | Santanu Boral | @Mayank, please create a fresh opportunity record and do the testing, for old records there should be data migrations, thanks. Let me know | |
| Jun 19, 2016 at 20:08 | comment | added | Santanu Boral | @Mayank, where it is failing? I have tested, it is working as expected | |
| Jun 19, 2016 at 20:04 | history | edited | Santanu Boral | CC BY-SA 3.0 | added 66 characters in body |
| Jun 19, 2016 at 20:02 | comment | added | Santanu Boral | Actually do not need to put return statement, it's just a sample to show that logic. I will update part | |
| Jun 19, 2016 at 19:37 | comment | added | Mayank Srivastava | That unfortunately didn't work and I had to go with a URL hack. Not fond of URL hacks but there was no other option here. | |
| Jun 19, 2016 at 17:49 | comment | added | sfdcfox | @SantanuBoral If you "return" you'll exit early. This may have an unintended effect on bulk data loads, because only the first record will be evaluated. | |
| Jun 19, 2016 at 7:53 | history | answered | Santanu Boral | CC BY-SA 3.0 |