locked
Accessing InreplytoId when replying to an email RRS feed

  • Question

  • I have a couple of custom fields that I have created in the CRM email entity. These get automatically  populated when I programmatically create the Email Activity. (ie for an incoming email).

    Now, when someone replies to this email from within CRM. I want to be able to access these custom fields in the original Email to which I am replying to (I see a inreplytoid in the Browser bar ) but this is not being saved anywhere or available anywhere. How do I get to the Id of the first email and then do an AJAX lookup?

    Is the messageid the field to use for this purpose? Would it be unique between any two replies? I cannot use the regardingid as the emails are tied to a contact.

    Friday, October 8, 2010 9:16 PM

Answers

  • Thanks. I was able to use Javascript  Window.location parsing and get to the ReplyToId and store it in another field through Javascript which worked for me.

    Vidya

    Thursday, October 28, 2010 11:45 AM

All replies

  • Or in otherwords, Is there no way to distinguish between a New CRM email and an email I am creating in response to another email (and access data from that email)?
    Monday, October 11, 2010 12:19 AM
  • I think your best bet is to use the tracking token. There's no absolutely guaranteed way to relate an email to the original email, and the tracking token mechanism is the best that can be achieved, though it still has limitations
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Thursday, October 28, 2010 11:31 AM
    Moderator
  • Thanks. I was able to use Javascript  Window.location parsing and get to the ReplyToId and store it in another field through Javascript which worked for me.

    Vidya

    Thursday, October 28, 2010 11:45 AM