Sandeep Yadav (Salesforce) preguntó en #Sales And Marketing13 ene 2018, 10:55 a.m.How to retrieve Some Field of a Lead record using ID in an apex classMy apex class don't use any Visualforce page (It's Only Apex Class) In my Scenario, I want to retrieve City and CountryName from a Specific Lead record.1 respuestaOrdenarClasificar por fechaClasificar por más útilClasificar por fechaGavin Dimaria13 ene 2018, 10:58 a.m.Lead lead = [Select City, BillingCountry from Lead where Id = '00Qxxxxxxxx']; string city = lead.City; string billingCountry = lead.BillingCountry;Responder en Slack
Gavin Dimaria13 ene 2018, 10:58 a.m.Lead lead = [Select City, BillingCountry from Lead where Id = '00Qxxxxxxxx']; string city = lead.City; string billingCountry = lead.BillingCountry;