O365 EWS API - search one or more mailboxes for specific email, check if read?
Howdy All -
Can anyone point me as to how you can search a single or multiple mailboxes for a specific email by sender or subject to find out if the email was read?
I have scoured the net and can not find anything related to this for O365 or even Exchange 2013.
Thx!
Domran
You could use EWS to search mailboxes.
https://msdn.microsoft.com/EN-US/library/office/dn579422(v=exchg.150).aspx. You can easily check the
IsRead property on mail items.
However, I would point out that finding out if a mail is read is somewhat troublesome. How do you know a mail was read? If it is marked read? Users can toggle the read/unread state of a message, so that's kind of unreliable. You can also right-click a folder
and choose "Mark all as read", without ever actually reading the message. So depending on what you're trying to do, this may not be something you can programmatically determine.
Similar Messages
-
Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
working fine and no changes were made to the workflow.
I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
are), but we still cannot figure out why the workflow is still throwing this error.
We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type.
The form associated with the list was modified in InfoPath 2010.
Approvers would provide their approval in the InfoPath form which is then read by the workflow.
Side note - items created after the workflow throws this Unknown Error some seem to be working fine.
We have deleted the item in question and re-added it with no effect.
Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
CheersHi,
I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
Thanks,
Entan Ming
Entan Ming
TechNet Community Support -
I got error "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I found out the cause is Update Item action
I need to update item in another List call Customer Report ,the field call "Issues" with data type "Choice" to yes
then the error arise . please help..Thanks for the quick response Nikhil.
Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
Site Lists
Engagements = 4456 (Errors on this list, primary list for activity)
Tasks = 7711 (All workflow tasks from all site lists)
Clients = 4396 (Lookup from Engagements, Tslips, etc)
Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties. -
Hello
My goal is to subscribe for streaming notifications for multiple users in the same time.
One way to do that is to create multiple StreamingSubscriptionConnections each one should contain one StreamingSubscription for each user. The problem with this method is that in Office 365 the maximum
number of connections opened is 20.
Another method to solve this problem is by creating one StreamingSubscriptionConnection and then all StreamingSubscriptions for each user to the connection. This method solves the maximum number of connections
problem and it works fine with exchange onPrimises. But when trying it with Office 365 it will result with the SubscriptionError:
"One or more subscriptions in the request reside on another Client Access server. GetStreamingEvents won't proxy in the event of a batch request."
Can anyone help me here ?With Office365 you need to Group your subscriptions and set the Affinityheaders see
http://msdn.microsoft.com/en-us/library/office/dn458789(v=exchg.150).aspx and
http://blogs.msdn.com/b/mstehle/archive/2013/07/17/more-affinity-considerations-for-exchange-online-and-exchange-2013.aspx . Take note of the restrictions on the Group and other throttling restrictions if your using only one service account.
Cheers
Glen -
Display one or more rows for a particular column in alv grid display
Hi,
My requirement in the report is to display users for a particular workitem id.If a workitem is in the inbox of one or more users(approvers) i have to display all the user names in one field in alv grid output (output-approver id).There are other fields which display details of the workitem also.
Is there a way to populate multiple rows for a single column or creating one more internal table for users in the alv output table.
Please suggest.
regards,
Sravanthi ChilalALV only can show flat internal table data.
you should set a sort on the field which you want to show only once.
Then on the output of the ALV, the field with the same value will show only once. -
Free Search PA20: Using special infoset for specific users
How can i change the free search type in PA20/PA30 for a specific user?
You have a possibility to maintain object manager in PA20/PA30 via SM31: table T77FOBJMAN
Choose scenario EMPLOYEE, mark and check the search tool
For the Free search is used CL_HR_ST_ADHOC_SELECTION. Not sure how flexible is this class to be set up to call with your own variant... -
Java + Regex (Searching one or more words within quotes)
Hi Everyone,
I have the following text:
The brown "cow" jumped over the "contributor licensing agreement" and went to "Burger King" to order chicken wings.
The text above may change. This is the input text. In the input text, I want to find and print out all phrases that are inbetween quotes. I tried the following:
Pattern pattern = Pattern.compile("\"(.*)\"");
Matcher matcher = pattern.matcher(paragraph);
while(matcher.find()){
String theMatch=matcher.group();
System.err.println("Found: "+theMatch);
}The regex expression works in my regex coach program (which helps me test regex on input strings). In the Java code, however, the application only finds "cow", not "contributor licensing agreement" or "Burger King." What do I need to do in order to find those other two phrases? I want to use this to parse out and find all words or phrases in a document that are inbetween quotes.
What am I doing wrong??
jetcat33how about using a "reluctant" quantifier "?"
Pattern pattern = Pattern.compile("\".*?\""); // note the question mark
Matcher matcher = pattern.matcher(paragraph);
while(matcher.find()){
String theMatch=matcher.group();
System.err.println("Found: "+theMatch);
} -
Java API - Needs to be more confusing for beginers (API translation)
Hi,
I have found a great method in which has some code that is exactly what is required to put my concept into computer science; although I do not have enough knowledge of Java to create a class which will enable me to access the required methods within.
So what I'm asking is:
Can someone write up a simple class that will enable me to use methods that are in it?
This is the API for what I'm looking for...
http://www.cs.duke.edu/courses/cps004/fall00/doc/GP/Graphics/RGBCanvas.html
Kind regards,
Nate
P.S. Does this make any sense?
Edited by: natdizzle on Feb 17, 2009 4:51 PMI'm making a video game for no reason that will have any meaning to you.Touchy, touchy! Always remember that you're the one asking for help here. Don't burn any bridges, don't bite any hands that might feed you.
All I'm asking is, how do I access: ... ...Read the API for BufferedImage, there's a method that does much the same.
I'm trying to detect a color, because I want to be able to draw a line around a blank, white, background in MS Paint, therefor I can have objects follow this line around the screen.There may be better ways to encapsulate a path than a line on an Image. You might want to take a look at java.awt.geom.Path2D.Double and java.awt.geom.PathIterator.
db -
Associating one or more roles with specific Tabs or containers?
We have a basic portal with servel tabs. The goal is to create a group/role that has access to a given tab and all others would not have access. A simplistic example is two tabs, one for Developers and one for Testers. Testers may not access the developer tab nor can developers acess the tester tab.
Any thoughts on how to do this?
(Sorry, standard story, tossed in to this task with minimal support, no time etc... Thanks!)Hi,
Unfortunately I already tried all kinds of re-installs (the full list is in my original message). The only one remaining is the reinstall of Windows 8 itself, which I would really like to avoid.
What I find really strange is the time it takes for the above error message to appear. It's like one hour or even more (never measured exactly, I left the computer running).
What kind of a timeout is that? I would expect that, if ports are really used by some other application, I get the message in less than a minute (seconds, actually). To me this looks like the emulator itself for some reason believes there's a problem with
some port while in reality there isn't.
I'll eventually contact Microsoft Support, thanks for the suggestion.
▼
▲ -
I started getting these errors on one of my lists that has several workflows running on it. The strange thing is it has been running pretty much error free for 1.5 years and we have not made any changes to the workflows and no updates have been applied prior
to the errors staring.
It is typically always the same workflow but it doesn't always happen, only some of the newly added list items will error. If I simply cancel the current instance and manually start it again it runs fine to completion and it only seems to error out
at the start.
Most of the other workflows pause/wait for a status change but I will be reviewing all the workflows to confirm there is no locking conflict. I have added a Wait to one other workflow that I know will update the list item on startup, it is populating
the Title column but even after that I am still getting the error.
I noticed in the TraceLogs, 2 errors that started on Feb 2 and I could not find them in any previous logs (went back many days with no occurrences).
02/02/2015 07:15:55.93 w3wp.exe (0x1C50) 0x18D4 SharePoint Foundation
Workflow Infrastructure 88xr Unexpected WinWF Internal Error, terminating workflow Id# 6cbf1da4-fbf9-4dfe-ae48-b6d765cc6d03
02/02/2015 07:15:56.37 w3wp.exe (0x1C50) 0x2140 SharePoint Foundation
SPRequest 8l3a Medium Failed to cache field with id "{49af83c9-c5e3-47db-b055-bf18673bba67}", overwrite=0
The "Field ID"{49af83c9...} listed is a Lookup column to a Clients list on the same site.
Any suggestions on what could be causing the sudden errors. I will be reviewing all other workflows but as I mentioned previously, this system has been working great up until Feb 2 with no changes to the lists or workflows for 3-6+ months.
Thanks in advance.
Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.Thanks for the quick response Nikhil.
Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
Site Lists
Engagements = 4456 (Errors on this list, primary list for activity)
Tasks = 7711 (All workflow tasks from all site lists)
Clients = 4396 (Lookup from Engagements, Tslips, etc)
Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties. -
my c7's battery drains quickly while using in 3g mode
curious to know
will nokia c7 consume same amount of power while phone in gsm mode and internet access on phone using wifi compare to internet access on phone using 3g network?
Solved!
Go to Solution.Of course 3G drains battery faster than wi-fi (when the same data volume is transmitted) Just imagine the range of each data transmission . 3G has maximum range around 20km while wi-fi has only 200m outdoors
-
Devices no longer sync mailbox for specific user
I have an Exchange 2010 environment running ActiveSync. We have started to enroll devices using Xenmobile which pushes out a mailbox configuration for the users to connect to their mailbox. Everything is working fine with the exception of one user so far.
This user's prior iPhone was working fine and then stopped connecting with no apparent reason. He decided to buy a new iPhone 6 thinking that it would work and he would just ignore the issue on the old iPhone. The new iPhone is unable to sync as well. The
iPhone meets our compliancy checks by Xenmobile and when he is prompted to enter in his password for his Exchange (Windows) account, it appears to accept it just fine. However, mail is never synced. We can see that his device and user credentials are
connecting to ActiveSync in the IIS logs. We have tried disabling/enabling ActiveSync on his mailbox multiple times. I can see that a device is not showing up under his domain account within the ExchangeActiveSyncDevices container. I tried deleting the
container altogether and it is not recreated when he tries to connect. We also have verified that another user can enroll with his iPhone and receive mail just fine, so that rules out any issues with the device itself. It really narrows it down to this particular
user. The permissions on his domain account looked to be the same as everyone else. We are running out of ideas. We do not want to resort to recreating his mailbox since that will take quite a bit of work to backup and restore all of his mail. Any ideas are
appreciated. Thanks.
Update: Using the Test-ActiveSyncConnectivity powershell cmdlet, I verified that his account is able to create an ExchangeActiveSyncDevices object for the Test object.
Update 2: I was told that this particular user is unable to sync his mailbox from another device that was tested from. This seems to point the issue to his mailbox configuration, but we don't know what else to look for other than trying to disabling/enabling
ActiveSync. I updated the thread title to reflect that it is not just his iPhone.So I spoke with the Exchange admin working on the issue. He did not setup a test as I previously requested. He took Xenmobile out of the mix but still had the connection going through a Citrix Netscaler appliance, which everyone is going through.
They performed a new test by setting up the device to connect directly to the mail server and it worked; mail was able to sync. This tells us that the problem is with something being caught at the Netscaler. In addition to Xenmobile, the Netscaler
as its own connection policies that permit a device from even getting to Xenmobile. It must be getting dropped by that policy, even though the device worked for another user and no one else has reported any problems.
At this point, it must be an issue with the Netscaler, so there is no need for further investigation on the Exchange side. Thanks. -
Can't set up mailbox for fourth email account on Mail?
I have a Macbook Pro - Mid 2009 - 2.53GHZ, 4GB and 250GB HD.
Running OS version 10.6.8.
My specific question is this I am using Mail 4.6 and have already set up a primary email account and through time I have added an additional 3 email addresses. they are all from the same ISP. No problems so far until recently when I created a new email address through my ISP and tried to create a new mailbox on mail. For whatever reason I cannot access the new account and I have done the following steps:
Made sure email address was correct and password too.
Checked working mail preferences against the new email account
Deleted one of the old working email mailboxes
Phoned the ISP support and they checked everything
Can access emails on the ISP webmail account
Checked that SSL option was unchecked which it was
After numerous phone calls to the ISP they have advised that I should phone Apple Technical support.
As this computer is quite old I would need to pay £35GBP for this support.
I cannot fathom why the previous mailboxes would work and now why subsequent new email accounts cannot be created on Mail.
On previous mailboxes there would be a separate trash box for each account and in this case when I create a new account this is not created.
Also the mailbox is greyed out and there is a warning symbol next to it.
Does anyone have any ideas?
P.S I am thinking of upgrading to a Macbook Pro Retina and wonder if there is a simple way of transferring my saved email folders to my new mac?Both of these are wrong.
I finally set up .me.com on my Mac
The same settings on my ipad are not working.
AppleCare had to walk me through a bizarre set of steps
Those same steps apparently are different on an ipad
But .mac, .me account that exist can migrate with all you old aliases.
I will try to remember to log back in here and answer this when apple calls me in a few hours -
Monitoring a mailbox for specific fields
Is it possible with PowerShell to monitor a mailbox in Outlook 2010 and if an email comes in with specific content (i.e. subject, sender, body), take those fields as variables and do something with them? The maibox would have to be monitored in real-time
so they're picked up as and when the emails come in and not periodically. I was planning on creating a SQL query with the variables but that's something I'm only just getting into and this'll be a long term project for me, not a quick script.
Thanks in advance.Hi AJ Mellor,
If you want filter emails in outlook with powershell, please refer to the script below:
$olFolderInbox = 6
$outlook = new-object -com outlook.application
$ns = $outlook.GetNameSpace("MAPI")
$inbox = $ns.GetDefaultFolder($olFolderInbox)
$targetfolder = $inbox.Folders | where-object { $_.name -eq "subfolder name"}
$email = $targetfolder.items |Where {($_.SenderName -eq "sender name") -and ($_.subject -eq "all subject")}
if($email){
#do SQL query
To monitor in real-time, you can schedule the script above in task scheduler:
Weekend
Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script
I hope this helps. -
Multiple domain mailboxes for one AD user in exchange 2013
I just wanted to make sure that this hasn't changed in exchange 2013 or if there's a better way to do this
we have a few users that need an email for companyA.com and CompanyB.com. For easy separation we've decided to create a separate mailbox for each email. Right now the only way i can figure how to easily associate both mailboxes with 1 AD user is to set up
their main email as their default mailbox, then create a shared mailbox and grant full permission for that user. Then in Outlook they have access to both accounts from 1 profile.
However I'm not sure how this would work for mobile access. In Office365 connecting to 2 exchange accounts on a mobile device was pretty straight forward since each mailbox had a unique login. I know when a shared mailbox is created, a disabled user
is created in AD, I'm wondering if i can enable that account and then the user uses that login to connect to that account through their mobile device. Or maybe theres a simpler way to accomplish this goal?we have a few users that need an email for companyA.com and CompanyB.com.
Hi Derek,
Why not just create an additional email address for the users?
"You can use the EAC or the Shell to add or remove an email address for a user mailbox. You can configure more than one email address for the same mailbox. The additional addresses are called
proxy addresses. A proxy address lets a user receive email that’s sent to a different email address. Any email message sent to the user's proxy address is delivered to their primary email address, which is also known as the
primary SMTP address or the default reply address."
Add or Remove Email Addresses for a Mailbox
http://technet.microsoft.com/en-us/library/bb123794.aspx
"create a shared mailbox and grant full permission for that user"
Do you mean a few users have a shared email address? For example:
UserA:
Primary(main) address: [email protected], shared address:
[email protected]
UserB:
Primary(main) address: [email protected], shared address: [email protected]
If not, you can just create an addtional address for the users.
If you have any feedback on our support, please click
here
Frank Wang
TechNet Community Support
Maybe you are looking for
-
Hi , Is that possible to create SAP PM Work Order from SAP SD order in IS - U? What will be the trigger points for this? Thanks & Regards, VEER
-
How to display error logs of Processed Data chain(BW) in a ALV Report
Hi Experts, I have a requirement, to display all the errors of a Processed chain in Business Warehouse. Is there any approach to achieve this requirement ? Your replies will be appreciated. Thanks in Advance, Regards, Giri
-
Hi all , how to find hire date of an employ when he was working in company , have gone , and back again. Here is infotype 00001 begda bukrs 19.10.2009 1006 1290 1 10 11.05.2009 1006 1200 1 10 01.01.2008 1008 9008 1 10 15.10.2007 1008 90
-
Flash Player not playing videos (Mac OSX / Chrome)
Last week Flash would display a pop-up telling me that I needed to update and would I like to use Flash Player this time. I would choose (Run Flash Player this time). Then updated flash to find that it now does not work at all. No videos or flash sit
-
Reading java.rmi.server.hostname property
When try to read java.rmi.server.hostname property within my server I got following exception: Exception in thread "main" java.security.AccessControlException: access denied ( java.util.PropertyPermission java.rmi.server.hostname read) at java.securi