Questions tagged [ewsjavaapi]

Java implementation of the Exchange Web Services (EWS) API. This API gives developers programmatic access to Exchange Server 2007 SP1 and above.

Java implementation of the Exchange Web Services (EWS) API. This API gives developers programmatic access to Exchange Server 2007 SP1 and above.

153 questions
0
votes
1 answer

Sent Items folder mails are not syncing properly

I have issue with sent items folder I am unable to sync mails properly. Except that all are working fine. Can you please assist. SearchFilter.SearchFilterCollection searchFilterCollection1 = new…
0
votes
1 answer

EWS Java - hasAttachments return false for inline/Embedded attachments

I'm reading email with inline/embedded images, mostly sender signature image. But when I try to find if the email.hasAttachments() it returns false, but If I Inspect email.getAttachments(); it shows me the inline attachments. here is my code, am I…
Lucky
  • 783
  • 2
  • 10
  • 28
0
votes
1 answer

EWS Java how to find emails older than xx days and Delete all in one shot

I want to find items in a folder which are older than xx days and Delete all the items found in one shot. I was able to find the items matching my criteria. here is my code. import org.joda.time.DateTime; int purgeDays = 14; try { …
Lucky
  • 783
  • 2
  • 10
  • 28
0
votes
1 answer

EWS (java API): how to resolve a name which is "hidden in address list"?

I'm using ews-java-api to access Exchange servers. I use resolveName(useraddress) to check user existence and to get some user informations (like its name, etc.). But when that user is marked as hidden in address list, resolveName returns null. Is…
Sxilderik
  • 796
  • 6
  • 20
0
votes
1 answer

Java EWS - how to get attachment type

I'm working on EWS java api, I want to know if an attachment is of type ItemAttachment FileAttachment something like this if (attachment is ItemAttachment) // how to in Java api? if (attachment is FileAttachment) // how to in Java api?
Lucky
  • 783
  • 2
  • 10
  • 28
0
votes
1 answer

Get calendar events from Outlook.com using Java API

I want to get all calendar events from Outlook.com using Java API. I tested this code to connect: public void findChildFolders(String username, String password) throws Exception { ExchangeService service = new…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
1 answer

How to get a Flag property from email message?

Can I somehow get a Flag property from EmailMessage or Item object? There is no getFlag() method, I also didn't find it in item.getPropertyBag(). I'm using ews-java-api-2.0. flag setting on outlook web app
Maja
  • 17
  • 1
  • 6
0
votes
1 answer

Exchange Calendar, creating appointments and unique ids

I am using ews-java-api and having a lot of problems I create appointments and also listen for appointments created elsewhere. My problem is I create the appointment with new Appointment(exchangeService).save(notificationMode) I also save the…
Mark
  • 3,137
  • 4
  • 39
  • 76
0
votes
2 answers

EWS-Java-API - EmailMessage.send into java.lang.NullPointerException: format == null

I want to use the EWS-Java-API for my android application. The application requires a login to get programmatically access to the microsoft exchange server (e.g. calendar meetings, email, meeting rooms, and much more). At this point almost the…
0
votes
0 answers

EWS microsoft.exchange.webservices.data.ServiceLocalException Connection error

Getting microsoft.exchange.webservices.data.ServiceLocalException: https://outlook.xxxxxxxxx.com/ews/Exchange.asmx : Connection error While trying to access exchange server using EWS JAVA API. Already have EWSJavaAPI_1.2.1.jar,…
0
votes
1 answer

java api to get conference roomlist using EWS

I am trying to fetch roomlist using EWS services, but getting empty response, we are using 2010 server.please let me know any solutions to address this problem. Thanks in advance.
0
votes
1 answer

Ews Java API Getting Sent emails

I'm using EWS Java API(version 2.0) to fetch exchange emails in Java I want to fetch all mails that are sent to this emails address ("rams@mydomain.com") from exchange box Here is my sample code String email = "rams@mydomain.com" ItemView…
Rams
  • 2,141
  • 5
  • 33
  • 59
0
votes
1 answer

How to create an out-of-office message using java

Is it possible to create a out-of-office message with a start and end date, over any java framework like ewsjavaapi?
Anton Brass
  • 21
  • 1
  • 3
0
votes
1 answer

how can I set DateTimeReceived on an EmailMessage?

I need to (directly or indirectly) set the DateTimeReceived on an EmailMessage, so I can call emailMessage.save() I dug into the source (EmailMessage, Item, PropertyBag, ItemSchema) but I didn't see a way to set the Received header (couldn't find…
ryandm
  • 1
  • 1
0
votes
1 answer

'Not Connected error' when calling userConfigurationItem.update()

I am using the ewsjavaapi to create Categories. I am binding to the UserConfiguration, streaming the userConfiguration.getXmlData(), and unmarshalling my into an object using jaxb. I then add my new catagories to the object, then marshall to a byte…