ExtractHyperlinksFromOfficeFiles
Extracts hyperlinks from office files. Supported file types are: xlsx, docx, pptx.
python · Common Scripts
Details
| ID | ExtractHyperlinksFromOfficeFiles |
|---|---|
| Language | python |
| From Version | 5.5.0 |
| Docker Image | demisto/office-utils:2.0.0.9067966 |
README
Extract hyperlinks from office files. Supported file types are: xlsx, docx, pptx.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 5.5.0 |
Inputs
| Argument Name | Description |
|---|---|
| entry_id | The entry id of the file to extract hyperlinks from. |
Outputs
| Path | Description | Type |
|---|---|---|
| ExtractedHyperLink.URL | The extracted hyperlinks URL. | String |
| ExtractedHyperLink.FileName | The office file that the hyperlinks extracted from. | String |
Script Examples
Example command
!ExtractHyperlinksFromOfficeFiles entry_id=1249@93725c86-540d-4ee4-8728-f0ab82b1cb46
Context Example
{
"ExtractedHyperLink": {
"FileName": "Link.docx",
"URL": "https://www.paloaltonetworks.com/"
}
}
Human Readable Output
Extracted hyperlinks are
https://www.paloaltonetworks.com/
args: - description: The entry id of the file to extract hyperlinks from. name: entry_id required: true comment: 'Extracts hyperlinks from office files. Supported file types are: xlsx, docx, pptx.' commonfields: id: ExtractHyperlinksFromOfficeFiles version: -1 name: ExtractHyperlinksFromOfficeFiles outputs: - contextPath: ExtractedHyperLink.URL description: The URL of the extracted hyperlink. type: String - contextPath: ExtractedHyperLink.FileName description: The office file from which the hyperlinks are extracted. type: String script: '-' timeout: '0' type: python subtype: python3 dockerimage: demisto/office-utils:2.0.0.9067966 fromversion: 5.5.0 tests: - No tests (auto formatted)