0

I want to retrieve an array list using visualforce page, for example, evry user is identified by his name, email, adress and a table of folders, evry folder has an ID, and name.

How can I do this, please ?

Thanks in advance.

1 Answer 1

1

Retrieving objects in SFDC is done with SOQL. You can read more about it here.

For example, to retrieve a the name and id of every user in the org:

User[] users = [select Id, Name, from User];

If you want to show the information in a Visualforce page, you should make the users variable a property. Then you can use apex:dataTable or apex:repeat to show the values.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.