Flexible Hierarchy Bulk Validation (POST)

Validate multiple flexible hierarchies asynchronously by providing a list of IDs, applying filter criteria, or selecting all draft hierarchies.

This API processes the input parameters in a strict order of precedence. The shouldIncludeAllHierarchies parameter takes the highest precedence over hierarchyIds and filters. If shouldIncludeAllHierarchies is set to false, then the specified list of hierarchyIds are considered for validation. If shouldIncludeAllHierarchies is set to false and hierarchyIds list isn’t specified, then the filter parameter is used to select the hierarchies for validation.

Resource 

1/connect/flexible-hierarchies/actions/bulk-validate

Resource Example 

1https://YOUR_INSTANCE.salesforce.com/services/data/v68.0/connect/flexible-hierarchies/actions/bulk-validate

Available Version 

66.0

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2  "filters": {
3    "conditions": [
4      {
5        "column": "Name",
6        "operator": "Equals",
7        "value": "SalesHierarchy"
8      }
9    ],
10    "expression": "0"
11  },
12  "hierarchyIds": [
13    "001xx000003DGQyAAO",
14    "001xx000003DGQzAAO"
15  ],
16  "shouldIncludeAllHierarchies": false
17}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
filtersFlexible Hierarchy Filters InputObject that contains filter criteria to dynamically select the flexible hierarchies for validation.Required if shouldIncludeAllHierarchies is false and hierarchyIds list is empty.66.0
hierarchyIdsString[]IDs of flexible hierarchies for validation.
If this list is specified, it takes precedence over the filters parameter.
Required if shouldIncludeAllHierarchies is set to false.66.0
shouldInclude​AllHierarchiesBooleanIndicates whether all the flexible hierarchies that are in draft state must be included for validation (true) or not (false).
If set to true, this parameter takes the highest precedence, and values that are specified in hierarchyIds and filters are not considered for validation.
Optional66.0

Response Body for POST 

Flexible Hierarchy Bulk Validation Details