Exchange Online Quarantine Search Using Wildcards
Hey There,
This page http://technet.microsoft.com/en-us/library/dn567976%28v=exchg.150%29.aspx states at the bottom you can use wildcards to search quarantined messages in EOP but I can't get the commandlet to work. I know the brackets are wrong but even are rectifying
that issue the code still doesn't work.
Is it possible to use wildcards with get-quarantinemessage?
Hibs Ya Bass!
Please read full text most carefully.
Q. Are wildcards supported when searching for quarantined messages? Can I search for quarantined messages for a specific domain?
A. Wildcards are not supported
when specifying search criteria in the Exchange admin center. For example, when searching for a sender, you must specify the full email address.
"Not" usually means "not". if this is not the case please notify.
¯\_(ツ)_/¯
Is this the sarcasm forum then?
It also states that wildcards are not supported when using the Exchange Admin Center. I'm not using the admin center I'm trying to use the powershell code that Microsoft themselves have recommended directly below!
Hibs Ya Bass!
No. The documentation clearly states wildcards re not supported. Reqd the full text.
Your issue appears to be a missing character. Fix that and try again/
¯\_(ツ)_/¯
So you're saying that wildcards aren't supported then go on to tell me the there's a missing character in the code that clearly uses a wildcard. Which is it?
Hibs Ya Bass!
Similar Messages
-
Return data is null while calling Exchange Online rest api using jquery on Chrome and Mozilla
Hi,
I am developing a SharePoint hosted app in which I am calling Exchange online rest api using basic authentication to get mail for the user. This works fine in IE but returns null data when opening in Chrome or Mozilla.
Is there something I am missing while making rest call to api?
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, AjeetHi,
This forum is to discuss problems of Office development such as VBA, VSTO, Apps for Office .etc. But I think your question is related to app for SharePoint. I suggest you posting it in
App for SharePoint forum for more efficient responses.
Thanks.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
BP telephone Search using wildcards (IC Winclient)
I'm unable to search business partners by telephone number using wildcards (*) because I get the error message "enter a country to do the search using wildcards".
How can I include a default country and state on the html template of the BP Search?
I´ve tried this code below (on tcode smw0)but it doesn't work:
Portugal
Lisbon
Any help?
Thankshey buddy
yes i would like to enahnce the BP search too
but right now the things is that the BP search screen the standard one is coming emmpty
i have assigned the search criteria as BPSearch which is a default profile for search
but when i assign the BP search workspace ,the screen is coming empty
i mean firstly the standard screen should be coming ,then i could enhance it
please tell me what all are the settings required to use BP search in winclient
again mentioning the standard screen containing the existing standard criteria for BP search is not coming ,the screen under the BP search tab is empty
please advise
help will be appreciated
best regards
ashish -
Exchange Online Plan 1 use with Office Home and Business 2013 License
Question: Does the Office Home & Business 2013 Outlook work properly with Exchange Online Plan 1? (are there limitations?)
As a farm dealership needing 44 licenses (very light Office product use except email), I'm struggling with the sustaining cost of Office365 Bus Prem. I've pretty much settled on buying Outlook 2013 instead of any subscription models. Office Home
and Business list price is $219 making a one time purchase cost $9639. I can do that once. (O365BP is $7,920 annual). Outlook 2013 stand-a-lone will run me around $3500 once plus $2112 annual. I'd really like the full office package. I wish
the pricing worked out better for rural, light use businesses.Hi GHopf,
Great advice from scottylat2486.
I find some article about the difference of Office production, please refer to:
Compare Office 365 Business Plans:
https://products.office.com/en-us/business/compare-office-365-for-business-plans?legRedir=true&CorrelationId=de56e70f-2f8a-4633-87e2-7cf478e1adb2
Choose Microsoft Office Products:
https://products.office.com/en-us/buy/compare-microsoft-office-products?legRedir=true&CorrelationId=5770b405-d067-42b4-b799-fc3dbc4cc21c
Outlook license requirements for Exchange features:
https://support.office.microsoft.com/en-us/article/Outlook-license-requirements-for-Exchange-features-46b6b7c5-c3ca-43e5-8424-1e2807917c99?CorrelationId=736f8dec-4c9f-4501-a070-191e5833bd71&ui=en-US&rs=en-US&ad=US
This question may be related to Office 365, please contact Office 365 Team so that you can get more professional suggestions. For your reference:
http://community.office365.com/en-us/default.aspx
Best Regards,
Allen Wang -
Value Mapping Replication - XIVMService.execute() search using wildcards
Hi, i'm replicating value mappings to IS' cache.
Replication works fine. Using RWB i'm can list all the data in the Value Mapping Groups cache. I can also perform a loose search entering something like "12*" in the 'Value' field and the result contains all the mappings having 'Value' staring with "12".
The problem arises when i try to do the same search with
XIVMService.executeMapping
because it just tries to do an exact search insluding the wildcard as the source value. Has anyone tried this? I need help urgently, otherwise i'm afraid i'll have to change my solution radically.
Thanks in advance
Nicolá>I can also perform a loose search entering something like "12*" in the 'Value' >field and the result contains all the mappings having 'Value' staring with "12".
Are you doing this to manually search for the value in the RWB or is it in the Runtime.
> The problem arises when i try to do the same search
> with
XIVMService.executeMapping
because
> it just tries to do an exact search insluding the
> wildcard as the source value. Has anyone tried this?
Where are you trying this search? What i mean to ask is in the runtime ? Are you using some UDF/ Java code to read the data from the value mapping table?
If my answer/ question is completely off track , I would really like to know what you are trying here
Regards
Bhavesh -
Decommissioning Exchange Server 2007 after staged migration to Exchange Online
Hi there,
I have recently migrated all our on-premise Exchange 2007 user mailboxes to Exchange Online/Office 365 using a staged migration running DIRSYNC (Windows Azure Directory Services Directory Synchronization Tool). Now I would like to remove the old on-premise
Exchange server but I am not sure if that would break things.
Also with Disync enabled you cannot manage some mailbox properties in Exchange Online, it needs to be done with AD, right? If that is the case is it a good idea to have Exchange 2010/2013 Management Tools installed to manage the mailboxes?
Thank you,
PieterHello,
Windows Azure Directory Services Directory Synchronization Tool is used to synchronize on-premises directory objects(users, groups, contacts) to cloud. If you want to remove the old on-premise Exchange server, you need to make sure you have moved mailboxes
to o365 successfully, the mail flow is ok and the user can access their mailboxes.
Here is an article for your reference.
http://technet.microsoft.com/en-us/library/jj898486(v=exchg.150).aspx
Not all operations for mailbox can be done via AD, so I recommend you install Exchange Management Tools to manage the mailboxes.
If you have any feedback on our support, please click here
Cara Chen
TechNet Community Support -
Using wildcards in CCM 2.0 search
Hi experts
we're using SRM 5.0 (SRM 5.5 Server) with CCM 2.0.
Is it possible to use wildcards in catalog search?
Are there any documents about wildcards in CCM ?
Regards.
SvenHi
Yes TREX is mandatory for CCM2.0 (written in the master guide). Please restart the TREX server and retry, if this does not in your case.
I guess, There are two wildcard characters:
? stands for a single character
stands for a sequence of any combination characters of any length.
Related links ->
CCM 2.0 Simple search on CSE does not show any result
Re: Cross catalog search doesn't work for CCM 2.0
Re: Search function for Catalogue CCM 1.0 SRM version 4
CCM view rules - based on wild cards?
Re: Is TREX required for CCM 2.0 search?
Hope this answers your queries. Do let me know.
Regards
- Atul -
How to search for files using wildcards * and ?.
Hi All,
I've been searching the forum for a couple of hours now and have been unable to find a good example of how to search a directory (Windows OS) for a file using wildcards * and/or ?. Does anyone out there have a good example that they can share with me?
ThanksHi All,
First of all I want to thank everyone for taking the time to respond to my question. All of your responses where greatly appreciated.
I took the example code that was posted by rkconner, thanks rkconner, and modified it to allow me to search for files in a directory that contain * and/or ?. Yes, I said and/or! Meaning that you can use them both in the same file name, example: r??d*.t* would find readme.txt.
I've posed my complete and thoroughly document code below. I hope it is very helpful to other as I have searched many forums and spent many hours today trying to resolve this problem.
Enjoy
* File Name: WildcardSearch.java
* Date: Jan 9, 2004
* This class will search all files in a directory using the
* asterisk (*) and/or question mark (?) as wildcards which may be
* used together in the same file name. A File [] is returned containing
* an array of all files found that match the wildcard specifications.
* Command line example:
* c:\>java WildcardSearch c:\windows s??t*.ini
* New sWild: s.{1}.{1}t.*.ini
* system.ini
* Command line break down: Java Program = java WildcardSearch
* Search Directory (arg[0]) = C:\Windows
* Files To Search (arg[1]) = s??t*.ini
* Note: Some commands will not work from the command line for arg[1]
* such as *.*, however, this will work if you if it is passed
* within Java (hard coded)
* @author kmportner
import java.io.File;
import java.io.FilenameFilter;
public class WildcardSearch
private static String sWild = "";
* @param args - arg[0] = directory to search, arg[1] = wildcard name
public static void main(String[] args)
String sExtDir = args[0]; // directory to search
sWild = args[1]; // wild card to use - example: s??t*.ini
sWild = replaceWildcards(sWild);
System.out.println("New sWild: " + sWild);
File fileDir = new File(sExtDir);
File[] arrFile = fileDir.listFiles(new FilenameFilter()
public boolean accept(File dir, String name)
return (name.toLowerCase().matches(sWild));
for (int i = 0; i < arrFile.length; ++i)
System.out.println(arrFile.getName());
} // end main
* Checks for * and ? in the wildcard variable and replaces them correct
* pattern characters.
* @param wild - Wildcard name containing * and ?
* @return - String containing modified wildcard name
private static String replaceWildcards(String wild)
StringBuffer buffer = new StringBuffer();
char [] chars = wild.toCharArray();
for (int i = 0; i < chars.length; ++i)
if (chars[i] == '*')
buffer.append(".*");
else if (chars[i] == '?')
buffer.append(".{1}");
else
buffer.append(chars[i]);
return buffer.toString();
} // end replaceWildcards method
} // end class -
I have a friend who runs a small company with approximately 10 users. They are currently using Small Business Server 2003 and are using Exchange 2003 to a limited degree. They are using POP accounts with a hosting company for external email and
are using Exchange for internal email and calendar sharing. They have several different versions of Outlook including 2003, 2007, and 2010. Most of the users have two mail accounts configured in Outlook - one Exchange account and one account with a hosting
company which provides POP mail boxes. Their MX record currently points to the hosting company not their exchange server. As far as I know, they do not have any static IP addresses or if they do, they are not using them.
I do not believe Outlook versions about 2010 will work with Exchange 2003 and their server is getting older and probably needs an upgrade.
I think they should probably move to Exchange Online since they do not have an IT person on staff.
I've done some research and it looks like the recommended solution is a cut-over migration from Exchange 2003 but it looks like that would require some changes to the existing SBS 2003 / Exchange 2003 server and I'm not sure that we would be comfortable
making those changes.
Would it be possible to sign-up and create the user accounts using Exchange Online and just import the data from the user's PST files?
I tried doing some research it looks like it is possible but one post mentioned needing to modify the mailbox’s legencyDN or they may not be able to reply to old messages. How difficult is that? Can it be done after the messages have been migrated
to Exchange Online.
They only have about 10 users so we are looking for the simplest way to move to Exchange Online, not necessarily the fastest or most efficient.
Any advice would be greatly appreciated.Hi,
Based on your description, I understand that you want to migrate Exchange 2003 Public Folders to Exchange Online. We can get following messages from this article:
Public Folders in Exchange Online
You can’t migrate public folders directly from Exchange 2003. If you’re running Exchange 2003 in your organization,
you must move all public folder databases and replicas to Exchange 2007 SP3 RU10 or later. No public folder replicas can remain on Exchange 2003.
It seems that can’t migrate on-premise Exchange 2003 public folders to an Office 365.
àOn the client
side we are using Exchange 2007
Did you mean Outlook 2007? Please refer to the following thread and check if can help you.
Migrating Exchange 2003 Public Folders to
Wave 15 Office 365
Hope this helps.
Best regards,
Justin Gu -
Connecting to Exchange Online using module vs. manually : module wont work
I'm nearly at my wits' end.
I have installed MSOnline, and Active Directory modules for PS 3.0.
I've created a PS module which contains a function, "connect-exchange" which simply gets my credentials, creates a new session for Microsoft Exchange online, then connects to MSonline and imports the PSsession for exchange. I run PS as administrator
(windows 7), set-executionpolicy unsigned, open $profile and add in the modules I'll use most (Active Directory, MS Online, and my custom module). I run PS as my normal user, and get-module reports all three modules are loaded, including my custom one. I run
the function "connect-exchange" and it goes as expected. I am redirected to two URI's and a Module name is listed with exported commands pertinent to managing Exchange Online. Great. The problem is that
none of the cmdlets work, and the Exchange Online tmp module does not show up in get-module.
The kicker is that If I open my custom module with the connect-exchange function, highlight the actual commands in the function and run them manually, everything works properly.
Letting PS do the module makes it appear to work, except nothing related to my exchange session shows up in get-module, and none of the cmdlets are available. Manually running the exact same code that is in the module makes it work.
This is my custom module, which loads when I start powershell:
Function Connect-Exchange()
$cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $cred -Authentication Basic -AllowRedirection
Connect-MsolService -Credential $cred
Import-PSSession $Session
Running "connect-exchange" does connect, and this is the output (it is identical to the output as when I run the commands in the function manually, as would normally be expected):
PS H:\> Connect-Exchange
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
WARNING: Your connection has been redirected to the following URI: "https://pod51009psh.outlook.com/powershell-liveid?PSVersion=3.0 "
WARNING: Your connection has been redirected to the following URI: "https://by2prd0412psh.outlook.com/powershell-liveid?PSVersion=3.0 "
ModuleType Name ExportedCommands
Script tmp_j1a0we4q.sad {Add-AvailabilityAddressSpace, Add-DistributionGroupMember, Add-MailboxFolderPermiss...
Get-module doesn't give me this module, tmp_j1a0we4q.sad. No Script modules are listed that give me any exchange exported commands. Get-PSsession shows 1 session, opened with Microsoft.Exchange . No exchange online cmdlets are available to me at this point
(including any of the ExportedCommands listed above).
If I remove the session, open the custom module (listed at the top of this message), highlight the code in the connect-exchange function, then F8, I get the exact same output as the 2nd box listed above, but my exchange cmdlets are available and usable.
Any ideas why the function which is part of a module which is imported at the start of each PS session does not seem to work the same as running the commands in the function independently?Hey Ben,
http://msdn.microsoft.com/en-us/library/windows/desktop/dd878284%28v=vs.85%29.aspx will probably give you a hint.
"When a module is imported, a new session state is created for the module, and a
PSModuleInfo object is created in memory. A session-state is created for each module that is imported (this includes the root module and any nested modules). The members that are exported from the root module, including any members that were exported to
the root module by any nested modules, are then imported into the caller’s session state."
Perhaps, because that module has it's own session, it's modules are being missed or are precluded from being imported into subsequent sessions. I do something very similar to you, except I just include the Connect-Exchange function in my profile.ps1 directly
instead of creating a custom module.
Good luck!
Shane -
[3.1] InfoView Search - Use of Wildcards in Search string
Hi,
Is it possible to use wildcards like % or ? or _ or ... in InfoView search?
Thanks for feedback!
Rafwhat do you mean infoview search? are you searching for any document? or you have a report and you would like use wild card?
if it is first one, just type in the word in the search box and enter. it brings all objects with that name. no need to use wild cards.
if it is in the report, yes. in the where clause change the operator to matches pattern and in the operand type in the word and use the wild card. -
Exchange Online - Automated subscription to internet calendar using any method?
Is there any automated way to push in a subscription of an internet calendar to an Exchange Online user?
We have a time management tool that generates personalized internet calendars with unique URL's (example: http://timemanagement-tool.lcl/username.ics )
In trying to find a way I subscribed to a calendar in OWA and it works as expected, updates if appointments are updated and so on. Looking with MfcMapi I can see a subfolder to my calendar was created when I subscribed to the ics. But not in any of the folder
properties can I see any reference to the unique URL. Where is this URL referenced? It's got to be somewhere, how else does Exchange know where to pull updates from?The configuration for the Shared calendar is stored in a FAI item (Folder associated Item) with a message class of IPM.Sharing.Binding.In which you should be able to access using MFCMapi. There is no API operations for creating a Sharing invitation with
EWS but you can accept one see
http://msdn.microsoft.com/en-us/library/office/ee693280(v=exchg.150).aspx . Calendar Sharing is also documented in the following Exchange Protocol documents
http://msdn.microsoft.com/en-us/library/cc433485(v=exchg.80).aspx and
http://msdn.microsoft.com/en-us/library/ee624726(v=exchg.80).aspx . Its possible to use this information to create your own sharing invitation manually but its not easy.
Cheers
Glen -
Problem using Powershell 5.0 to manage Exchange online
Hi guys.
I've been trying to use the powershell 5.0 to connect to Exchange online and that not Works... some Help please--
regards-
Fabian Campo-
MCTS.
Fabián A. Campo H. Consultor tecnico @ IXO Ltda. MCT MCP MCTS MCSA HP-APS Cra. 67 No. 167 – 61 of 303 Bogotá, ColombiaWhat have you tried? Have you posted in the online Exchange forum for help.
¯\_(ツ)_/¯ -
Can use our domain in Exchange Online Plan 1
Dear Sir,
If I use Exchange Online Plan 1, can I use our domain name, e.g. [email protected] instead of [email protected] ?
Thanks,
Joe.Hi GHopf,
Great advice from scottylat2486.
I find some article about the difference of Office production, please refer to:
Compare Office 365 Business Plans:
https://products.office.com/en-us/business/compare-office-365-for-business-plans?legRedir=true&CorrelationId=de56e70f-2f8a-4633-87e2-7cf478e1adb2
Choose Microsoft Office Products:
https://products.office.com/en-us/buy/compare-microsoft-office-products?legRedir=true&CorrelationId=5770b405-d067-42b4-b799-fc3dbc4cc21c
Outlook license requirements for Exchange features:
https://support.office.microsoft.com/en-us/article/Outlook-license-requirements-for-Exchange-features-46b6b7c5-c3ca-43e5-8424-1e2807917c99?CorrelationId=736f8dec-4c9f-4501-a070-191e5833bd71&ui=en-US&rs=en-US&ad=US
This question may be related to Office 365, please contact Office 365 Team so that you can get more professional suggestions. For your reference:
http://community.office365.com/en-us/default.aspx
Best Regards,
Allen Wang -
Hi,
i'm working on enhancing a service to be able to use OAUTH2 as authentication protocol with client credential grant flow when talking to exchange online ( like described here:
http://blogs.msdn.com/b/exchangedev/archive/2015/01/22/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx ). I gave my application the rights
Office 365 Exchange Online : Application Permissions: "Have full access via EWS to all mailboxes ....."
Windows Azure Active AD: Application Permissions: "Read Directory data", Delegate Permissions: "Enable sign-on and read users_ profiles"
I receive a access token from log.windows.net:
decoded token:
typ: "JWT",
alg: "RS256",
x5t: "MnC_VZcATfM5pOYiJHMba9goEKY"
aud: "https://outlook.office365.com/",
iss: "https://sts.windows.net/<TENANT_ID>/",
iat: 1426584502,
nbf: 1426584502,
exp: 1426588402,
ver: "1.0",
tid: "<TENANT_ID>",
roles: [
"full_access_as_app"
oid: "1ddbdc11-b80d-4d1d-91b9-5b07a6b82659",
sub: "1ddbdc11-b80d-4d1d-91b9-5b07a6b82659",
idp: "https://sts.windows.net/TENANT_ID/",
appid: "<APP_ID_IN_AZURE_AD>",
appidacr: "2"
<SIGNATURE>
If i use that token then to send a EWS XML to exchange online i get a 500 HTTP status code back:
With impersonation in the request:
[http.wire ]: >> "POST /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
[http.wire ]: >> "Authorization: Bearer <MY_ACCESS_TOKEN>[\r][\n]"
[http.wire ]: >> "SoapAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n]"
[http.wire ]: >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: >> "User-Agent: OpenScapeUC EWS HttpClient/3.0[\r][\n]"
[http.wire ]: >> "client-request-id: 5b2c7e1a-656d-4f43-bd34-ea2d6290611f[\r][\n]"
[http.wire ]: >> "Date: Tue, 17 Mar 2015 10:08:17 GMT[\r][\n]"
[http.wire ]: >> "Content-Length: 1189[\r][\n]"
[http.wire ]: >> "Host: outlook.office365.com[\r][\n]"
[http.wire ]: >> "Connection: Keep-Alive[\r][\n]"
[http.wire ]: >> "[\r][\n]"
[http.wire ]: >> "<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><ns2:ExchangeImpersonation xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns2:ConnectingSID><ns2:PrimarySmtpAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:PrimarySmtpAddress></ns2:ConnectingSID></ns2:ExchangeImpersonation><ns2:RequestServerVersion
xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages" Version="Exchange2007_SP1"/></S:Header><S:Body><ns3:GetFolder xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns3:FolderShape><ns2:BaseShape>IdOnly</ns2:BaseShape><ns2:AdditionalProperties><ns2:FieldURI FieldURI="folder:FolderId"/></ns2:AdditionalProperties></ns3:FolderShape><ns3:FolderIds><ns2:DistinguishedFolderId
Id="contacts"><ns2:Mailbox><ns2:EmailAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:EmailAddress></ns2:Mailbox></ns2:DistinguishedFolderId></ns3:FolderIds></ns3:GetFolder></S:Body></S:Envelope>"
[http.wire ]: << "HTTP/1.1 500 Internal Server Error[\r][\n]"
[http.wire ]: << "Cache-Control: private[\r][\n]"
[http.wire ]: << "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: << "Server: Microsoft-IIS/8.0[\r][\n]"
[http.wire ]: << "request-id: ec42b5c5-f8dc-498d-ae16-d851a852058c[\r][\n]"
[http.wire ]: << "Set-Cookie: ClientId=<DELETED>; expires=Wed, 16-Mar-2016 10:08:17 GMT; path=/; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-CalculatedBETarget: am2pr02mb0387.eurprd02.prod.outlook.com[\r][\n]"
[http.wire ]: << "X-DiagInfo: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-BEServer: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-AspNet-Version: 4.0.30319[\r][\n]"
[http.wire ]: << "Set-Cookie: exchangecookie=<DELETED>; expires=Thu, 17-Mar-2016 10:08:17 GMT; path=/; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 10:08:18 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 10:08:18 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-Powered-By: ASP.NET[\r][\n]"
[http.wire ]: << "X-FEServer: DB5PR01CA0064[\r][\n]"
[http.wire ]: << "Date: Tue, 17 Mar 2015 10:08:17 GMT[\r][\n]"
[http.wire ]: << "Content-Length: 891[\r][\n]"
[http.wire ]: << "Accept-Ranges: none[\r][\n]"
[http.wire ]: << "Connection: keep-alive[\r][\n]"
[http.wire ]: << "[\r][\n]"
Without impersonation in the request:
Request
[http.wire ]: >> "POST /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
[http.wire ]: >> "Authorization: Bearer <MY_ACCESS_TOKEN>[\r][\n]"
[http.wire ]: >> "SoapAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n]"
[http.wire ]: >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: >> "User-Agent: OpenScapeUC EWS HttpClient/3.0[\r][\n]"
[http.wire ]: >> "client-request-id: 20bd722f-8276-4ebb-8d58-ce45d31f3ed4[\r][\n]"
[http.wire ]: >> "Date: Tue, 17 Mar 2015 09:33:24 GMT[\r][\n]"
[http.wire ]: >> "Content-Length: 871[\r][\n]"
[http.wire ]: >> "Host: outlook.office365.com[\r][\n]"
[http.wire ]: >> "Connection: Keep-Alive[\r][\n]"
[http.wire ]: >> "[\r][\n]"
[http.wire ]: >> "<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><ns2:RequestServerVersion xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages" Version="Exchange2007_SP1"/></S:Header><S:Body><ns3:GetFolder xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns3:FolderShape><ns2:BaseShape>IdOnly</ns2:BaseShape><ns2:AdditionalProperties><ns2:FieldURI
FieldURI="folder:FolderId"/></ns2:AdditionalProperties></ns3:FolderShape><ns3:FolderIds><ns2:DistinguishedFolderId Id="contacts"><ns2:Mailbox><ns2:EmailAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:EmailAddress></ns2:Mailbox></ns2:DistinguishedFolderId></ns3:FolderIds></ns3:GetFolder></S:Body></S:Envelope>"
Response:
[http.wire ]: << "HTTP/1.1 500 Internal Server Error[\r][\n]"
[http.wire ]: << "Cache-Control: private[\r][\n]"
[http.wire ]: << "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: << "Server: Microsoft-IIS/8.0[\r][\n]"
[http.wire ]: << "request-id: 923ba463-490f-4ac9-a496-993cd8a44115[\r][\n]"
[http.wire ]: << "Set-Cookie: ClientId=<DELETED>; expires=Wed, 16-Mar-2016 09:33:24 GMT; path=/; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-CalculatedBETarget: am2pr02mb0387.eurprd02.prod.outlook.com[\r][\n]"
[http.wire ]: << "X-DiagInfo: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-BEServer: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-AspNet-Version: 4.0.30319[\r][\n]"
[http.wire ]: << "Set-Cookie: exchangecookie=<DELETED>; expires=Thu, 17-Mar-2016 09:33:25 GMT; path=/; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 09:33:25 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 09:33:25 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-Powered-By: ASP.NET[\r][\n]"
[http.wire ]: << "X-FEServer: AM3PR07CA0038[\r][\n]"
[http.wire ]: << "Date: Tue, 17 Mar 2015 09:33:24 GMT[\r][\n]"
[http.wire ]: << "Content-Length: 799[\r][\n]"
[http.wire ]: << "Accept-Ranges: none[\r][\n]"
[http.wire ]: << "Connection: keep-alive[\r][\n]"
If i use BASIC authentication and impersonation the request is successfully.
Has anyone an idea why i might get the error 500 in that scenario?For EWS to work with App Token, you need to do two more things. One you already did: Set the impersonation header. Two is to set the X-AnchorMailbox http request header to the smtp address of the mailbox you want to access. This routes the request instantly
to the right backend.
Hope this helps.
Thank you! Matthias
Maybe you are looking for
-
How can I search for a substring of a email address or a subject
... without getting hits on other fields or content. Mail 5.0 seems to have removed the ability to restrict your seach to particular fields. What you get instead is the ability to select 'people' which should be called 'addresses' or 'subjects'. T
-
Why is there extra white space around an imported image?
I had made a JPEG2000 format image sized at 119 pixels wide by 142 pixels tall. Went to convert it to a pdf file and Acrobat took the liberty of enlarging the images size to what I assume is the smallest size supported by the format. Any ideas on how
-
BB Q10 empty message through Groupwise Mobility Service
Hello forum members! We have an issue with an smartphone BlackBerry Q10 (OS version 10.1.0.4181) using Groupwise Mobility Service version 2.0.1 revision 53, installed on Suse Linux Enterprise Server 11 patchlevel 3. When the user replies to an extern
-
How to install Japanese language in Blackberry Curve 9320
I want to install Japanese language in Blackberry Curve 9320. I have tried to install 9320jAllLang_PBr7.1.0_rel2494_PL9.49.0.98_A7.1.0.907_Redington__India__Limited but still unable to install it. Please advice. Regards, Vishal
-
Any problems discovered using Quicken Essentials for Mac on OS 10.8 Mountain Lion?
I am nervous about installing Mountain Lion (OS 10.8) because I don't want to lose functionality in Quicken Essentials for Mac. Is there user confirmation that the program continues to work on Mountain Lion? Thanks for your help!