--- title: "get number of attached files of workflow()" slug: "w-flow-number-of-attachments" updated: 2025-12-10T06:29:41Z published: 2025-12-10T06:29:41Z canonical: "docs.lobstersoftware.com/w-flow-number-of-attachments" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # get number of attached files of workflow() **This function is deprecated.** This function returns the number of files attached to the workflow job **a**. The search result can be restricted with the file name pattern **b**. If the workflow job **a** or the file(s) specified in **b** cannot be found, the result of the function is *0*. ## Parameters | Parameter | Description | | --- | --- | | a | Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job. | | b | (optional) [File name pattern](/docs/en/intro-concepts-files-names-patterns) to restrict the files found. Multiple file patterns separated by the pipe character (\|) can be entered (e.g. **.txt\|*.csv*). Regular expressions with the prefix *regex:* are also allowed. See example below. | ## Example Let's assume the workflow job named *MyWorkflow 1628490814713* has the two files *myfile_1.txt* and *myfile_2.txt* attached to it. | Parameter a | Parameter b | Result | | --- | --- | --- | | MyWorkflow 1628490814713 | | 2 | | MyWorkflow 1628490814713 | *2.txt | 1 | | MyWorkflow 1628490814713 | *2.txt\|*1.txt | 2 | | MyWorkflow 1628490814713 | regex:.*txt | 2 |