Tip #832: Dynamic does not work in sandbox

Sandbox Club

Dynamic not DynamicS. The reference is to dynamic keyword making C# developer’s life easier since 2010. As Rickard “Ikea Frysta Köttbullar” Norström has discovered, the following code works in a sandbox on-premises but spits the dummy in Dynamics 365 Online environment. Not all sandboxes were created equal, it seems. Avoiding dynamic and using explicit cast […]

Tip #827: Restricting date picker on portal forms

Aztec calendar

This tip comes directly from none other than Tanguy “The XRM Toolbox” Touzard himself. It’s super easy to build an entity form and a page to allow editing of the Dynamics 365 records in a portal. But what if we want to restrict a date picker control to a certain range, which could be dynamic, […]

Tip #821: Troubleshoot Xrm.Tooling connection to Dynamics 365

Connectivity

We’ve long been recommending the use of CrmServiceClient in your applications that connect to Dynamics 365. But what to do when the client just wouldn’t connect? The easiest way to start troubleshooting connectivity to Dynamics 365 is to run LoginControlTester.exe that has long been part of the SDK and can be found in <SDK>\Bin folder. […]

Tip #810: Using Fiddler with Xrm Tooling

Old violin

Sometimes it’s very useful to see what requests are flying forth and back between your code and Dynamics 365. The tool of trade is, of course, Fiddler. Fiddler allows https traffic analysis by using man-in-the-middle interception using self-signed certificates. If you are using Xrm Tooling and, specifically, CrmServiceClient then you quickly find that the following code: […]

Tip #798: CrmServiceClient and multiple instances

Reduce reuse recycle

If you are using Microsoft.Xrm.Tooling.Connector.CrmServiceClient and relying on nuget to reference the assembly in your project (as you should) then you need to be aware of what seems to be an odd behavior but is, in fact, a bug fix. Run the following code: And get: Wait a minute, what? Same user and org? Despite […]

Tip #796: Long live ExecuteFetchRequest!

Long live rock'n'roll

Love those days when people send their gems and discoveries to jar@crmtipoftheday.com – other people’s cleverness tend to rub off on us, making us a bit smarter every single post. Aron Fischman from xRM Edge LLC made this intricate discovery while working on a product that calculates aggregates on CRM data. In his travels he’s […]

Tip #794: Connect to Dynamics 365 in Azure Functions

Something useful

Delegating some work from plugins to Azure Functions turned out to be not as complex as we expected. Making function to do something useful (like updating Dynamics 365 records) was entirely different story. After running some NEL (naked eye learning) algorithms against our sales pipeline we calculated that an average opportunity value is inflated by […]