# 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="https://3323790987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJyIxKYxK0LMJ2T3XubCS%2Fuploads%2F8ZA01cp7GS2HczaV4AYl%2FDOcAddon.png?alt=media&#x26;token=02021eb4-14eb-4044-8f56-39a5325707a1" 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="https://3323790987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJyIxKYxK0LMJ2T3XubCS%2Fuploads%2F07NTCP9Gc6i9if2v6jJi%2Fimage.png?alt=media&#x26;token=869a561e-f987-4193-b661-97d7dc32d0dd" 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="https://3323790987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJyIxKYxK0LMJ2T3XubCS%2Fuploads%2FNjkUBHcvs7muxXCDlRsg%2Fimage.png?alt=media&#x26;token=15f1bbd3-ac1e-433b-8f2e-4dff87b8d15f" 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="https://3323790987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJyIxKYxK0LMJ2T3XubCS%2Fuploads%2FLPTHa6Z92Ipv936ogJ9L%2Fimage.png?alt=media&#x26;token=182c12db-f96c-4115-a72b-10a3c5ef19b4" 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="https://3323790987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJyIxKYxK0LMJ2T3XubCS%2Fuploads%2Frgy2JTCmw2agFFD2MFGB%2Fimage.png?alt=media&#x26;token=84bf7f8d-b3dd-4a10-9ffb-8738aa25b87e" alt=""><figcaption></figcaption></figure>

## Media Handling services

* "Attach media from file Record"-operation

<figure><img src="https://3323790987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJyIxKYxK0LMJ2T3XubCS%2Fuploads%2FPAg2DjkSRT6XFwlo6Fn8%2Fimage.png?alt=media&#x26;token=e40c5dca-9f64-46b7-a28d-958b1af93301" alt=""><figcaption></figcaption></figure>

* "Download media to file record"-operation

<figure><img src="https://3323790987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJyIxKYxK0LMJ2T3XubCS%2Fuploads%2FX46oQWkwlYR6h7T6PRdp%2Fimage.png?alt=media&#x26;token=41ed9513-f773-44b6-ab9d-17d04dc67b09" alt=""><figcaption></figcaption></figure>
