Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

mail tracking token not working correctly with mails generated from workflow

Posted on by 116

Dear,

I have enabled the "use tracking token" option for email conversations; it is working fine for most mails sent from Dynamics. However, it is not working for mails generated through workflows.

For example, the "Send Email Confirmation to Contact" workflow, the token stays always "CRM:0000001" and never increases.

I found this post, but I don't see how I can somehow change the type of user for the workflow so that it uses the tracking token correctly.

Any idea how I can solve this?

Thanks,

Koen

  • KoJaPD Profile Picture
    KoJaPD 116 on at
    RE: mail tracking token not working correctly with mails generated from workflow

    Leah Ju thanks for the informatio. Is it then somehow possible to configure that this unusable tracking code is not added to mails coming from processes? Now, end users receive multiple mails with "000001" which might be confusing ....

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: mail tracking token not working correctly with mails generated from workflow

    Hi KoJaPD, 

    This is by-design.

    When Get Tracking Token is called using SYSTEM user it will always return 00001 token since tracking token is not supported for user SYSTEM. 

    When trigger and execute Email Send Request in the workflow, the caller is SYSTEM, so tracking token generated a static tracking token "1"

    If the user wants to generate a tracking token, they need to call the API from a regular user.

    ˂RESOLUTION˃

    You can try a custom code to change the SendEmailRequest.TrackingToken property as mentioned in the article below: 

    SendEmailRequest.TrackingToken Property (Microsoft.Crm.Sdk.Messages) | Microsoft Docs

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans