Microsoft Dynamics 365 CRM Interview Questions Answers debug asynchronous plugins - Dynamix Academy
Abhishek Dhoriya (Dynamix Academy) Abhishek Dhoriya (Dynamix Academy)
7.8K subscribers
7,537 views
106

 Published On Premiered May 12, 2019

A video on Microsoft Dynamics 365 CRM Interview Questions and Answers by Dynamix Academy can also be considered as Microsoft dynamics CRM 365 tutorial for beginners.
Below are two courses that you can take to start your journey of becoming a Microsoft Dynamics 365 Developer.
Microsoft Dynamics CRM 365 Plugin Development Course Link: https://bit.ly/37JVqhQ
Microsoft Dynamics 365 - Custom Workflow Development Course Link: https://bit.ly/2AWKp0L

Video explains if Is there is any difference in debugging synchronous and asynchronous plugins? [D365 CE Online] Debug Async Plug-in using “Persist to Entity” profiler option
You can find these in one of the Microsoft Dynamics CRM interview questions and answers whereas it can also be considered as Microsoft dynamics 365 tutorial for beginners.
As you are aware, using the Plug-in Profiler option we can debug D365 online plug-ins by throwing an exception and capturing the Serialized profile. Refer my previous article

With the ‘Exception’ profiling option, you first need to trigger the event and capture the exception log. For example, if you need to debug “Post Account Create” plug-in, you first need to trigger the event (i.e., Create Account from D365 application) and capture the exception log. This ‘Exception’ option would be apt, if your plug-in registered in Sync mode.
Microsoft Dynamics 365
What if your plug-in is Async?
Answer is, using “Persist to Entity” profiler option.
Configuring Profiler in Plugin Registration Tool:
• Connect to your Dynamics instance using Plug-in registration tool.
• Click on ‘Install Profiler’ button
• Register a new plug-in assembly and add an Async step
• In this article, I registered an Async step on Post Account Creation
• Select the Plug-in step and click on ‘Start Profiling’
• In the “Profiler Settings” screen, choose “Persist to Entity” option and click “OK”

Dynamics 365 Trigger Account Creation from D365 Application:
• Connect to D365 application and create a new Account
• As we opted for “Persist to Entity” profiler option, an entry will get created in “Settings then Plug-in Profiles” entity.
• Go to “Settings then Plug-in Profiles”, open the newly created “Plug-in Profile” record (Note: Async plug-in takes time to create a new “Plug-in Profile” record).
• In the “Plug-in Profile” record, you would notice the Serialized content in “Serialized Profile” field. This is same as what you get in Exception download log if you would have opted for “Exception” profile setting.

Debug the Plug-in:

• Once an entry got created in “Plug-in Profile” record
• Open the Plug-in class file in Visual Studio and attach “Plug-in Registration Tool” process
• Add a break point in your Plug-in class file to debug.
• Open the “Plugin Registration Tool”

Subscribe for more: https://goo.gl/wwznrB

#dynamixacademy365 #dynamics365 #microsoftdynamics

Share this video with a friend:    • M2L3: Microsoft Dynamics 365 Plugin E...  
Watch next – Microsoft Dynamics 365 Interview Questions & Answers: https://bit.ly/2EcNjN6


Recommended Playlist – What's New in Microsoft Dynamics 365? New Features in V9.0 https://bit.ly/2LMRVQl


You can also watch our Videos on the playlist:

Microsoft Dynamics CRM 365 Tutorials for Beginners - https://tinyurl.com/y8oqpoe7
History of Microsoft Dynamics 365: https://bit.ly/2w0uwjL
Microsoft Dynamics 365 - Custom Workflow Development Course: https://bit.ly/2AWKp0L
Microsoft Dynamics CRM: https://bit.ly/2WPhcdF
Microsoft Dynamics 365 Business Central Introductory Course: https://tinyurl.com/wfttoja
Plugin Development in Microsoft Dynamics 365: https://tinyurl.com/rbmgynq

Let’s connect:
Instagram: https://bit.ly/2YBdchI
WhatsApp: https://bit.ly/2JIN7Jf
Twitter: https://goo.gl/d84Qw9
Facebook: https://goo.gl/UQH3Eg
LinkedIn; https://bit.ly/2VwtOoO
• Select the Plug-in step and click on “Debug/REPLAY PLUG-IN EXECUTION” button
• In the “Replay Plug-in Execution” screen, set
• Profile = Click on ‘Down Arrow’ button to pick your “Plug-in Profile” record from D365 (Refer screen)
• Assembly Location = Plug-in dll
• Plugin = Class Name
• Click on “Start Execution”
• Press F10 to proceed with debugging.

Microsoft Dynamics CRM, MSCRM, Microsoft Dynamics, D365, Dynamix Academy
Facebook: https://goo.gl/UQH3Eg
Twitter: https://goo.gl/d84Qw9
YouTube: https://goo.gl/wwznrB
WhatsApp: https://chat.whatsapp.com/Blw14zGHhOE...

show more

Share/Embed