{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"更新自定义变量"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"更新自定义变量","__idx":0},"children":["更新自定义变量"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["节点类型 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_updateCustomVariable"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"功能说明","__idx":1},"children":["功能说明"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["更新初始化节点已声明的自定义变量。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"客户端配置界面","__idx":2},"children":["客户端配置界面"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/update-custom-variable.71f0bdfd708dbd0f3bdbf0cfec19e71139643c91b7265c3079cda141b7568299.0538f3a9.webp","alt":"更新自定义变量节点的客户端配置界面"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["截图来自 MoreLogin 桌面客户端 V2.73.101 的英文界面。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"输入字段","__idx":3},"children":["输入字段"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下字段位于 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.browserUi.inputs"]},"。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型或取值"},"children":["类型或取值"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Schema 必填"},"children":["Schema 必填"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"执行默认值"},"children":["执行默认值"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"说明与边界"},"children":["说明与边界"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["variableId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["自定义变量 编辑器初值 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"assign\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"add\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"subtract\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"appendText\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"push\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"concat\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"removeAt\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"merge\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"removeKey\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"toggle\""]},"（支持变量引用）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"assign\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["更新方式 编辑器初值 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"assign\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[\"null\",\"boolean\",\"number\",\"string\"]"]}," / array<",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["JSON"]},"> / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]},"（支持变量引用）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["更新内容"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"条件与边界","__idx":4},"children":["条件与边界"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["更新变量的当前值；每次整流程从开始节点 customVariables 初始值运行，数字/文字/数组/对象/布尔更新须匹配变量类型。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["校验错误码 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"输入引用","__idx":5},"children":["输入引用"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"字段"},"children":["字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"允许的形式"},"children":["允许的形式"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["variableId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["literal"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["literal"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["template"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["literal"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["template"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"输出字段","__idx":6},"children":["输出字段"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"输出字段"},"children":["输出字段"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"类型或取值"},"children":["类型或取值"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["previousValue"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[\"null\",\"boolean\",\"number\",\"string\"]"]}," / array<",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["JSON"]},"> / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[\"null\",\"boolean\",\"number\",\"string\"]"]}," / array<",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["JSON"]},"> / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["按契约用 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["${nodeId.data.field}"]}," 引用公开字段。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"json-示例","__idx":7},"children":["JSON 示例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["可放入流程 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nodes"]}," 数组或其他节点 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]}," 中的完整节点对象。自定义变量 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["attempts"]}," 在 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start.data.customVariables"]}," 中声明。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"count_attempt\",\n  \"type\": \"browser_updateCustomVariable\",\n  \"data\": {\n    \"title\": \"尝试次数加一\",\n    \"browserAction\": \"updateCustomVariable\",\n    \"browserUi\": {\n      \"inputs\": {\n        \"variableId\": \"attempts\",\n        \"operation\": \"add\",\n        \"value\": \"1\"\n      }\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/browser-rpa/nodes"},"children":["返回节点目录"]}]}]},"headings":[{"value":"更新自定义变量","id":"更新自定义变量","depth":1},{"value":"功能说明","id":"功能说明","depth":2},{"value":"客户端配置界面","id":"客户端配置界面","depth":2},{"value":"输入字段","id":"输入字段","depth":2},{"value":"条件与边界","id":"条件与边界","depth":2},{"value":"输入引用","id":"输入引用","depth":2},{"value":"输出字段","id":"输出字段","depth":2},{"value":"JSON 示例","id":"json-示例","depth":2}],"frontmatter":{"seo":{"title":"更新自定义变量"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/browser-rpa/nodes/flow/update-custom-variable","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}