locked
Please ... Urgent help ragrding email and queues RRS feed

  • Question

  •  

    Hi All

    How can i attach an email to a specifuc queue via server side code ?

     

    Thanks , Yaniv

    Wednesday, August 6, 2008 9:11 AM

Answers

  • its code for detach email

     

    // Use below code.

    // Rreplace the WebService URL
    service.Url = strWebServiceURL;
    service.Credentials = System.Net.CredentialCache.DefaultCredentials;

    DetachFromQueueEmailRequest objEmail = new DetachFromQueueEmailRequest();

    // Assign Email GUID
    objEmail.EmailId = new Guid(strEmailGUID.Trim());

    // Assign Queue GUID
    objEmail.QueueId = new Guid(QueueIdNode.InnerText.Trim().ToString());

    service.Execute(objEmail);

     

    For More see MS CRM Support section

     

    http://support.microsoft.com/ph/12976

     

    Regards,
    Imran

    http://www.crmxperts.com


     

     

    Wednesday, August 6, 2008 12:46 PM
    Moderator

All replies

  • You don't have to use server side code to route emails to a queue--you would use the E-mail router

    See http://blogs.msdn.com/crm/archive/2008/02/07/crm-4-0-e-mail-integration-overview.aspx

     

    Wednesday, August 6, 2008 9:26 AM
    Moderator
  •  

    Maybe i wasn't clear enough.

    I ment i want to assign an email to a queue in server side . I have the activityid and the queueid . What's next ?

    Wednesday, August 6, 2008 10:04 AM
  • its code for detach email

     

    // Use below code.

    // Rreplace the WebService URL
    service.Url = strWebServiceURL;
    service.Credentials = System.Net.CredentialCache.DefaultCredentials;

    DetachFromQueueEmailRequest objEmail = new DetachFromQueueEmailRequest();

    // Assign Email GUID
    objEmail.EmailId = new Guid(strEmailGUID.Trim());

    // Assign Queue GUID
    objEmail.QueueId = new Guid(QueueIdNode.InnerText.Trim().ToString());

    service.Execute(objEmail);

     

    For More see MS CRM Support section

     

    http://support.microsoft.com/ph/12976

     

    Regards,
    Imran

    http://www.crmxperts.com


     

     

    Wednesday, August 6, 2008 12:46 PM
    Moderator