web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Tracing in Workflows (Workflow Activities)

(0) ShareShare
ReportReport
Posted on by 204

Hi,

I have a hard time figuring out how to properly trace things in Workflows. When I create a new WorkflowActivity through the Visual Studio Dynamics templates there are a few calls to tracingService.Trace(), but I don't know where I can actually see this information during Workflow execution time.

I tried to enable tracing by setting 'Enable loffing to plug-in trace log' under Settings\Administration\SystemSettings\Customization, and by setting parameters in the registry as described here: https://support.microsoft.com/en-us/help/907490/how-to-enable-tracing-in-microsoft-dynamics-crm

But I don't find any of the information traced by the tracingService, not under Settings\Plug-In Trace Log nor in the trace folder.

Does anybody know how to do this, and actually traced some information?

Kind regards,

Kai 

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    Data passed to tracingService.Trace should be written to the TraceLog entity. However, be aware that there's a bulk deletion job that runs every day to delete data from this that is more than a day old

  • Suggested answer
    Community Member Profile Picture
    on at

    I think you will have to add tracing in the code as well.

    ITracingService tracer = executionContext.GetExtension<ITracingService>();

    tracer.Trace("Tracing Comment goes here");

    You can trace at multiple points in your workflow activity and add useful information.

  • KaiHartmann1981 Profile Picture
    204 on at

    Thanks for the replies.

    Where do I see what is logged to the TraceLog Entity? Is there a view or something?

    The tracingService I talked about is actually created like this already:

    ITracingService tracingService = executionContext.GetExtension<ITracingService>();


  • Suggested answer
    ntn32 Profile Picture
    401 on at

    Hi, 

    There are two ways to see trace logs of plugin or workflow activity,

    1. Navigate to Solutions -> Plug-in Trace Log.

    1134.5.PNG

    2. Go to Advance Find and select "Plug-in Trace Logs"

    1134.5.PNG

  • KaiHartmann1981 Profile Picture
    204 on at

    Even for tracing workflows? I cannot get it to work.

  • Suggested answer
    ntn32 Profile Picture
    401 on at

    Tracing workflow means, if you have any custom workflow registered and in that if any trace logs is written, then those message will be shown in "Plug-in trace logs".

  • KaiHartmann1981 Profile Picture
    204 on at

    Then I seem to be missing something. I set the option 'Enable loffing to plug-in trace log' in 'Settings\Administration\SystemSettings\Customization' to 'All', and have several Trace-calls in my workflow. Is there anything else I have to do?

  • Verified answer
    ntn32 Profile Picture
    401 on at

    And register it in sandbox mode.

  • KaiHartmann1981 Profile Picture
    204 on at

    Oh, it's not working outside of 'sandbox' mode? That might be it, since we use 'none'.

  • Yash Trivedi CRM Profile Picture
    351 on at

    what,i should register in sandbox???beacuse i am getting same problem after, this I set the option 'Enable loffing to plug-in trace log' in 'Settings\Administration\SystemSettings\Customization' to 'All',

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans