Hi all,
I have a workflow that needs to read files from a Box folder located inside the user’s Windows profile directory.
Right now the Directory tool uses a hard-coded path, for example:
C:\Users\anoor\Box\Recon Automation Working Files\Plant 1700\1700 Alteryx Input\ZP2P0015 Inventory Recon. SAP 1700\
The problem is:
C:\Users\<whoever is logged in>\Box\Recon Automation Working Files\Plant 1700\1700 Alteryx Input\...
I tried using GetEnvironmentVariable("USERNAME"), but the Directory tool does not accept formulas or dynamic expressions in the File Path box. It also has no input anchor, so I cannot pass in a calculated path.
My question:
👉 What is the recommended way in Alteryx Designer (2024.2) to make the Directory tool user-agnostic so that any user can run the workflow and access the correct Box folder inside their own Windows profile?
I’m open to any solution that works — batch macro, configuration setting, alternate tool, best practice, anything reliable.
Thanks in advance for any help.