---
title: "获取表单所有的附件、文档、正文字段值（1.14.0hotfix以上支持）"
publicId: "f22c8191-bb46-4b50-86e3-fe8a756f2115"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/doc/f22c8191-bb46-4b50-86e3-fe8a756f2115"
---
**接口：com.weaver.odoc.api.rest.flowForm.OdocFormRest#getAllFieldsForDocument**

**描述：**

获取requestId及workflowId表单所有的附件、文档、正文字段值

**参数：**

| 参数名 | 必选 | 类型 | 说明 |
| --- | --- | --- | --- |
| requestParams | 是 | Map<String, Object> | 请求参数 |
| employee | 是 | SimpleEmployee | 用户对象 |

**参数示例：**

requestParams参数实例：

```
{
    "requestId":"1014846810276249603",
    "workflowId":"972504952367210499"
}
```

**返回示例：**

```
 {
	"odocText": {
		"972504973919526951": "0"
	},
	"attachment": {
		"972504973919526950": [{
				"fileId": "1014853411646709760"
			},
			{
				"fileId": "1014853497557630976"
			}
		],
		"1013952722639527942": [{
			"fileId": "1014853325624721409"
		}]
	},
	"document": {
		"1013952722639527943": [{
			"docId": "1013954152883716097",
			"fileId": "1013954195865501698"
		}]
	}
}
```

**返回参数说明：**

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| odocText | Map<String, String> | 正文字段与值对应关系，key为字段ID,value为文件fileId |
| attachment | Map<String, Object> | 附件字段与值对应关系，key为字段ID,value为文件fileId，附件字段可能有多个值 |
| document | Map<String, Object> | 文档字段与值对应关系，key为字段ID,value为文件fileId，文档字段可能有多个值 |
