> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/infor-ji-cheng-yu-pei-zhi/importing-customer-master-data/custom-master-data.md).

# 自定义主数据

如何在 DocBits 中直接导入主数据。

#### 激活自定义主数据 <a href="#activating-custom-master-data" id="activating-custom-master-data"></a>

在仪表板中，依次前往“设置” → “文档处理” → “模块”。

![](https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-dd9f3b3c797404074a917493044303f1686d25f4%2FDocBits_CMD_1%20\(1\).png?alt=media)

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-254d303c00f21a77e28781259e9ac7b065a15937%2FDocBits_CMD_2.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

在“模块”中，按下方所示启用“自定义主数据”滑块。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-8be4b47525a9c33896a168b0084439f2019c9c20%2FDocBits_CMD_3.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

#### 功能概览 <a href="#feature-overview" id="feature-overview"></a>

要将自己的主数据添加到 DocBits 中，请前往“设置”中的“主数据查找”。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-c09f326a829180e43f9897e65ed91abf86d44d35%2FDocBits_CMD_4.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

点击“Custom Master Data”。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-5d99dc6394277c7a3b346f9ec6b25bd7720fbd09%2FDocBits_CMD_5.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

随后，您可以选择创建模板或端点。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-dd8876b807e87ec84c723b218af929f540728edc%2FDocBits_CMD_6.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

#### 创建模板 <a href="#create-a-template" id="create-a-template"></a>

首先，选择使用组织的 ION API 文件，或使用 OAuth2 并输入所需数据。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-a63085b8f94fd293c70bd335c5fa2a5b5a4ca434%2FDocBits_CMD_7.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

接下来，我们将配置预设。在此处输入主数据表名称和 API 调用 URL。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-10150af808ba5214c6327af289d7e8e97e666719%2FDocBits_CMD_8.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

随后，您需要使用点表示法输入 JSON 路径。有关点表示法的更多信息，请点击[此处](https://docs.hevodata.com/sources/engg-analytics/streaming/rest-api/writing-jsonpath-expressions/)。

最后，您需要将数据映射到要创建的列中，如下例所示。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-abc5c6d80a9dacf1b4be86329387cf3cd8c9372b%2FDocBits_CMD_9.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

完成后，点击“Done”以创建并填充新的主数据。

#### 创建端点 <a href="#create-an-endpoint" id="create-an-endpoint"></a>

首先，选择使用组织的 ION API 文件、使用 OAuth2，或将此项留空并输入所需数据。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-06cf0f65ee68d95279aa12b1d859cfdedb7b65b3%2FDocBits_CMD_10.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

接下来，我们将配置预设。在此处输入主数据表名称和 API 调用 URL。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-10150af808ba5214c6327af289d7e8e97e666719%2FDocBits_CMD_8.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

随后，您需要使用点表示法输入 JSON 路径。有关点表示法的更多信息，请点击[此处](https://docs.hevodata.com/sources/engg-analytics/streaming/rest-api/writing-jsonpath-expressions/)。

最后，您需要将数据映射到要创建的列中，如下例所示。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-abc5c6d80a9dacf1b4be86329387cf3cd8c9372b%2FDocBits_CMD_9.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

完成后，点击“Done”以创建并填充新的主数据。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/infor-ji-cheng-yu-pei-zhi/importing-customer-master-data/custom-master-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
