企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

应用管理 → [应用管理] 设置用户工作台数据

AI-generated

Summary

Sets a WeCom app’s workbench data for one user, using the selected template type. Provide the data as structured form fields or as a JSON object; the operation validates and normalizes the data before sending it to WeCom.

Inputs

  • 应用 ID (`agentid`) (required) — Positive integer ID of the app.
  • 用户 (`userid`) (required) — User ID within the app’s visible range; select a user or provide a UserID expression.
  • 模版类型 (`type`) (required) — Must match the app’s configured workbench template: key data, image, list, or webview.
  • 模版数据输入方式 (`workbenchInputMode`) — Choose the form fields for the selected template type or provide its data object in JSON. Defaults to form.
  • Template data fields (required) — Form inputs depend on the template type: key data accepts 1–4 items with data text and optional name and link; image accepts an image URL and optional link; list accepts 1–3 titled items with optional links; webview accepts a rendering URL, optional link, height, title visibility, and in-view link setting. Link targets can be a web URL or mini-program page path where available.
  • 模版数据 JSON (`workbenchDataJson`) (required) — When JSON mode is selected, provide the selected type’s data object (for example, keydata uses an items array). The source applies the same validation and normalization as for form input.

Output shape

A single output item containing the WeCom API response.

The operation makes a request for each incoming item and returns each response as the item’s JSON. Invalid or incomplete template data fails validation; WeCom API errors are reported as operation errors.

Links

Discussion