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
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',
Oh, it's not working outside of 'sandbox' mode? That might be it, since we use 'none'.
And register it in sandbox mode.
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?
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".
Even for tracing workflows? I cannot get it to work.
Hi,
There are two ways to see trace logs of plugin or workflow activity,
1. Navigate to Solutions -> Plug-in Trace Log.
2. Go to Advance Find and select "Plug-in Trace Logs"
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>();
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.
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
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156