-
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 7 years, 4 months ago by Vikas Kumar.
- This discussion was modified 7 years, 4 months ago by Forcetalks.
- This discussion was modified 7 years, 4 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Things to Consider Before Changing Field Data Type in Salesforce
So, you want to change your field’s data type? Hold thy horses, know that there are some restrictions and considerations which should be taken care…
How to Evaluate Multiple Conditions in "aura:if" tag in Salesforce Lightning ?
aura: if tag - Aura:if tag renders the content either in its body or in the else attribute based on the value of the isTrue…
Salesforce Financial Services Cloud Spring '23 Highlights
Shake off those winter blues with the new features coming in Salesforce's Spring '23 for Financial Services Cloud. Whether it's ARC enhancements, interaction summary automation,…
Popular Salesforce Videos
What is Validation Rule in Salesforce?
Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record. A…
SQL Row_Number - Salesforce Marketing Cloud Functions in 5 minutes
Cameron Robert shows how to use the Row Number (Over Partition By) SQL function in Salesforce Marketing Cloud. The SQL Row Number function can be…
Unleash Your Salesforce Process Automation With This New Connector For Salesforce Lightning Platform
Unleash your Salesforce process automation with this new Connector for Salesforce Lightning Platform (a set of 130 Activities and 5 wizards that allow you to…