Skip to content

EWS SOAP request to fetch ICalUid #613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jfoclpf opened this issue Mar 19, 2022 · 2 comments · Fixed by #649 or #648
Closed

EWS SOAP request to fetch ICalUid #613

jfoclpf opened this issue Mar 19, 2022 · 2 comments · Fixed by #649 or #648
Assignees
Labels
Area: Outlook Status: fixed Fix is complete and will be available to customers as soon as snippet updates are published Type: snippet request Request for new snippet or updates/enhancements to existing snippet

Comments

@jfoclpf
Copy link

jfoclpf commented Mar 19, 2022

Since Office JS does not provide ICalUid as a parameter, could you publish a snippet on how to fetch it from the Office.context.mailbox.item.itemId using makeEwsRequestAsync?

Something like:

var ewsId = Office.context.mailbox.item.itemId;
var request = '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
    '  <soap:Header><t:RequestServerVersion Version="Exchange2013" /></soap:Header>' +
    '  <soap:Body>' +
    '    <m:GetItem>' +
    '      <m:ItemShape>' +
    '        <t:BaseShape>IdOnly</t:BaseShape>' +
    '      </m:ItemShape >' +
    '      <m:ItemIds>' +
    '        <t:ItemId Id="' + ewsId + '" />' +
    '      </m:ItemIds>' +
    '    </m:GetItem>' +
    '  </soap:Body>' +
    '</soap:Envelope>';

Office.context.mailbox.makeEwsRequestAsync(request, function (result) {
    console.log(result.value);
});
@ghost ghost added the Needs: triage 🔍 New issue, needs triage ASAP label Mar 19, 2022
@AlexJerabek
Copy link
Contributor

Hi @jfoclpf,

Thanks for this sample request. @samantharamon, can you investigate this and put it on our backlog?

@AlexJerabek AlexJerabek added Area: Outlook Type: snippet request Request for new snippet or updates/enhancements to existing snippet Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: triage 🔍 New issue, needs triage ASAP labels Mar 21, 2022
@samantharamon
Copy link
Contributor

Hi @jfoclpf,

Thank you for your request. I have added this to our backlog for review and will let you know once a snippet has been published.

@samantharamon samantharamon added the Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown label Apr 12, 2022
@ghost ghost added Status: in PR An open PR addresses this issue Status: fixed Fix is complete and will be available to customers as soon as snippet updates are published and removed Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Needs: attention 👋 Waiting on Microsoft to provide feedback Status: in PR An open PR addresses this issue labels Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Status: fixed Fix is complete and will be available to customers as soon as snippet updates are published Type: snippet request Request for new snippet or updates/enhancements to existing snippet
Projects
None yet
3 participants