Skip to main content
My 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 件の回答
  1. 2018年1月13日 10:58
    Lead lead = [Select City, BillingCountry from Lead where Id = '00Qxxxxxxxx'];

     

    string city = lead.City;

     

    string billingCountry = lead.BillingCountry;