Hi Damien,
We are aware of some script languages which may interfere with our token resolution logic and we do have plans to address this at some point. In the meantime you can safely ignore these warnings.
Regards,
Stefan
Hi!
7.3 beta is available here:
https://www.royalapps.com/go/kb-ts-win-downloadbeta
On the Advanced page in your Dynamic Folder configuration you can now use environment variables as an alternative in your dynamic folder and credential scripts.
Would be great if you can test that feature and provide feedback.
This idea is repeated here https://support.royalapps.com/support/discussions/topics/17000024626
I tested the latest beta version and everything seems fine.
Thanks for the feedback, Damien!
Damien
In Dynamic Folders with Powershell, the script is transformed to replace RoyalTS variables of the type $xxxx$ (example: $EffectiveUsername$).
In my code, if I put one of these lines :
$MyFilePath = Get-Content -Path "${RootPath}\${Environment}_server_list.csv"
$MyFilePath = Get-Content -Path "${RootPath}\$($Item.Environment)_server_list.csv"
I get the warning "At least one token couldn't be resolved" in the RoyalTS logs.
The 2 lines of code are valid and working Powershell code.
I have the impression that you're replacing variables with a regexpr of the form $\w$, i.e. all characters except space character work. In fact, the following line doesn't generate the warning:
$MyFilePath = Get-Content -Path "${RootPath} ${Environment}_server_list.csv"
due to the space.
Among all the variables provided by RoyalTS, only the following characters seem to be used: a-z A-Z 0-9 . - :
Is it possible to update the variable replacement mechanism so that it doesn't try to replace if there is one of these characters: ( ) { } between the 2 $ ? To have the same behavior as if it were a space character?
Thanks