Hello,
I am currently testing whether my company could use OneDrive as repository for all of our new projects.
Example path:
C:\Users\MyUserNameFolder\CommonCompanyOnedriveFolder\SpecificTeamsDirectoryFolder\
"C:\Users\UserName" is dynamically changed part of all dependecies located on our Onedrive TEAMS folder. In order to dynamicaly define that part for all of our input/outputs we have to utilize GetEnvironmentVariable("USERPROFILE") function at all input/output routes.
Problem lies with macros. Although I can use %TEMP% user variable to define paths for all macros, I wasn't able to replicate that with %USERPROFILE%
<EngineSettings Macro="%TEMP%\CommonCompanyOnedriveFolder\SpecificTeamsDirectoryFolder\OneDriveTesting\testingmacro.yxmc" /> works
<EngineSettings Macro="%USERPATH%\CommonCompanyOnedriveFolder\SpecificTeamsDirectoryFolder\OneDriveTesting\testingmacro.yxmc" /> doesn’t
Could you please advise how could we enable %USERPROFIE% environment variable accross Alteryx dependencies?
Unfortunately, after extensive research I wasn't able to find a way to dynamically provide the user profile in the XML.
Alternatively, instead of using absolute paths, you can leverage relative paths instead.
The relative paths are then used in the XML and are relative to where the workflow (using the macro) is located. If the workflow is moved move the relative link may no longer work.
https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-To-Use-Relative-Paths/ta-p/1160
Please let me know if this helps.
Hello csmith11, I am aware of that option. We could go down that road but:
My suggestion would be to update Alteryx engine and enable it to read any system/user variables at runtime for dependencies as well. That could speed things up across the globe as Alteryx tends perform slowly while working with shared drives due to ever present delay. It should be a standard to work with local replicas instead of remote ones. Alteryx support couldn't help either as I had already contacted them as well. Will create an elaborate idea soon. Hopefully Alteryx devs aren't that busy.