Skip to main content

ExtractHyperlinksFromOfficeFiles

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 5.5.0 and later.

Extract hyperlinks from office files. Supported file types are: xlsx, docx, pptx.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version5.5.0

Inputs#


Argument NameDescription
entry_idThe entry id of the file to extract hyperlinks from.

Outputs#


PathDescriptionType
ExtractedHyperLink.URLThe extracted hyperlinks URL.String
ExtractedHyperLink.FileNameThe 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/