Reference > Functions reference > Get functions > Get(DocumentsPath)
Returns the path to the Documents folder for the current user.
Data type returned 
Originated in 
FileMaker Pro 8.0
In FileMaker Pro and FileMaker Go, returns the path to the current user’s Documents folder. The path format varies by operating system.
When running on FileMaker Server, Get(DocumentsPath) returns the location of the Documents folder, which is in the same folder as the server's Backups, Databases, and Scripts folders. The Documents folder is used as a shared location that scripts from different sessions or other processes on the machine can use to import or export files. See FileMaker Server Help.
In FileMaker WebDirect and Custom Web Publishing, this function is not supported and returns an empty string.
For FileMaker Pro, for a user named John Smith, returns:
/C:/Users/John Smith/Documents/ in Windows
/Macintosh HD/Users/johnsmith/Documents/ in macOS
For FileMaker Server, returns:
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/ in Windows
/Macintosh HD/Library/FileMaker Server/Data/Documents/ in macOS
Each part of the path may vary from these examples, so don't rely on the path to follow a particular pattern.
For an example script, see Set Variable script step.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas
Get(DocumentsPathListing) function
Get(TemporaryPath) function