Sign in
Microsoft.com
United States (English)
Australia (English)
Brasil (Português)
Česko (Čeština)
Danmark (Dansk)
Deutschland (Deutsch)
España (Español)
France (Français)
Indonesia (Bahasa)
Italia (Italiano)
Magyarország (Magyar)
Nederland (Nederlands)
Polska (Polski)
România (Română)
Singapore (English)
Türkiye (Türkçe)
Россия (Русский)
ישראל (עברית)
المملكة العربية السعودية (العربية)
ไทย (ไทย)
대한민국 (한국어)
中国 (中文)
台灣 (中文)
日本 (日本語)
香港特別行政區 (中文)
Microsoft
Home
Ask a question
Quick access
Forums home
Browse forums users
FAQ
Search related threads
Remove From My Forums
Asked by:
unexpected error when trying to generate a tracking token?
Archive
>
CRM Development
Question
0
Sign in to vote
Hello - I'm trying to generate a tracking token for a SendEmailRequest. I'm using the following code but CRM is throwing an exception: "unexpected error occurred":
private string GetTrackingToken(IOrganizationService service, string subject)
{
// Add Tracking Token to SendEmail Request
GetTrackingTokenEmailRequest request = new GetTrackingTokenEmailRequest { Subject = subject };
GetTrackingTokenEmailResponse response = null;
response = (GetTrackingTokenEmailResponse)service.Execute(request);
return response.TrackingToken;
}
Do you know why I might be getting the "unexpected error occurred" or how to debug/fix this?
Friday, July 19, 2013 8:51 PM
All replies
0
Sign in to vote
Where does this code sit? Inside a plugin or some other custom application?
Monday, July 22, 2013 8:37 PM
© 2023 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement