企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

企业微信办公功能 - 文档、微盘、邮件、日程、待办、会议、直播、打卡、审批、汇报、人事、会议室、紧急通知、公费电话

Actions298

文档 → [智能文档] 修改发布页可查看范围

AI-generated

Summary

Modify the visibility scope of a published smart document

Inputs

  • docid (required) — ID of the smart document to modify; obtainable via “新建文档” (document type: 智能文档)
  • publish_range (required) — Visibility scope: 1=企业内可见, 3=企业内外可见, 4=指定成员可见
  • publish_auth_list (required) — List of members or departments granting visibility when publish_range=4; each entry includes type (企业成员 or 部门) and corresponding UserID or DepartmentID

Output shape

a single document object reflecting the updated visibility settings

The node returns the updated document metadata (including docid and publish settings); on failure an error envelope is returned

Examples

Example 1: Set a page to be visible only to a specific member

docid='12345', publish_range=4, publish_auth_list=[{type:1, userid='98765'}]

Example 2: Make a page visible to all employees inside the organization

docid='12345', publish_range=1

Example 3: Make a page visible to both internal and external users

docid='12345', publish_range=3

Links

Discussion