Use the Search Scope and Order resource to retrieve the default global search scope and order for the logged-in user, including any pinned objects in the user’s search results page.
In the following example, the default global search scope of the logged-in user consists of the site, idea, case, opportunity, account, and user objects, in the order in which they are returned in the response body.
Example usage
curl https://MyDomainName.my.salesforce.com/services/data/v68.0/search/scopeOrder -H "Authorization: Bearer token"
Example request body
none required
Example response body
[
{
"type":"Site",
"url":"/services/data/v68.0/sobjects/Site/describe"
},
{
"type":"Idea",
"url":"/services/data/v68.0/sobjects/Idea/describe"
},
{
"type":"Case",
"url":"/services/data/v68.0/sobjects/Case/describe"
},
{
"type":"Opportunity",
"url":"/services/data/v68.0/sobjects/Opportunity/describe"
},
{
"type":"Account",
"url":"/services/data/v68.0/sobjects/Account/describe"
},
{
"type":"User",
"url":"/services/data/v68.0/sobjects/User/describe"
}
]