Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

updateListPreferences

Use this wire adapter to update the preferences for a list view.

See Update List View Metadata.

  • objectApiName—(Required) The API name of a supported object.
  • listViewApiName–(Required) The API name of a list view, such as AllAccounts.
  • columnWidths—The column-width preferences for the list.
  • columnWrap—The column-wrapping preferences for the list.
  • listReference—The reference information for the list.
  • orderedBy—The ordering preference for the list.

This code example updates a list view’s preferences and displays the updated values.

See Also