# Document User Fields

EXT\_DOC\_CabUserField - Function to replace MSS interface to edit the document header user fields&#x20;

Input parameters:&#x20;

* inDocumentType - Document type&#x20;
* inCustomerCode - Customer code&#x20;
* inUserFieldNumber - User field index (between 1 and 3)&#x20;
* inCurrentValue - Current value of the user field

Output parameters:&#x20;

* outReturnCode - 1 - OK / 0 - Cancel&#x20;
* outReturnValue - Value to store&#x20;
* outReturnDescription - Value to display

EXT\_DOC\_LineUserField- Function to replace MSS interface to edit the document lines user fields&#x20;

Input parameters:&#x20;

* inDocumentType - Document type inCustomerCode - Customer code&#x20;
* inArticleCode - Article code&#x20;
* inUserFieldNumber - User field index (between 1 and 3)&#x20;
* inCurrentValue - Current value of the user field
* inCurrentLine - Selected line number (0 - New article selected)

Output parameters:&#x20;

* outReturnCode - 1 - OK / 0 - Cancel&#x20;
* outReturnValue - Value to store&#x20;
* outReturnDescription - Value to display


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-mss-to-kalipso/document-user-fields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
