企业微信(WeCom)-连接微信 icon

企业微信(WeCom)-连接微信

企业微信连接微信功能 - 微信客服、客户联系、家校应用、政民沟通

Actions188

客户联系 → [规则组标签] 获取标签列表

AI-generated

Summary

Retrieve the list of strategy group tags used for customer contact in WeCom, filtered by optional rule group ID, tag IDs, or tag group IDs.

Inputs

  • strategy_id — Optional rule group ID to filter tags; leave empty or set to 0 to query all visible strategy group tags for the application.
  • strategy_tag_ids — Optional comma, pipe, or newline-separated list of tag IDs to filter; duplicates are automatically removed. When specified, filtering by tags is applied unless strategy_group_ids is set.
  • strategy_group_ids — Optional comma, pipe, or newline-separated list of tag group IDs to filter; duplicates are automatically removed. When provided during query, tag ID filters are ignored.
  • requestBody — Advanced JSON object to override or supplement the request body parameters; merges with form inputs with precedence to this field. Required validations still apply after merging.
  • requestQuery — Advanced JSON object to provide additional URL query parameters; the access token is automatically appended.

Output shape

a list of strategy group tags (rule group tags) visible to the application (or filtered by the provided IDs).

The returned data includes tags grouped by their respective rule groups. If strategy_id is omitted or zero, all visible rule group tags are returned. If both strategy_tag_ids and strategy_group_ids are omitted, the entire list is returned; specifying strategy_group_ids takes precedence over strategy_tag_ids during filtering.

Examples

Example 1: Retrieve all available rule group tags visible to the configured application.

Leave '规则组 ID', '标签 ID 列表', and '标签组 ID 列表' empty.

Example 2: Retrieve tags from a specific rule group.

Set '规则组 ID' to the desired rule group numeric ID.

Example 3: Retrieve tags by a list of tag IDs.

Set '标签 ID 列表' with the comma, pipe, or newline-separated tag IDs; leave '标签组 ID 列表' empty.

Links

Discussion