---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# ExtractTermsFromAttachment - Global

# ExtractTermsFromAttachment - Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The ExtractTermsFromAttachment script include provides methods to extract terms from an attachment.

This script include is called with the ScriptedExtractor object, SysAttachmentInputStream, the sys_id for the attachment, and the extension for the attachment. The getTerms() method is called to extract the terms
from the attachment that should be indexed. The getTerms() method should just return a string that contains the terms. If you prefer to input a file rather than an inputStream, call
extractor.getFile() to get the File object containing the attachment.

