Unanswered sending an email from an activity

  • 6 เมษายน 2551 4:04
     
     
    I have unsoliticed email (CRM terms) forwarded to an CRM user. That email from what I understand gets turned into an activity. Now I have an idea of what I want to do.
    1. Email containing customer info is logged into CRM as an Activity
    2. Javascript pulls info from email and creates a Lead with that info
    3. Email template gets populated with info from newly created Lead
    4. Email is sent off as a reply
    Now I believe I'll have to use a workflow but I've been reading up on callout functions (I believe that's what the SDK calls them). I'm not sure if I'll have to use both. Where I'm having trouble putting this together is the between steps 1 and 2. How do I use Javascript (or C# if I'm using the callouts) to pull the info from the activity? Is that even possible?

ตอบทั้งหมด

  • 6 เมษายน 2551 15:25
     
     

    more to the point, how would you access the body of an email activity?

    Ok, after doing some more research, I found I can use the email.description to access the body. But the incoming email is HTML-formatted and has two tables in it. I need to access the info in the second table. Since the description function returns a String, can I still use Javascript DOM to access the info the second table or will I have to use some sort of regex script?
  • 7 เมษายน 2551 8:32
    ผู้ดูแล
     
     

    Yes you can send email on workflow.

     

    you can write custom library to send email

     

    http://msdn2.microsoft.com/en-us/library/ms913863.aspx

     

    Regards,

    Imran

     

    http://microsoftcrm3.blogspot.com