isClone() and getCloneSourceId() API's don't work in Lightning Experience

API , Winter 18 , Lightning

Last updated 14 days ago ·Reference W-4328595 ·Reported By 181 users

In Review

Summary
isClone() and getCloneSourceId() API's don't work in Lightning Experience

Repro
1). Login to an ORG and create a sample trigger on an object for example:

Contact Object:
trigger CloneTestContact on Contact (before insert, before update) {

Contact c = Trigger.New[0];
c.addError('CloneValue==>'+c.isClone()+'===SourceId==>'+c.getCloneSourceId());
}

2). Switch to Salesforce Classic => Open any Contact record
3). Click on Clone Button and Save

We will get the below error
========
CloneValue==>true===SourceId==>0032800001D72plAAB
========

=> Now Switch to Lightning
=> Open the same Contact and Click on Clone and Save

We will get the below error
========
CloneValue==>false===SourceId==>null
========

Workaround
N/A

Reported By (181)

Sebastian Schwarz Armando Ruiz Garcia Masatsugu Tamaki Md Babul Hossain Alessandro Passoni (Danfoss) Gene Bradley Erin Mullaney Harish Lad Sean DesMarteau Minseok Kang Sue Magliano Snehal Solanki Rami Tayba Erin Tice ken kodama Rami Hawly Asger Arentoft James Melville Maros Ondrejicka Pierre Eymard Rob Halcomb Nicholas Decloedt Jose Medina Riitta Lehtonen Ivan Botta Sai Sathish Kethu Ehsan Yazdjerdi Dawid Jaskulowski Shadab Hussain Sankalita Chatterjee Mauricio Murillo Dilip Mistry Ruka Hirata Sullair Admin Megan Gallagher Daniel Wu Bobby Mathew Pieter Verbeke Dirish Bhaugeerutty Matt Garland BZ Zaveri Jason McLain Gerko Jansen Inderdeep Singh Bert Janssens Michael Chitayat Venkatesh Donthula Prateek Goyal Matt Bingham Navaprasad Reddy Ande Zack Amrein Robert Becker Brett Smith Brendan Conners Daniel Dlugos Sebastian Kessel Rob Jacques Marc Paris Dustin Cowles Josh LeQuire Trieste LaPorte Kyle Callicoat Admin Telnext Tianhao Wu Srikant Nizamkar David Pearce Shiwen Liang QQ V1 Colafly joost karsten Este Garcia Roger Fontcuberta Ashwin Dash Phil Casia Andres Riggioni Meghana Gupta Dominic Young Jesus Gonzalez Rob Halcomb Roger Chang Anshul Goyal Admin SfourG three Sivasagar Palagiri Aiden McCorkindale KIMMO LIIMATAINEN Scott Blaine Adam Lewandowski Gary Foster Ankit Rustagi Neil Jamison Jake Hebert Andrew Hawkins Andy Hunter Raghavendra Arigela Nithun Gangula Murali Dodda Jonathan Gillespie Gavin Wong Linda Jones Jonathon Jurisch Gabriella Espinoza Chris Kloepping Emily Hillis Jaime De la Rosa Paredes David Herrero Heiko Seel Bonita Elevario Varun Chaddha Jack Creighton Kanhaiya Yadav Erik Mullen Rajesh Varma Mudunuri Shirley Jin Alba Azcona veerendranath akula Edel Scannell Global SFDC Developer2 Sara Peradzynska Xiang Li Wiliam Brockhus Brett Gibson Alexandra Korn 英年 川田 Admin S4G 2 Elke Meitzner Sara Sarmiento Varona Raposo Matías Kruk Oscar Perez Diaz (S4G) Iñigo Alonso-Alegre Juan Carlos Pascual Alba González Alberto Grossenbacher Daniel Vázquez Víctor Manuel Andrés Pascual Daniel Vázquez López Diego Martin Jonathan Wiesel Ismael Ocaña Wilfredo Morillo Jegadheesan Muthusamy Mohammed Riyas Sowmya S Jeff Bentler Sidharth Chaturvedi Raf De Kimpe Nathan Slabinck Lieven Benoot Alexander Verkouille Dimitri Suls Sven Peleman Jorne Van Landschoot Deepak Kumar Shyoran Dev User Anjani apdevorg4 Guilherme Lopes Agustina Garcia Jesus Arcas Ana Cristina Lopez Calero Stefano Brivio Jose Manuel Garrido Morgado Cristina Sanchez Jose Jiménez David Lirio Alberto David Fernández Rafa Torres Pablo Rubio Jahiel Ramirez Aníbal Cámara Agustin Jiménez Jesus Gonzalez Sanchez David Gamarra Simeon Ruiz Antonio Diaz System Administrator Javier Coca Anthony Blanc Calvin Chiu Hugo Pereira Anthony Blanc Sebastien Richard Jayant Das

Is it Fixed?

AP0 AP3 AP4 AP5 AP6 AP7 AP8 AP9 AP14 AP15 AP20 AP21 AP22 AP28 CS1 CS2 CS3 CS4 CS5 CS6 CS7 CS8 CS9 CS10 CS109 CS108 CS107 CS106 CS105 CS102 CS101 CS100 CS115 CS110 CS11 CS116 CS12 CS137 CS138 CS13 CS14 CS148 CS142 CS15 CS152 CS151 CS16 CS17 CS18 CS19 CS20 CS21 CS22 CS23 CS24 CS25 CS26 CS27 CS28 CS29 CS30 CS31 CS32 CS33 CS34 CS35 CS36 CS37 CS40 CS41 CS42 CS43 CS44 CS45 CS47 CS50 CS51 CS52 CS53 CS54 CS57 CS58 CS59 CS60 CS61 CS62 CS63 CS64 CS65 CS66 CS67 CS68 CS69 CS70 CS71 CS72 CS73 CS74 CS75 CS76 CS77 CS78 CS79 CS80 CS81 CS82 CS83 CS84 CS85 CS86 CS87 CS88 CS89 CS90 CS91 CS92 CS93 CS94 CS95 CS96 CS97 CS98 CS99 EU7 EU8 EU10 EU12 EU13 EU14 EU15 EU16 EU17 EU18 EU19 EU25 EU26 EU29 EU30 NA104 NA109 NA100 NA101 NA103 NA102 NA105 NA119 NA116 NA110 NA112 NA111 NA115 NA114 NA113 NA117 NA129 NA124 NA122 NA130 NA136 NA135 NA132 NA131 NA146 NA142 NA141 NA154 NA155 NA196 NA21 NA32 NA37 NA39 NA44 NA45 NA46 NA47 NA49 NA51 NA52 NA53 NA54 NA56 NA57 NA58 NA59 NA60 NA61 NA62 NA63 NA64 NA65 NA66 NA67 NA68 NA69 NA70 NA71 NA72 NA73 NA74 NA75 NA76 NA77 NA79 NA80 NA81 NA82 NA83 NA84 NA85 NA86 NA87 NA88 NA89 NA90 NA91 NA92 NA93 NA94 NA95 NA96 NA97 NA98 NA99 UM1 UM2 UM3 UM4 UM5

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.