> For the complete documentation index, see [llms.txt](https://docs.novacura.com/flow-ifs-cloud-development-guidelines/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novacura.com/flow-ifs-cloud-development-guidelines/flow-development-with-odata/implementation/document-media-library-management.md).

# Document / Media Library Management

Document Handling and Media Handling can be enabled and disabled in OData Connector configuration. Both services are enabled/disable for each IFS configuration.

<figure><img src="/files/A4XsFeni82oeEMQQunod" alt=""><figcaption><p>Enable/Disable Document / Media handling services</p></figcaption></figure>

Once service has been enabled, it will appear in machine step.&#x20;

<figure><img src="/files/RPNeYAo1oIL5RGk8sf0V" alt=""><figcaption></figcaption></figure>

## Attachments

All operations either read or store attachments in flow table used by File Gallery UI,  component.&#x20;

## Document Handling services

* "Check in document, from file record"-operation adds a document file to existing DocIssue entity in IFS. All parameters are mandatory.

<figure><img src="/files/qZZYiJaazCbgUZkRysz4" alt=""><figcaption></figcaption></figure>

* "Create and check in new document, from file record"-operation creates a new DocIssue entity, attaches the document and optionally creates DocReferenceObject to one Entity. Mandatory input paramaters are *data*, *filename* and *DocClass*.  If you want to link the document to another entity, provide KeyRef (TASK\_SEQ=88^) and LuName (JtTask).

<figure><img src="/files/qLRNdstp9ZwM5rvlKv3Z" alt=""><figcaption></figcaption></figure>

* "Download document file"-operation is used to get file from IFS Document management. Mandatory parameters are *DocClass, DocNo, DocRev, DocSheet.*

<figure><img src="/files/S6zZyJ2CRO1MgNOymmrC" alt=""><figcaption></figcaption></figure>

## Media Handling services

* "Attach media from file Record"-operation

<figure><img src="/files/CFT9XqiPwboyEmiCxiOA" alt=""><figcaption></figcaption></figure>

* "Download media to file record"-operation

<figure><img src="/files/b90AZbdgLJLPUMD8AaUS" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

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

```
GET https://docs.novacura.com/flow-ifs-cloud-development-guidelines/flow-development-with-odata/implementation/document-media-library-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
