ExtractTermsFromAttachment - Global
concept australia Updated Sep 10, 2026 1 min read c_ExtractTermsFromAttachmentAPI.md
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.
Parent Topic:Server API reference
23 lines · 1.3 KB
--- title: ExtractTermsFromAttachment - Global description: The ExtractTermsFromAttachment script include provides methods to extract terms from an attachment. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/server-api-reference/c\_ExtractTermsFromAttachmentAPI.html release: australia product: Server API Reference classification: server-api-reference topic_type: concept last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Server API reference, API reference, API implementation and reference] --- # ExtractTermsFromAttachment- Global 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. **Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)
| title | ExtractTermsFromAttachment - Global |
| description | The ExtractTermsFromAttachment script include provides methods to extract terms from an attachment. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/api-reference/server-api-reference/c\_ExtractTermsFromAttachmentAPI.html |
| release | australia |
| product | Server API Reference |
| classification | server-api-reference |
| topic_type | concept |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Server API referenceAPI referenceAPI implementation and reference |