Most times when you want to use AddCustomView() method to a Dynamics 365 control, you need to pass layoutXml to the method that will show the view you define.
There’s an easier trick than writing this up.
Assuming, you have an Advanced Find view open in the window which you want as a layoutXml of, on the same, press F12 to open Dev Tools. Select the selector.
And on the…
Continue Reading priyeshwagh777’s Article on their blog
D365 Quick Tip: Getting layoutXml from DevTools
Blog Syndicated with priyeshwagh777’s Permission