--- title: "get first attachment name from workflow()" slug: "w-flow-first-attachment" updated: 2025-12-10T06:29:19Z published: 2025-12-10T06:29:19Z canonical: "docs.lobstersoftware.com/w-flow-first-attachment" --- > ## 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 first attachment name from workflow() **This function is deprecated.** This function returns the name of the first file of an active workflow job. If no file is found, the return value is an empty string ('') with set Empty Flag. If the workflow is not found, the return value is "0". ## Parameters | Parameter | Description | | --- | --- | | a | Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job. |