Newer Version Available

This content describes an older version of this product. View Latest

describeSearchLayouts()

Retrieves the search result layout configuration for one or more objects.

Syntax

Usage

Use describeSearchLayouts() to retrieve search layout information for one or more objects. This is handy when you want to create a custom search results page with the same layout settings as in Salesforce.

Sample

This sample shows how to retrieve the search result layout information for a list of objects.

Arguments

Name Type Description
sObjectType string[] The list of objects you want to obtain search result layout configuration for. For example, if the object is a person account, specify Account, or if it is a person contact, specify Contact. The specified values must be valid objects in your organization. For a complete list of standard objects, see Standard Objects.