Hi All,
I am using Dynamics CRM 2016 - On-Premise for development. I am doing customization for email to case creation and after create case, sending mail to customer about case details. For this, I am not using Queue management to create case. Because before create case, I have to check whether incoming mail address is in existing account or if contact matching with the sending mail address, retrieving contact parent customer as case customer. If nothing is matching, some default customer has to be set in case customer. Hope this validation is not exist in Queue to case creation. So, I am doing it manually.
I am sending mail to customer manually after create case by using plug in assembly. Whenever I am sending mail manually the tracking token is same for all the mail as CRM:0000001. Means, if I am sending mail through workflow it is taking the latest tracking token for eg., CRM:0195101. So when i am getting reply from customer, i can track with this tracking token. But for manually through code, it is taking all the time CRM:0000001. I am using below code for sending mail
SendEmailRequest sendEmailRequest = new SendEmailRequest();
sendEmailRequest.EmailId = emailId;
sendEmailRequest.IssueSend = true;
sendEmailRequest.TrackingToken = "";
SendEmailResponse sendEmailResponse = (SendEmailResponse)service.Execute(sendEmailRequest);
In this, i tried with GetTrackingTokenEmailRequest method also. But same issue.
Kindly help to fix the problem
Thanks,
Saratha