{"action":"opened","issue":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/463","labels_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/463/comments","events_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/463/events","html_url":"https://github.com/OfficeDev/ews-java-api/issues/463","id":117657232,"number":463,"title":"ExchangeService.createItem should return the created item's ItemId","user":{"login":"dankarp","id":11561094,"avatar_url":"https://avatars.githubusercontent.com/u/11561094?v=3","gravatar_id":"","url":"https://api.github.com/users/dankarp","html_url":"https://github.com/dankarp","followers_url":"https://api.github.com/users/dankarp/followers","following_url":"https://api.github.com/users/dankarp/following{/other_user}","gists_url":"https://api.github.com/users/dankarp/gists{/gist_id}","starred_url":"https://api.github.com/users/dankarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankarp/subscriptions","organizations_url":"https://api.github.com/users/dankarp/orgs","repos_url":"https://api.github.com/users/dankarp/repos","events_url":"https://api.github.com/users/dankarp/events{/privacy}","received_events_url":"https://api.github.com/users/dankarp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T19:05:29Z","updated_at":"2015-11-18T19:05:29Z","closed_at":null,"body":"When we create an item via EWS's `CreateItem` RPC, it is *very* useful to have a handle to the remote created item.  Unfortunately, `ExchangeService.createItem` currently returns `void`.  Given that the `ItemId` for the created item is actually returned in the `CreateItemResponse` on success, it would be a real benefit to have `ExchangeService.createItem` pass it back to the caller.\r\n\r\n      <m:CreateItemResponse xmlns:m=\"http://schemas.microsoft.com/exchange/services/2006/messages\" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n         <m:ResponseMessages>\r\n            <m:CreateItemResponseMessage ResponseClass=\"Success\">\r\n               <m:ResponseCode>NoError</m:ResponseCode>\r\n               <m:Items>\r\n                  <t:Message>\r\n                     <t:ItemId Id=\"AAMkAGIyMjZjOWU3LWEwMjItNDFlNC04OTBhLTk5OWU4MTQ4YThkOQBGAAAAAAAt/nWiRlmvTJ4QyfBnM8qyBwCcOuM6Uj6ZRI6A3zFWfWinAAAAAAEPAACcOuM6Uj6ZRI6A3zFWfWinAAAk4UrAAAA=\" ChangeKey=\"CQAAABYAAACcOuM6Uj6ZRI6A3zFWfWinAAAk4wWv\" />\r\n                  </t:Message>\r\n               </m:Items>\r\n            </m:CreateItemResponseMessage>\r\n         </m:ResponseMessages>\r\n      </m:CreateItemResponse>\r\n```"}}