younifyd
Menu

Get Category Rule Condition

Retrieve a condition by ID.

GET/organizations/{organizationId}/catalogs/{catalogId}/categories/{categoryId}/rules/{ruleId}/conditions/{conditionId}

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Category Rule Condition action (under Catalogs (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{getCategoryRuleCondition.response.data}}.

Request

Path parameters

conditionIdanyrequired

The Id of the condition.

ruleIdanyrequired

The Id of the rule

categoryIdstringrequired

The ID of the category to be created.

catalogIdstringrequired

The ID of the requested catalog.

organizationIdstringrequired

An identifier for the organization the request is being made by

Response

Returns 200 with an object. Read it in later steps with {{getCategoryRuleCondition.response.data.<field>}}.

idany

The ID of the condition.

attributeKeyany

The key of the attribute(system or custom). This represents the ID of the attribute.

attributeNameany

The human-readable name of the attribute(system or custom). This is a read-only field.

attributeValuearray<any>

The value of the attribute.

operatorstring

The operator for the condition.

One ofstarts_withcontainsequalsnot_equalsgreater_thanless_thanis_one_ofnot_one_ofis_definedis_not_defined

json
{
  "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.

Get Category Rule Condition — Salesforce Commerce Cloud — Documentation