Click to Call Scripting: Overview

Modified on Mon, 1 May, 2023 at 6:22 AM

This is advanced information that should only be used by a software developer.

Phone Number Variables

The phone number information is stored in two variables at the beginning of your script:
$PhoneURL = "tel:5555555555"
$PhoneNumber = "5555555555

Exit Codes

If your script exits Powershell with a non-zero exit code, the audio transcribing will not automatically start.  This is good for scripts that give the user the ability to "cancel" the call.

Use the following script to return a non-zero exit code.
function ExitWithCode { 
    param($exitcode) 
    
    $host.SetShouldExit($exitcode);
    exit
}

ExitWithCode(1)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article