function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gaurav Jiwane 1Gaurav Jiwane 1 

in the lead backup object i am getting the id insted of its old name...how can i get its name ?

User-added image
SwethaSwetha (Salesforce Developers) 
Hi Gaurav,
In which line of your code are you getting the id ?
Gaurav Jiwane 1Gaurav Jiwane 1
In The Line Number 6....
Like I want The name Which I Saved But I Got An Id Of That Record...
I Will Attach The Snap Of That...
In Advance 
Thanks You :-
GauravUser-added image
Naveen KNNaveen KN
Based on your code, line number 6 referred to the name field. As we can see in the screenshot of the record page, the name field is updated with the id of the record and hence you are getting the same in the code as well. change the value of this field and check your logs.  
mukesh guptamukesh gupta
Hi Gaurav,

First you need to add debug 

system.debug('Lead Id==>> '+la.Id);
system.debug('Lead Name==>> '+la.Name);

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh