Posts

Modify Logon Setting in IE When Group Policy Doesn't Allow It

Image
Recently I needed to "Prompt for user name and password" when logging into my Local Intranet zone so that I could test as multiple users.  A colleague of mine made me aware of the registry settings for these option so you can modify.  These settings will be overwritten next time Group Policy is applied but they provide a good temporary workaround.

The specific key for the Local Intranet Zone is located at HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1. The key name is 1A00


Just update this value to 20000 and your setting will now be switched to "Prompt for user name and password"





Here is the listing of the other Zones:

Value Setting ------------------------------ 0 My Computer 1 Local Intranet Zone 2 Trusted sites Zone 3 Internet Zone 4 Restricted Sites Zone

Here is the listing of all the Logon settings you can use:
Value Setting ----------------------------…

Navigate to the Document Associate Grid View From Record

This will allow you to navigate to the Documents Associated Grid view form a button in the main records ribbon.  This currently works for Dynamics 9.0 and 9.1 Online.  Some of the previous versions used navDocument instead of navSPDocuments.

-Create a new ribbon button called DOCUMENTS
-Create a WebResource with a javascript function, something like this

function navigateToSharePointDocuments() {
Xrm.Page.ui.navigation.items.get("navSPDocuments").setFocus();
  };

-From the new button call the javascript function.



Add SharePoint Documents Associated Grid to Page

Recently I was looking for a way to add the SharePoint Documents Associated grid as an IFrame on a Dynamics form. Jason Lattimer's blog had the answer:

https://jlattimer.blogspot.com/2017/01/show-sharepoint-documents-on-main-form.html


VSTS and SourceTree

Recently started using Git with VSTS and wanted to connect it up to Sourcetree.  This article by Adam Prescott helped me out.  You can view the article here:
https://adamprescott.net/2015/01/29/visual-studio-online-and-sourcetree/

Dev Box Tools

Download SDK Tools for Dynamics V9.0+

Microsoft is no longer providing the entire SDK and samples as a download.  Instead they are hosting the samples on a their website and providing the sdk and tools on nuget.

You can get the tools inside Visual Studio by adding the nuget package but if you just want to download them to a folder on your computer they also have provided a PowerShell script to help you do that too.

https://docs.microsoft.com/en-ca/dynamics365/customer-engagement/developer/download-tools-nuget

Sample code website:

https://docs.microsoft.com/en-ca/dynamics365/customer-engagement/developer/sample-code-directory

Here is a copy of the powershell script provided by Microsoft:


1. In your Windows Start menu, type Windows Powershell and open it.
2. Navigate to the folder you want to install the tools to. For example if you want to install them in a devtools folder on your D drive, type cd D:\devtools.
3. Copy and paste the following PowerShell script into the PowerShell window and press Enter.
$sourceNugetExe = &…

Find Empty Methods in Visual Studio

Image
To find empty methods in Visual Studio search using the following regular expression.

void\ .*\(*\)(\ |(\r\n))*{(\ |(\r\n))*}