You need to sign in to do that
Don't have an account?
Akshiiiii
Retrieving one field from a list of fields
I am returning a list of object fields from my apex controller to form a table. Now suppose I the value of only one of the fields from that list to use somewhere else. How can i do that?
Could you please share the details about list or code snippet and which field you want to retrieve.
Thanks!
Greetings!
You can store that value in another list and then you can use that single value.
For example, you want to use the email of Contact. Now, you can use emailList where you want.
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi
If you are refering list of records in VF page to iterate over, you can refer below code snippet
Please let me know if it solves your purpose. If not please share where your are trying to access the value of only one of the fields from that list.
Regards,
Surojit