Closed tquester closed 6 months ago
Hi @tquester. Thanks for reaching out. Unfortunately, the Outlook JavaScript API doesn't provide a method to move messages to a different folder (see the Outlook add-in API for a list of available properties and methods). However, you can make Microsoft Graph calls in your add-in to perform this operation (see the API). For guidance on how to use the Microsoft Graph API, see Use the Microsoft Graph API.
If you need additional guidance with developing your add-in, we suggest posting a question to Stack Overflow. This will allow the developer community to help and will ensure that the answer can be viewed and found by the rest of the community.
If this is a feature you'd like to see in the Outlook JavaScript API, we recommend creating a feature request at https://aka.ms/m365dev-suggestions.
Hi Sam Ramon,
Thanks for the answer and the explanation. My goal is to create a mail filter for semi manual filtering emails and I read that com add-ins are deprecated but it seems that the com add-in is the only way to create this kind of add-in.
Best regards
Thomas Quester
Von: Sam Ramon @.> Gesendet: Montag, 18. Dezember 2023 22:13 An: OfficeDev/office-js-docs-pr @.> Cc: Thomas Quester @.>; Mention @.> Betreff: Re: [OfficeDev/office-js-docs-pr] How to write an Outlook addin and access messages? (Issue #4321)
Hi @tquester https://github.com/tquester . Thanks for reaching out. Unfortunately, the Outlook JavaScript API doesn't provide a method to move messages to a different folder (see the Outlook add-in API https://learn.microsoft.com/javascript/api/outlook for a list of available properties and methods). However, you can make Microsoft Graph calls in your add-in to perform this operation (see the API https://learn.microsoft.com/graph/api/message-move?view=graph-rest-1.0&tabs=javascript ). For guidance on how to use the Microsoft Graph API, see Use the Microsoft Graph API https://learn.microsoft.com/graph/use-the-api?view=graph-rest-1.0 .
If you need additional guidance with developing your add-in, we suggest posting a question to Stack Overflow https://stackoverflow.com/questions/tagged/office-js . This will allow the developer community to help and will ensure that the answer can be viewed and found by the rest of the community.
If this is a feature you'd like to see in the Outlook JavaScript API, we recommend creating a feature request at https://aka.ms/m365dev-suggestions.
— Reply to this email directly, view it on GitHub https://github.com/OfficeDev/office-js-docs-pr/issues/4321#issuecomment-1861662623 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJBU4YBIVGJDCD2NNTZ4BTYKCWWJAVCNFSM6AAAAABAYNDNP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRRGY3DENRSGM . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ABJBU44GAV7XQP5PYPEBVITYKCWWJA5CNFSM6AAAAABAYNDNP2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTO623Z6.gif Message ID: @. @.> >
-- Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft. www.avast.com
Thanks for providing more context, @tquester. I suggest creating a feature request at https://aka.ms/m365dev-suggestions detailing your scenario, so that the team can review it further.
Though the addin-in does not work, the article does not answer my questions about outlook-addins. How do I write an add-in which is able to move emails by code to another folder.
[Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.