locked
Force a save into "sent Items" folder for sent messages RRS feed

  • Question

  • Hello,

    Is it any way that someone could force (statically or programatically) a save into Sent Items of the mailbox from which the message is sent for each sent message.

    A type of replacing:

            public void Send()
            {
                this.InternalSend(null, MessageDisposition.SendOnly);
            }

    with

            public void Send()
            {
                this.InternalSend(new FolderId(WellKnownFolderName.SentItems), MessageDisposition.SendAndSaveCopy);
            }

    on Exchange server on-premises ... or better, even in the cloud if possible ??

    Thank you,
    Sever

    Monday, November 23, 2015 10:02 AM

Answers

  • Hi,

    It appears that there are two ways to send email using CRM. See here the answer to a similar question where they recommend that you use the Outlook client to send out the CRM emails if you want them stored in the sent items: https://community.dynamics.com/crm/f/117/t/125649.

    As a side note, the Set-MailboxSentItemsConfiguration cmdlet (as per the previous article I sent through) can be run on a regular mailbox where users have send as permissions. 

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010, MCTS SQL 2012, MCTS SharePoint 2007, VCP4, VCP5, CCNA

    Blog: http://markgossa.blogspot.com   LinkedIn:

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    • Proposed as answer by David Wang_ Tuesday, November 24, 2015 2:26 AM
    • Marked as answer by David Wang_ Thursday, December 3, 2015 7:23 AM
    Monday, November 23, 2015 7:12 PM

All replies

  • Hi,

    This is a default using Outlook. How are you sending these emails?

    If you are sending as a shared mailbox, the email is saved in your sent items, not the shared mailbox sent items but this can be changed, see here: http://exchangeserverpro.com/configuring-mailbox-sent-items-behaviour-delegates-shared-mailboxes/.

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010, MCTS SQL 2012, MCTS SharePoint 2007, VCP4, VCP5, CCNA

    Blog: http://markgossa.blogspot.com   LinkedIn:

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    • Proposed as answer by krselva Monday, November 23, 2015 1:21 PM
    Monday, November 23, 2015 10:58 AM
  • Mark, thank you for your kind reply, however that mailbox is a regular user mailbox, so it's NOT a shared mailbox.

    And the call of sending the message comes from CRM on behalf of sending user's using the mailbox account authentication.

    It is a bit transparent that CRM is sending the message as the user is logged on CRM on Active Directory and connects to Exchange server with it's credentials.

    What is frustrating that  MS-Dynamics CRM call is done on  EWS.dll on: 

    public void Send()

    and not on

    public void SendAndSaveCopy()

    and nor gives the liberty to a parameter to chose this.

    So, in this case question is can it be this enforced at server side - so that any sent message from a mailbox would show into the "Sent Items" folder of that mailbox.

    Enforcement may be static or programatical, command, or registry based - would not be relevant. Important is to force this SAVE operation.

    Thank you,

    Sever

    Monday, November 23, 2015 6:50 PM
  • Hi,

    It appears that there are two ways to send email using CRM. See here the answer to a similar question where they recommend that you use the Outlook client to send out the CRM emails if you want them stored in the sent items: https://community.dynamics.com/crm/f/117/t/125649.

    As a side note, the Set-MailboxSentItemsConfiguration cmdlet (as per the previous article I sent through) can be run on a regular mailbox where users have send as permissions. 

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010, MCTS SQL 2012, MCTS SharePoint 2007, VCP4, VCP5, CCNA

    Blog: http://markgossa.blogspot.com   LinkedIn:

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    • Proposed as answer by David Wang_ Tuesday, November 24, 2015 2:26 AM
    • Marked as answer by David Wang_ Thursday, December 3, 2015 7:23 AM
    Monday, November 23, 2015 7:12 PM
  • Hi Mark,

    Thank you again for reply.

    Unfortunately we cannot use Microsoft for Outlook, because all our sales agents are MAC-based ... and they don't want to lose Apple functionality switch to Windows emulation. Also Outlook for clients is synchronizing as long the app is working ...

    Another problem that the reps are based on Exchange on-cloud so we cannot run there any cmdlet, however in case possible we might add them to our Exchange (making them on-premises and activating the possibility of running that cmdlet). However I don't believe the cmdlet forces to persist the message n the "Sent Items"  store if it comes only with a .Send command and not .SendAndSave one.

    That cmdlet just directs where to save if Save is in discussion, if not, it does not force it !

    So, yes this was a good reply, however doesn't solve my problem ... does not force a save on a sent message independently how the command was issued.

    Thank you very much for kind efforts.

    Appreciated,

    Sever

    Monday, November 23, 2015 8:08 PM
  • Hi,

    Have you asked this question in the CRM forum? It's more of an issue with the way CRM sends email rather than the way Exchange handles the email. 

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010, MCTS SQL 2012, MCTS SharePoint 2007, VCP4, VCP5, CCNA

    Blog: http://markgossa.blogspot.com   LinkedIn:

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    Monday, November 23, 2015 9:19 PM
  • Hi Mark,

    Yes, as a matter of fact I did ... I was just hoping to a work around from this side (of Exchange) too ... as alternative.

    But you're all right does not seem to be any Exchange issue into this ... However would have been a nice option to have for situations like this when third parties cannot accomplish ... just like you have the airbag as protection ...

    Thank you again for your time and correct replies ... 

    Kind regards,

    Sever

    Monday, November 23, 2015 9:26 PM
  • Hi,

    Ok, no problem. Come back to us if you need more help from the Exchange side of things. 

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010, MCTS SQL 2012, MCTS SharePoint 2007, VCP4, VCP5, CCNA

    Blog: http://markgossa.blogspot.com   LinkedIn:

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    Monday, November 23, 2015 9:45 PM
  • Hello 

    try below link

    https://social.technet.microsoft.com/Forums/exchange/en-US/d1106ae3-1684-43c1-a831-4b7ef2e0c347/where-is-setmailboxsentitemsconfiguration-getmailboxsentitemsconfiguration?forum=exchangesvradmin


    Please mark as an answer if this answers your question .

    PREM RANA

    MCSE Exchange 2013, MCSA 2012 Server MCTS Exchange 2007,

    2010, MCITP Exchange 2007, 2010 MCSE 2003 Server,

    MCSA Exchange 2003 ITIL V3 Foundation

    https://ranaprem.wordpress.com/

    This posting is provided AS IS with no warranties and confers no rights.

    Saturday, November 28, 2015 5:17 AM