Hi All,
I am developing a script for extracting a table box data into a Notepad into the user's Desktop. User has to do this from the apps from Access Point.
For that Windows User name is required to pass in variable and script, NOT the Login Name for Report Center.
For example -
My laptop's windows username is Firstname.Lastname ( I can get this path as - C:\Users\Firstname.Lastname\Desktop).
My Login name in Access Point is Lastname_Firstname.
Approaches-
- If is use OSUser(), i am getting Lastname_Firstname instead of Firstname.Lastname.
- Also tried using LET vExportPath = GetRegistryString('HKEY_CURRENT_USER\Environment\','TEMP');
Here the variable vExportPath gives the value as %USERPROFILE%\AppData\Local\Temp. If in place of %USERPROFILE%, I can get C:\Users\Firstname.Lastname, that would be helpful.
Can someone please suggests some options, how can I pass the Windows User name is any variable?