Evaluate member selection members

Returns members by evaluating the functions, expressions, and members specified in memberSelectionString against the requested plan type and dimension.

Member alias values are resolved from aliasTableName when supplied; otherwise, the service uses the alias table configured in the user's preferences. Optional context and q filter values are applied during member evaluation.

Required Roles

Service Administrator

REST Resource

POST /HyperionPlanning/rest/v3/applications/{appname}/plantypes/{plantype}/dimensions/{dimname}/memberselectionmembers

Request

Parameters:

Table 3-593 Request Parameters

Name Description Location JSON Type Required Default / omission
appname Application name. Path string Yes Not applicable
plantype Plan-type name, such as Plan1. Path string Yes Not applicable
dimname Dimension in which to evaluate the expression. Path string Yes Not applicable
memberSelectionString Member selection expression to evaluate. Required by this operation. Request body string Yes None
aliasTableName Alias table used to resolve member aliases. Request body string No User's preference
context Evaluation context for forms, user variables, rules, runtime prompts, or dimension selections. See Evaluation context. Request body object No Omitted
q Additional filter encoded as a JSON string. Applied after evaluating memberSelectionString. Request body string No No additional filter
fields Response property names as a JSON array; not a comma-separated string. Request body array of strings No No explicit projection
offset Zero-based nonnegative index in filtered evaluation results. Request body integer No 0
limit Maximum returned results. Nonpositive limits request remaining results without a positive page-size bound. Request body integer No 25
securedTreeView Controls secured-tree representation of the result; false does not bypass authorization or confer edit permission. Request body boolean No false
removeInvalid Invalid-member handling: NONE, INVALID, or INVALID_UNLESS_VALID_DESCENDANTS. See Evaluation controls. Request body string No NONE
excludeExpensivePropertiesByDefault Exclude expensive properties unless explicitly requested in fields. Request body boolean No true

Send a required request body with Content-Type: application/json.

Request payload used to evaluate member selection expressions.

The simple request below evaluates the expression. Additional controls and conditional context examples follow in this topic.

Example request body. This fixture assumes USA is a visible member below Entity in HP1/Plan1. The additional filter selects only USA after expression evaluation. Explicit offset and limit identify the requested page.

{
  "memberSelectionString": "IDescendants(Entity)",
  "aliasTableName": "Default",
  "q": "{\"name\":\"USA\"}",
  "fields": [
    "id",
    "name",
    "dimName",
    "parentName",
    "links"
  ],
  "offset": 0,
  "limit": 25
}

Example URL

https://<BASE-URL>/HyperionPlanning/rest/v3/applications/HP1/plantypes/Plan1/dimensions/Entity/memberselectionmembers

Response

Supported Media Types: application/json

Table 3-594 Response Parameters

Name Description
items The members returned by the request.
items[].links Links to this resource and related operations.
items[].links[].rel The relationship of the linked resource to this resource.
items[].links[].href The URL of the linked resource.
items[].links[].action The HTTP method used to access the linked resource.
items[].id The unique identifier of the member.
items[].name The name of the member.
items[].dimName The name of the dimension containing the member.
items[].parentName The name of the parent member.
totalResults Total matches after expression evaluation and q filtering, before paging; not just the number of returned items.
hasMore Whether matching records remain after the returned page. This does not promise top-level paging links.

Sample Response

The following illustrative response assumes the request finds exactly one visible USA member. It contains the complete one-match item list for this fixture. With offset=0 and limit=25, the one matching item is returned, totalResults is 1, and hasMore is false. The UUID is illustrative rather than an identifier to reuse in your application.

{
  "items": [
    {
      "links": [
        {
          "rel": "self",
          "href": "https://<BASE-URL>/HyperionPlanning/rest/v3/applications/HP1/dimensions/Entity/members/USA",
          "action": "GET"
        }
      ],
      "id": "2aa42dc0-4eca-4fa2-9aca-421c3585c372",
      "name": "USA",
      "dimName": "Entity",
      "parentName": "Total Entity"
    }
  ],
  "totalResults": 1,
  "hasMore": false
}

The member's item-level GET link is separate from navigation for the evaluation request. Do not depend on top-level self or paging links for this operation. To request another page, resubmit the evaluation request with the required offset and limit.

Evaluation controls

The service evaluates memberSelectionString, applies the additional q filter, and then pages the results using offset and limit. Response projection selects the properties to serialize.

In this body, q is a string containing valid JSON. Escape its inner quotation marks as shown below. fields is an array of property names. These formats differ from the URL query parameters on List Dimensions.

{
  "memberSelectionString": "IDescendants(Entity)",
  "aliasTableName": "Default",
  "q": "{\"name\":{\"$ne\":\"Entity\"}}",
  "fields": [
    "name",
    "dimName",
    "parentName"
  ],
  "offset": 0,
  "limit": 25,
  "securedTreeView": false,
  "removeInvalid": "NONE",
  "excludeExpensivePropertiesByDefault": true
}

This alternative request excludes the root Entity name from the evaluated result before paging. It does not guarantee a fixed number of matches in every application.

removeInvalid controls invalid-member handling:

  • NONE: do not remove members on this validity criterion.

  • INVALID: remove invalid members.

  • INVALID_UNLESS_VALID_DESCENDANTS: remove invalid members unless they have valid descendants.

With excludeExpensivePropertiesByDefault=true, otherwise-expensive statistics can still be requested explicitly in fields, for example ["name", "filteredDescendantsCount"]. Select only the properties needed by the client. Projection and evaluation controls do not grant write permission or bypass member access checks.

Evaluation context

Supply only the context relevant to the expression and existing form, variable, or rule. These fields are not all required together. Referenced artifacts and selected members must exist and be accessible.

Table 3-595 Context properties

Property JSON Type Use
context.formName string Existing form supplying form-specific evaluation context, when needed.
context.userVariableName string Existing user variable supplying variable-specific evaluation context, when needed.
context.contextDimToMemberMap object (string values) Map of dimension names to selected member names. Keys such as Scenario and Year are application-specific examples, not required API fields.
context.ruleName string Existing rule whose context is used for runtime-prompt evaluation.
context.ruleType string Rule type associated with ruleName. The example uses Rule; use the type appropriate to the existing artifact.
context.rtpNameToValueMap object Map of runtime-prompt names to selected values for the relevant rule context. Prompt names are application-specific keys.
context.currentRtpName string Runtime prompt currently being evaluated, when applicable.

Form-context example. This assumes TestForm exists and uses the supplied Scenario and Year selections:

{
  "memberSelectionString": "IDescendants(Entity)",
  "context": {
    "formName": "TestForm",
    "contextDimToMemberMap": {
      "Scenario": "Budget",
      "Year": "FY18"
    }
  }
}

User-variable context example, when EntityUserVar is the variable relevant to evaluation:

{
  "memberSelectionString": "IDescendants(Entity)",
  "context": {
    "userVariableName": "EntityUserVar"
  }
}

Rule/runtime-prompt context example. This assumes the existing rule uses Entity and Scenario prompts, with Entity as the prompt currently being evaluated:

{
  "memberSelectionString": "IDescendants(Entity)",
  "context": {
    "ruleName": "TestDimMemberFilteringViaRest",
    "ruleType": "Rule",
    "currentRtpName": "Entity",
    "rtpNameToValueMap": {
      "Scenario": "Budget",
      "Entity": "CA"
    }
  }
}

Access requirements and error outcomes

Table 3-596 Operation access

Operation Required access
Evaluate member selection members Service Administrator. Applicable expression/context access and member visibility. Projection does not grant edit permission.

Authentication, resource visibility, and permission to change metadata are separate checks. A successful read does not establish write permission. Error responses are separate from the successful metadata fields documented in this topic.

Table 3-597 Operation-specific outcomes

Case Outcome Action
Missing or invalid authentication Authentication failure Authenticate using the supported method and inspect the actual status/diagnostic response.
Missing or inaccessible application/resource Operation-specific failure Check the identifier, application, and visibility. Do not assume the same missing-resource status across all operations.
Invalid selection, filter, paging, or projection input Validation failure Correct the applicable input using the operation reference; inspect the returned status and diagnostic details.

For other failures, inspect the actual HTTP status and response body. See Error Handling and Status Codes. Do not require every error to contain the same metadata or item-detail structure.

Paging and projection formats

offset is a zero-based nonnegative index and defaults to 0. limit defaults to 25. A positive limit bounds the page size; any nonpositive limit, including 0 or -1, returns all remaining matching results starting at the offset. It does not mean a zero-item page.

Filtering occurs before paging. totalResults describes the full filtered match count. hasMore indicates whether matching results remain after the returned page. These counters are not derived solely from the number of properties selected for serialization.

Table 3-598 Projection formats by operation

Operation Location fields format
Get Dimensions for a Plan Type URL query Comma-separated string, for example fields=name,dimType.
Evaluate member selection members JSON request body Array of strings, for example "fields": ["name", "dimName"].

memberSelectionString is required for this evaluation operation. A memberName property used by another operation does not replace the expression. Supply q, when needed, as a JSON-encoded string evaluated after the expression.

Two-page example. This illustrative fixture assumes exactly two visible Entity members match the name filter, USA and CA. Their order below is illustrative; no fixed result ordering is promised. Use the same expression, filter, and projection for both requests.

First-page request:

{
  "memberSelectionString": "IDescendants(Entity)",
  "q": "{\"name\":{\"$in\":[\"USA\",\"CA\"]}}",
  "fields": [
    "name",
    "dimName"
  ],
  "offset": 0,
  "limit": 1
}

Illustrative result excerpt:

{
  "items": [
    {
      "name": "USA",
      "dimName": "Entity"
    }
  ],
  "totalResults": 2,
  "hasMore": true
}

Second-page request:

{
  "memberSelectionString": "IDescendants(Entity)",
  "q": "{\"name\":{\"$in\":[\"USA\",\"CA\"]}}",
  "fields": [
    "name",
    "dimName"
  ],
  "offset": 1,
  "limit": 1
}

Illustrative result excerpt:

{
  "items": [
    {
      "name": "CA",
      "dimName": "Entity"
    }
  ],
  "totalResults": 2,
  "hasMore": false
}

Zero-match example, assuming no evaluated visible member has the specified name:

{
  "memberSelectionString": "IDescendants(Entity)",
  "q": "{\"name\":\"__NoSuchVisibleMember__\"}",
  "fields": [
    "name",
    "dimName"
  ],
  "offset": 0,
  "limit": 25
}
{
  "items": [],
  "totalResults": 0,
  "hasMore": false
}

These excerpts do not promise top-level evaluation self or paging links. Request the next page by resubmitting the body with the appropriate offset.