问题
I have a Dynamics 365 CE online instance. I'm debugging a plug-in. I can find plug-in trace log Entities that come from the code I'm interested in. How can I determine the Entity instance that triggered the plug-in to fire? I.e. I have a plug-in registered against entity Foo. I can see the trace log entry from the run I'm interested in. How do I find which Foo instance triggered the run?
回答1:
To be specific, yes, you ( the plugin developer ) are required to traceout the content you are interested in for the plugin trace log. For clarification though, it will appear in the plugin-tracelog in the message block field.
I would encourage you to go to https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas and post it. we are always watching that.
thanks
回答2:
I guess you wish to know which foo record has triggered the plugin.
You can add record id as tracing and you can easily see this under Exception details.
By default D365 CE only gives info on which entity and what message plugin fired
来源:https://stackoverflow.com/questions/58199315/how-do-i-find-the-dynamics-entity-associated-with-a-plug-in-trace-log