fayrehouse
13 years agoFrequent Contributor
TestComplete and EWS (Exchange Web Services)
Hi All,
I have EWS installed on my PC, and have (by way of example) the following PowerShell script to connect to my Exchange account, and retrieve the latest 8 items in my inbox.
$email = "my.name@mycompany.co.uk"
$s = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService
$s.UseDefaultCredentials = $true
$s.AutodiscoverUrl($email)
$inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($s,[Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox)
$psPropertySet.RequestedBodyType = [Microsoft.Exchange.WebServices.Data.BodyType]::Text;
$items = $inbox.FindItems(8)
What I'm struggling to work out however - is the jscript alternative for use in TC - particularly (I think this is the key) the line in bold above...
Can anyone help? :)
I have EWS installed on my PC, and have (by way of example) the following PowerShell script to connect to my Exchange account, and retrieve the latest 8 items in my inbox.
$email = "my.name@mycompany.co.uk"
$s = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService
$s.UseDefaultCredentials = $true
$s.AutodiscoverUrl($email)
$inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($s,[Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox)
$psPropertySet.RequestedBodyType = [Microsoft.Exchange.WebServices.Data.BodyType]::Text;
$items = $inbox.FindItems(8)
What I'm struggling to work out however - is the jscript alternative for use in TC - particularly (I think this is the key) the line in bold above...
Can anyone help? :)