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 :- Gaurav
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.
In which line of your code are you getting the id ?
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 :-
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