How To Send An Email Without It Getting Saved to the "Sent" Folder In Exchange Module

HI, how do I send emails in Decisions's Exchange module without them getting saved to the Sent folder? Is that a feature?

Comments

  • Hello, yes you can do this within the Exchange365 module.

    To get access to the Send Email step that has an option to stop emails from going to the Sent folder, please go to System>Administration>Features and install Microsoft365.Exchange. This will also install Microsoft365.Common as a dependent module. Then you can add both of these modules to your project as dependencies by going to the Project and navigating to Manage>Configuration>Dependencies.


     

    Once you have this setup, you will need to create an OAuth token for the sending account. If you already have a provider set up for Exchange, that should likely still work for this, but you will need to create a new token where the base url for the scope is https://graph.microsoft.com/ instead of the https://outlook.office.com/ you would have used for Exchange.

     

    From there you can go to a flow. In the step toolbox, go to Integration>Microsoft365>Exchange>Email and you will find a Send Email step. With that step mapped into the flow, go ahead and set it up with your test data. User Identifier should be the OID of the sending account. The toggle "Save to Sent Items" is what you want to have set to "false".


     


    Then there is an input called Settings Override. Please set it as follows where the token you use is the one you created with the graph endpoint as the scope.


    Once all of that setup is in place you should be good to run the step for testing.

Sign In or Register to comment.