-
Converting Salesforce sobject List into string List
Hi all,
i wanted to get list of accounts name into a single string
List<account>acc=select name ,id,annualrevenue from account
i wanted to get a individual string list for each field .
like
List<string>name:- must have all accounts name
List<string>id:-must have all accounts id
thanks
-
This discussion was modified 8 years, 3 months ago by
Vikas Kumar.
-
This discussion was modified 8 years, 3 months ago by
Forcetalks.
-
This discussion was modified 8 years, 3 months ago by
Forcetalks.
-
This discussion was modified 8 years, 3 months ago by
Log In to reply.
Popular Salesforce Blogs

What Is Vlocity in Salesforce? Key Features and Business Applications
Founded in 2014, Vlocity rapidly established itself as a pioneer in the "industry cloud" space, earning three consecutive Forbes Cloud 100 awards in 2017, 2018, and 2019.…

Running Case Assignment Rules From Salesforce Apex
Hi All, We all know that the Case Assignment Rule decides how cases are assigned to users or put into queues. We can create multiple…

Salesforce Org Security through Profiles And Permission Sets
Profiles Profiles characterize how clients get to articles and information, and what they can do inside the application. At the point when you make clients,…
Popular Salesforce Videos
Relationships in Salesforce | Why Relationships are Created?
In this video, Salesforce Rangers goes into detail about what relationships are in Salesforce and why they are necessary in the first place. This is…
Maximizing Salesforce Lightning Experience and Lightning Component Performance
00:04:57 - Agenda 00:06:08 - Difference between Salesforce Classic and Salesforce Lightning 00:17:45 - Demo: Load time comparison between Salesforce Classic and Salesforce Lightning when…
Practice Test and Questions for Salesforce Platform App Builder Certification Exam
In this video, Shrey provides a practice test for the candidates who are preparing for the Salesforce Platform App Builder Exam. This test boosts your…