0
  1. Login to salesforce with admin .
  2. Go to manage users .
  3. click on manage users .
  4. Create a user from new user button.

Expected Result: After creating the user should show as first record. The list should be sorted by created date.

Actual Result: No sorting is applied on the list. Create user not coming as first record.

  • 1
    Are you reporting a salesforce bug? – highfive Sep 15 '14 at 5:01
1

The sorting to the users related list will be whatever sorting the admin had when they came to the page. You can create a new View or edit the existing one to add in the Created Date to make it available for sorting. If the admin then chooses to sort by Created Date ascending by clicking on the column header, they will see the most recently created users at the top of the list. See the help document, Sorting List Views.

Here is an example that shows it. Note the down arrow on the Created Date column showing that the users are sorted by Created Date. Also, note the Edit and Create New View links. Click those to edit or create a new View. You can create a View that is shared with all users or specific users if need be. See Creating Custom List Views for more information. Manage Users list view showing sorting

There is one other possibility. If the organization has more than 2 million users, the users list view cannot be sorted according to this help doc:

Starting in Spring ‘13, list views for the Users object in organizations that have more than two million users cannot be sorted.

  • modifying question: – user10584 Sep 15 '14 at 5:26
  • 1.Login to salesforce with admin . 2. Go to manage users tab from '+' . 3. click on manage users tab. 4. Create a user from new user button. Expected Result: After creating the user should show as first record. The list should be sorted by created date. Actual Result: No sorting is applied on the list. Create user not coming as first record. We are using VF page. – user10584 Sep 15 '14 at 5:27
  • @user10584 - What column was the list view sorted by when the New User button was clicked? That's what I would expect it to sort by. – Peter Knolle Sep 15 '14 at 5:29
  • </apex:column> <apex:column onclick="this.setAttribute('onchange','SetModified(true)')"> <apex:facet name="header">{!$ObjectType.User.fields.Username.label}</apex:facet> <apex:outputField value="{!user.userName}"/> </apex:column> – user10584 Sep 15 '14 at 5:31
  • sort by created date. – user10584 Sep 15 '14 at 5:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.