-
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 ago by Vikas Kumar.
- This discussion was modified 8 years ago by Forcetalks.
- This discussion was modified 8 years ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
How to Communicate With Customers During Uncertain Times | Salesforce Guide
How do you communicate with your customers when they’re facing uncertainty? How do you move beyond basic customer transactions and create memorable, human moments? Is…
Imported for Leads in Salesforce - All You Need To Know
Lead Object in Salesforce To lay it out plainly, in Salesforce, "Leads" are utilized to indicate individuals you wish as clients. Salesforce suggests isolating these…
Salesforce Data Cloud: Features & Use Cases
Salesforce Data Cloud, formerly known as Salesforce Data.com, is a robust data-as-a-service platform provided by Salesforce, one of the world’s leading customer relationship management (CRM)…
Popular Salesforce Videos
2020 Salesforce Administrator Certification Start Here
Get ready for the administrator certification exam with interactive study tools. Collaborate and study with fellow Trailblazers in the Trailblazer Community. Learn with Salesforce experts…
Service Resources and Territories in Salesforce | Salesforce Webinar
Ensure seamless field service operations by setting up Service Resources and Territories in Salesforce Field Service the right way. Organize and manage field service operations…
Salesforce Apex Trigger Best Practices | Learn Salesforce Series By Algoworks
In this video, the following points will be covered - 1. One Trigger Per Object 2. Logic-less Triggers 3. Context-Specific Handler Methods 4. Code Bulkification…