Menu
Search Site Preferences
Search Site Preferences
POST
/organizations/{organizationId}/site-preference-groups/{groupId}/{instanceType}/preference-searchUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Search Site Preferences action (under Preferences (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{searchSitePreferences.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"query": {
"filteredQuery": {
"query": {
"textQuery": {
"fields": [
"couponId"
],
"searchPhrase": "disabled"
}
},
"filter": {
"termFilter": {
"field": "enabled",
"operator": "is",
"values": [
false
]
}
}
}
},
"limit": 10,
"sorts": [
{
"field": "couponId",
"sortOrder": "desc"
}
],
"offset": 0
}
Response
Returns 200 with an object. Read it in later steps with {{searchSitePreferences.response.data.<field>}}.
{
"hits": [
{
"id": "WapiStringAttr",
"description": {},
"displayName": {},
"attributeDefinition": {
"id": "color",
"effectiveId": "c_color",
"displayName": {
"default": "Product",
"de": "Produkt",
"en": "Product"
},
"description": {
"default": "Object type representing products.",
"de": "Objekttyp, der Produkte repräsentiert.",
"en": "Object type representing products."
},
"key": false,
"mandatory": false,
"localizable": false,
"siteSpecific": false,
"searchable": true,
"queryable": true,
"valueType": "string",
"visible": true
},
"siteValues": {},
"valueType": "string"
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?