question

Brian Jones avatar image
Brian Jones asked Brian Jones answered

Launch Powershell Script from Desktop App on Incoming call

Hello,

We've been attempting to launch a local powershell script from the "Launch External App" feature of the windows desktop app without any success.

We know our PS1 works when run manually outside of RingCentral, but it appears RC app isn't hitting, or isn't liking any of the various paths we tried. Below are samples of things we tried (notice the usage of quotes in the examples.)

C:\Users\User Name\Documents\RingCentralScript\IncomingCall.ps1 1231231234 %P %F %l %D

"C:\Users\User Name\Documents\RingCentralScript\IncomingCall.ps1 1231231234 %P %F %l %D"

'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -file "C:\Users\User Name\Documents\RingCentralScript\IncomingCall.ps1 1231231234 %P %F %l %D"'

"C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -file 'C:\Users\User Name\Documents\RingCentralScript\IncomingCall.ps1 1231231234 %P %F %l %D'"

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -file "C:\Users\User Name\Documents\RingCentralScript\IncomingCall.ps1 1231231234 %P %F %l %D"

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -file 'C:\Users\User Name\Documents\RingCentralScript\IncomingCall.ps1 1231231234 %P %F %l %D'

Any suggestions?

external powershell script execution
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered

What is the error message? And does it work when you manually execute the command in cmd ?

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Brian Jones avatar image
Brian Jones answered

HI Tyler, there is no error on any of these tests. Yes, the script works from the command line. Is there a RC app log?

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.