Quantcast
Channel: Exchange Server Development forum
Viewing all 7132 articles
Browse latest View live

How to get GetAttachmentTable from AssociatedContents for Inbox programatically using EWS

$
0
0

hi,

I have a requirement to pull GetAttachmentTable from AssociatedContents for Inbox programatically using EWS.

We have a Add-In added to user Outlook, which is storing some key information under GetAttachmentTable. Using Outlook Spy i can read that information by following the steps:

1.Select the Inbox folder in Outlook
2.Click the OutlookSpy tab in the Outlook Ribbon
3.Click the “IMAPIFolder” button under the OutlookSpy tab
4.In the “IMAPIFolder – Inbox” window that pops up, click the “Associated Contents” tab
5.In the list of items on the left of the “Associated Contents” tab, select the desired entry under SetColumns, and double click on it.
6.In the resulting “IMessage” window, click the “GetAttachmentTable” tab
7.In the “GetAttachmentTable” tab, double-click the ***.xml attachment on the left hand side of the window

Below is the screenshot from Outllokspy to get to the GetAttachmenttable

IMAPIFolder screenshot

I need help to how to access GetAttachmenttable programatically using EWS.

Any help and suggestions will be greatly appreciated.

Thanks


ashishshukla.1183



Exchange 2013 - Disabled Mailbox not showing up immediately in the Connect a Mailbox

$
0
0

I have disable a mailbox  over an hour ago but it doesn’t show in the connect a mailbox section in the ECP Exchange 2013. immediately. The reason why I disable the email as I want to attach it to a new AD user which I have created.

I know you have to wait for replication so it appears in the connect a mailbox but I’m not sure how long and we forced an AD replication to see if that works.

I know with Exchange 2010, to get the disconnected mailbox to show immediately, I used to write a command Clean-MailboxDatabase “DB” to get it to appear in the disconnected mailbox but that doesn’t work with Exchange 2013 anymore.

Anyone have any suggestions?

exchange 2010 upgrade to exchange 2016

$
0
0

hello everyone

i am starting to prepare my environment for install exchange 2016 in co existent with my exch2010

after i run the schema prepare for raise my  dc ....i was running  in the exch2010 "best practice analyzer" and  sow  the name of the exchange 2016 "exch03" in the list of the exchange server that i can check.

i dont finish the installation of the exch2016 and i dont want to use that name "exch03"

what can i do to clean this situation.

the error that i get when i run the best practice analyzer is:

duplicate fqdn found:

 The msExchExchangeServer object 'CN=exch03,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=,DC=,DC=,DC=' has the same 'FQDN' value () as another msExchExchangeServer object in the topology. This will cause network problems.

Timezone changes when i update start or end of an appointment

$
0
0

I have an appointment created in the Berlin timezone (utc+1).
Using EWS (SoapUI) i change the start time of the appointment.
The new start time is correctly displayed, but the timezone of the appointment is changed to Reykjavik (GMT)

Here is the relevant part of the request:

<n2:Updates><n2:SetItemField><n2:FieldURI FieldURI="calendar:Start" /><n2:CalendarItem><n2:Start>2016-04-11T13:30:00.000Z</n2:Start></n2:CalendarItem></n2:SetItemField></n2:Updates>
If i explicitly set the meetingtimezone on the request to "W. Europe Standard Time" it works correctly, but i can do that only for Events from my Default time Zone.

Outlook automation failing to send e-mails via Exchange.

$
0
0

I'm not sure if this is the correct place to post this but here goes:

We  have an application written in VB6 which automatically generates e-mails in Outlook . The customer in question was using use Outlook 2010 with Exchange 2003 they have recently migrated to Exchange 2013. Since migrating all generated e-mails have stopped being sent out and are all being bounced back with:

Remote Server returned '550 5.1.0 RESOLVER.ADR.InvalidInSmtp; encapsulated INVALID address inside an SMTP address (IMCEAINVALID-)' 

When I go into Outlook to try to resolve the issue and drive down into the properties of the recipient of the e-mail the e-mail type field is blank (see screen shot below) where as before the migration the e-mail type always defaulted to SMTP. I'm not sure if this is what is causing the issue but its the only difference i can see post migration.

I have looked at the Outlook object model and cannot see where I can set the E-Mail Type property. Can anybody advise my how i can programatically set the E-Mail Type property to SMTP

Thanks in advance

Chris


Script to re-stamp permissions in Office 365 (2010 Hybrid Migration)

$
0
0

Currently working on migration mailboxes from Exchange 2010 to Office 365.  AN issue I have run into is that Cross-Premises delegations are not supported (https://technet.microsoft.com/en-us/library/jj200581(v=exchg.150).aspx#considerations)

I want to retain the SendAs permissions for all my mailboxes on prem.  I don’t want to go into Office 365 and re-stamp them manually.  Does anyone have a script that can re-stamp my SendAs permissions from On-prem to the migrated mailboxes in Office 365?

Exch 2013 Throttling Policy Inheritance -- How Does It Work?

$
0
0

Our EWS app uses both streaming events and impersonation. The account that's throttled is different for each protocol and have different requirements, so we need to apply different policies, one broad and the other narrow, as the service accounts are a subset of the larger set of users. The solution seems straightforward -- create a policy with an Organization scope for the user community and then create a policy with a Regular scope and associate it with service accounts. But we can't figure out how inheritance works. The Organization-scoped policy replaces the GlobalPolicy settings for everyone and the Regular-scoped settings will replace those in the Organization-scoped policy for the accounts associated with it. So here's my question(s):

1. When you create a throttling policy with an Organization scope, is it automatically associated with all of the users in the organization? What sets the boundaries of the Organization scope? Can I split my users into 2 Organizations?

2. If there is a Regular-scoped policy associated with a user and a change is made to the Organization-scoped policy does it automatically propagate to the user or is the user's throttling policy a separate policy, or snapshot of the merged policies?

Your attention is greatly appreciated!

Robert

Mailbox audit logging access via EWS

$
0
0

Hello

is it possible to access mailbox audit logs using EWS? Searching for folders and items in RecoverableItemsRoot gives me empty results. Powershell command Search-MailboxAuditLog shows non-empty results with many audit log records. Other tools using local access or MAPI shows non-empty "Audit" folder, but EWS doesn't. It's hiddeny by design or should I do something to enable access to it?

Thanks for any help.



EWS 4 Java API to list distribution lists by query?

$
0
0

I suspect the answer to this is a separate LDAP connection to the AD housing the groups that are mail-enabled, but I'd like to be sure.

I have to sync our DL group memberships to an external service. This will be on an hourly basis, but we have a lot of DLs and some of their memberships are huge.

Ideally, I'd like to do a query to return a list of DL names where the membership has been updated since a given date/time. My questions are:

1) Is there an EWS4Java API that can do this, or will I have to use LDAP instead?

2) Does anyone know if a change in membership results in an update to the parent container object's last updated flag?

Thanks.

Error trying to update contact "An object within a change description must contain one and only one property to modify"

$
0
0

Hello,

I am new to EWS.

I have created a function to update a contact using EWS Managed API following the example on https://msdn.microsoft.com/en-us/library/office/ee693002(v=exchg.80).aspx. Here is my code:

<code to bind contact>

if (Contact == null) return;

try { Contact.GivenName = strGivenName; Contact.Surname = strSurname; Contact.MiddleName = strMiddleName; PhysicalAddressEntry paEntry1 = new PhysicalAddressEntry(); paEntry1.Street = strHomeStreet; paEntry1.City = strHomeCity; paEntry1.State = strHomeState; paEntry1.PostalCode = strHomePostalCode; Contact.PhysicalAddresses[PhysicalAddressKey.Home] = paEntry1; Contact.PhoneNumbers[PhoneNumberKey.HomePhone] = strHomePhone; Contact.PhoneNumbers[PhoneNumberKey.HomeFax] = strHomeFax; Contact.PhoneNumbers[PhoneNumberKey.MobilePhone] = strMobilePhone; Contact.EmailAddresses[EmailAddressKey.EmailAddress1] = streMailAddress; Contact.Update(ConflictResolutionMode.AlwaysOverwrite); } catch (System.Exception e) { rtn = e.Message; } Console.WriteLine (rtn);

I get an error saying "An object within a change description must contain one and only one property to modify". What am I doing wrong?

Thanks

Vishnu





How Does Exchange Server 2010 Transport Rules Take Immediately?

$
0
0

Hey guys, I meet a conundrum in my daily work.

It's about the transport rules of exchange server 2010.

I have made some rules in use. Rule A for DynamicDistributionGroup A, and rule B for DynamicDistributionGroup B.

Obviously, the two DynamicDistributionGroups are located  in the corresponding OUs. OU A and OU B in ActiveDirectory.

Now I move User C to OU B from OU A. I thought User C will use the Rule B immediately, but I am wrong.  It use Rule A until I restart the mailserver.


So here is my question: How Does Exchange Server 2010 Transport Rules Take Immediately?


Green Hand In Microsoft.


Chile DST Issue

$
0
0

A client of mine with staff based in Chile are currently having timezone related issues on their Macs running Outlook 2016 and using Exchange based emails. This is mainly effecting their calendars.

The issue is due to the Chilean government choosing not to continue observing DST. As a result, our Mac users running Outlook 2016 seem to have an issue now where calendar entries are an hour wrong. The Macs themselves are displaying the right time and timezone, as well as the Exchange server (It should be noted Exchange server is located in the UK). Version of Exchange is Exchange 2010 (14.03.0195.001).

Any assistance with this would be extremely appreciated.

I can see there has been a fix released for this issue in the past: https://support.microsoft.com/en-us/kb/3039024

Regards,
Raymond.

Office365 - SyncFolderItems does not return "Private" items in the changecollection any more ???

$
0
0

We have developed a synchronization application between Exchange and a web application's database.

Until recently, we had no problems with appointments marked "Private" (appointment.Sensitivity = Sensitivity.Private) using the ExchangeService.SyncFolderItems method.

Recently some of our clients have encountered a bug regarding private appointments. Investigating it we realized that the SyncFolderItems method does not return ANY private appointments any more (using some Office365-test account).

I could not find any hints in the msdn documentation regarding this issue, can anyone help about this issue?


MTA Rules Per Recipient

$
0
0

I am writing an MTA to remove Barracuda [SPAM] tags from the email subject when emails are sent back outside our organization (so that customer's don't see the tag).  However, for messages being forwarded internally, I'd like the tag to remain.

I can easily remove the [SPAM] tag from the subject, by modifying it in OnRoutedMessage.  But this makes the change for every recipient and this becomes an issue when the recipient list contains emails that are both inside and outside our organization. Is it possible to modify the subject on a per-recipient basis?

Thank you!

Josh

[EWSMA] FindAppointments for a room is also returning my calendar items which dont have room assigned

$
0
0

Hi,

I already have a recurring meeting, lets say 2pm every day for the next few weeks. No room is assigned as its just a voice dial-in meeting.

When i execute the EWS method Findappointments:

var calendarView = new CalendarView(start, end);
var folderId = new FolderId(WellKnownFolderName.Calendar, room.Address);
var roomAppointments = _exchangeService.FindAppointments(folderId, calendarView);

It returns all the appointments booked for the supplied room, but it also returns all of my calendar entries which fall in the date range, but they arent assigned to the room i'm searching.

Is there any way to exclude these items in my calendar which dont have room assigned as part of this query?

thanks.



Exchange 2010 SP3 RU12 have any issues with exchange 2007 Coexistence?

$
0
0

Exchange 2010 SP3 RU12 have any issues with exchange 2007 Coexistence?

If we upgrade to exchnage 2010 sp3 ru 12 will have any impact on 2007 servers ( co existence with 2010).

and any other known issues.

Exchange 2013 OWA app development

$
0
0

Hi All,

I want add a function into the Exchange 2013 OWA, when user login to the owa, we will add a function for upload big attachment into a ftpserver, then return the file link back to the email body.

Can i implement the function via app?

Can sombody share some app development for exchange resource?

IMAP not reflect "EXPUNGE" when I delete message

$
0
0

Hello all,

I connect to Exhange 2013 server(using IMAP) from my application and use IDLE command for polling the server for changes to the mailbox. Server sends:
1. EXISTS, RECENT when I receive new message
2. FETCH (FLAGS (\Seen \Recent)) when mark message as read
But I do not receive EXPUNGE when I delete message from mailbox.

The simplest scenario for reproducing is:

1. in terminal(command line) enter command 'telnet xxx.xxx.xxx.xxx 143', where xxx.xxx.xxx.xxx is IP address of email server, 143 - IMAP port
2. enter command '? login <login> <password>'
3. enter command 'SELECT INBOX'
4. enter command '? IDLE'
5. send message to <login> from another account and check command line: you will see EXISTS and RECENT
6. read message and check command line: you will see FETCH <FLAGS <\Seen \Recent>>
7. Delete message  and check command line: you will see EXPUNGE

My problem is: Exchange 2013 does not send EXPUNGE  when I delete message.
According to RFC "The IDLE command is sent from the client to the server when the client is ready to accept unsolicited mailbox update messages.  The server requests a response to the IDLE command using the continuation ("+") response.  The IDLE command remains active until the client responds to the continuation, and as long as an IDLE command is active, the server is now free to send untagged EXISTS, EXPUNGE, and other messages at any time."

I tested on an on-premises Exchange 2013 server, with exactly the steps, and found there is no EXPURGE sent to the client. 

Mark an email as read can send FETCH command to the telnet client, but deleting does not send anything.

I also work with Office365 command and we think that it is the Exchange 2013 problem. On Exchange 2010 all work fine and server sends EXPUNGE command. Link to Office365 thread - http://community.office365.com/en-us/forums/158/p/186592/547553.aspx?wa=wsignin1.0

Thanks,

Lyubov

Transport agents and Pipeline Tracing not working on Exchange 2013 servers.

$
0
0

We have a couple of transport agents running on Exchange 2007. We are getting ready to migrate to 2013. I've installed the agent on four Exchange 2013 mailbox/cas servers. On one of the four they are working as expected. On the other three they don't work at all even though they show as enabled when I do Get-TransportAgent.

I'm attempting to troubleshoot by enabling Pipeline Tracing and it is not working either. The pipelinetracing directory does not get created so no messages are being captured. On the one server that is working Pipeline Tracing also works so I'm thinking the two issues are related.

Other than opening a case with Microsoft does anyone have any ideas on what the problem could be?

Is there a better forum for me to post this question to?


Kenny

Transport agent compatibility, Exchange 2007/2013/2016

$
0
0

Hello,

 We have a custom transport agent that was written for us, for use with an Exchange 2007 server, and it uses .NET.   We are planning to do a migration to Exchange 2016 -- First, migrating to Exchange 2013, and then to Exchange 2016.   

 We're not sure if our transport agent, that is running under Exchange 2007, will work, however with newer versions.   It does a fairly simple task of looking for messages with a tag in the subject, and when found, copies the message text and then makes a call to an external database to save the body text.

 Should we expect that the agent would work with 2013 and 2016?  Fortunately we do have the source project for the agent, so we can recompile it if necessary.

Thanks!


Maurice

Viewing all 7132 articles
Browse latest View live