- Joined
- Dec 12, 2014
- Messages
- 39
- Reaction score
- 13
Hello,
We are trying to use the "External Application" function in the V16 client to launch a batch file and pass the %CallerNumber% parameter on, then the batch file launches a ps1 script using the parameter value as a variable. My question is in our batch file how do we reference the parameter value correctly?
For example our batch file presently says this:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "C:\Users\Bob\Desktop\3CX_SQL_Query.ps1 -number %CallerNumber%"
But the %CallerNumber% is not being passed on. Can anyone tell me how I reference the parameter within the batch file?

We are trying to use the "External Application" function in the V16 client to launch a batch file and pass the %CallerNumber% parameter on, then the batch file launches a ps1 script using the parameter value as a variable. My question is in our batch file how do we reference the parameter value correctly?
For example our batch file presently says this:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "C:\Users\Bob\Desktop\3CX_SQL_Query.ps1 -number %CallerNumber%"
But the %CallerNumber% is not being passed on. Can anyone tell me how I reference the parameter within the batch file?

