Sandeep Yadav (Salesforce) 提问于 #Sales And Marketing2018年1月13日 10:55How 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 个回答排序按日期排序按最有帮助排序按日期排序Gavin Dimaria2018年1月13日 10:58Lead lead = [Select City, BillingCountry from Lead where Id = '00Qxxxxxxxx']; string city = lead.City; string billingCountry = lead.BillingCountry;在 Slack 中回复
Gavin Dimaria2018年1月13日 10:58Lead lead = [Select City, BillingCountry from Lead where Id = '00Qxxxxxxxx']; string city = lead.City; string billingCountry = lead.BillingCountry;