Menu
Get Rule By Id
Retrieve a rule by ID.
GET
/organizations/{organizationId}/catalogs/{catalogId}/categories/{categoryId}/rules/{ruleId}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Get Rule By Id action (under Catalogs (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{getRuleById.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getRuleById.response.data.<field>}}.
{
"id": "VHRule",
"enabled": false,
"exclusion": false,
"categorizationLocaleId": "en-US",
"categorizationClassificationFlag": true,
"categorizationPrimaryFlag": true,
"conditions": [
{
"id": "NameCondition",
"attributeKey": "name",
"attributeValue": [
"Shirt"
],
"operator": "starts_with",
"attributeName": "name"
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?