Tip #1084: New way to learn Dynamics 365

Our resident video tipster, Derik, has been a bit quiet lately and, as it turned out, for a good reason. If you are not a partner, and do not have access to Dynamics Learning Portal, then you’re in luck.

Managing Customer Engagement with Microsoft Dynamics 365 course is now offered free of charge through Microsoft Learning. The course contains tons of videos, step-by-step exercises, and targets first-time Microsoft Dynamics 365 users, young professionals and students.

The course is set to be archived in June 2018 so hurry up and learn!

(Facebook/Twitter cover photo by Clever Visuals on Unsplash)

Tip #1083: Don’t expire your passwords

Mini Truckstop

Dynamics CRM TipperJonas “The Shuffler” Rapp fed us a perfect question for a security slam dunk.

Recommended expiration settings

Really?

(Jonas’s words, not mine)

Yes, really. We’ve already mentioned the brilliant password guidance in our tip 1031. Since some folks seem to have missed the memo, here’s the quote from the guidance (highlights are mine – g.d.).

Most administrators will force users to change their password at regular intervals, typically every 30, 60 or 90 days. This imposes burdens on the user (who is likely to choose new passwords that are only minor variations of the old) and carries no real benefits as stolen passwords are generally exploited immediately. Long-term illicit use of compromised passwords is better combated by:

  • monitoring logins to detect unusual use
  • notifying users with details of attempted logins, successful or unsuccessful; they should report any for which they were not responsible

Regular password changing harms rather than improves security, so avoid placing this burden on users. However, users must change their passwords on indication or suspicion of compromise.

It’s good to see Microsoft reviewing and adjusting their security recommendations on a regular basis. Stay safe, folks!

Tip #1082: Forming an opinion on which form

If we use ClickDimensions and Dynamics Portals, we have a wealth of options when it comes to creating a form for an external party to fill out. We have:

  • Dynamics Portals Web Forms (and Entity Forms but these are in my ways a simplified version of Web Forms)
  • ClickDimensions Surveys
  • ClickDimensions Web Forms

The question we may need to ask ourselves is which one to use for a given situation. At this stage I could use an illustrated guide to pave the way. After all, TOTD does occasionally feature flow diagrams. However, I am feeling nostalgic so my tip today will be in the form of a Commodore 64 BASIC program.

EDIT: Not everyone turned out to be a BASIC fan. Heck, some probably were not even born when BASIC was the language du jour. Scroll down to see a handcrafted diagram, if reading code is not your thing.


1 REM *****DYNAMICS FORMS DECISION TREE*****

10 AUTH = AD_AUTHENTICATION_REQUIRED

11 CONTACTS_ONLY = ONLY_CAPTURING_INFO_ON_CONTACTS

12 SURVEYS = CAPTURING_SURVEYS_ON_EXISTING_CONTACTS

13 HTML_FORM = IT_IS_AN_EXISTING_HTML_FORM

14 SKIP_QUESTIONS = THE_FORM_SKIP_QUESTIONS_SOMETIMES

15 REM *****I DONT DO COLONS*****


20 IF AUTH = YES THEN GOTO 100 ELSE GOTO 30

30 IF CONTACTS_ONLY = YES THEN GOTO 40 ELSE GOTO 50

40 IF COMPLEX_FORM = YES THEN GOTO 60 ELSE GOTO 200

50 IF SURVEYS = YES THEN GOTO 70 ELSE GOTO 100

60 IF HTML_FORM = YES THEN GOTO 200 ELSE GOTO 100

70 IF SKIP_QUESTIONS = YES THEN GOTO 300 ELSE GOTO 100


100 LOAD "DYNAMICS PORTAL FORMS", 8

200 LOAD "CLICKDIMENSIONS WEB FORMS", 8

300 LOAD "CLICKDIMENSIONS SURVEYS", 8

1,000 words equivalent

Tip #1081: Magic of managed solutions and sitemaps

The topic of managed solutions and sitemaps turned out to be so popular that a few trucks stopped by for the first Tipping Truckstop of 2018.

truckstop

tl;dr

Before installing any managed solution, backup your sitemap. Because

Managed solutions and sitemap are like magicians and their assistants: one distracts the audience, another one disappears.

The story

Guido “Future Olive Farmer” Preite has reported that installing Organization Insights version 1.3.1.0 removes Process Center and Application sitemap areas in Dynamics 365 version 8.2.2. Jerry “Once Tipster Forever Tipster” Weinstock has since confirmed that the problem exists in Dynamics 365 version 9.0.1 as well.

Antidote

Miquel “Third musketeer” Julien was first to offer the solution:

I met the same problem two weeks ago! I used the XrmToolBox (must be some kind of a native French thing – t.j.) to change the sitemap after the insight solution import.

Now, before any managed solution import, I save the sitemap with the Sitemap Editor tool.

Reproduce

When I questioned the ability of a managed solution to delete other entries in the sitemap, Jonas “Surströmming MkII” Rapp outlined the detailed steps to reproduce the issue:

As long as the parts you are removing are “known” where your solution is developed. (which applies to all default areas – t.j.)

  1. Create a solution in vanilla CRM
  2. Add sitemap to it
  3. Use favorite sitemap editing tool to remove parts of standard solution sitemap
  4. Export solution managed

You will see in the customizations file that the removed areas/groups/subareas appear with action=deleted. And that will apply wherever the solution is imported. That’s why you should

always always always make sure you reset the sitemap to default before adding your own stuff when building ISV solutions

Otherwise someone will get angry and you will feel the flames that the orginsights team is feeling right now.

ISV Story

Jerry has some additional advice for ISVs:

As an ISV we initially recommended to our clients to backup their sitemap and even their default solution prior to importing our Managed Solutions.

However, since no one ever had the time to do it apparently or read the directions we changed our approach – We don’t include a sitemap in our solutions any longer. We do include instructions on how then can update their sitemap to add the entities from our managed solution.

Since going that route, provisioning sessions usually end with a happy face. Even though it’s time consuming for the client.

Tip #1080: Setting KPIs for user adoption

After you deploy Dynamics 365, you will want to monitor how well your employees are using the system. Using tools like Microsoft Dynamics 365 Organization Insights you can monitor how active your users are, but that is only part of the user adoption story. In this tip, Tabetha Sheaver explains what you should consider to get a full picture of user adoption of Dynamics 365.

When determining CRM user adoption metrics consider these 3 KPI’ to measure:

1. Business Outcomes

Is the needle being moved on the business outcome you were trying to achieve when you originally purchased? (This is a lagging indicator but telling none the less. Focus on RESULTS not feelings.)

2. Usage

Are people using the system? – Measuring some objective areas like is the system user friendly and does it add value to the persons daily work activities can be done via surveys but you can also track people that have never logged on or only use it rarely to determine if its really worth paying for a license for them. If people aren’t using the system or are only using it for certain tasks it can indicate a system configuration issue or a training issue.

3. Data

Is the data accurate on an on-going basis? Are you collecting too much or too little data? What is the data that is being collected actually being used for?

Set KPI’s in each of these areas to measure user adoption success.

 

Tip #1079: Security Design Principles

We have a lot of flexibility when it comes to security in Dynamics 365; field-level, record-level, hierarchy, ad hoc sharing and so on. Sometimes, depending on the requirements, there are a few ways to skin the cat (such a violent expression). Whenever you are presented with a range of options to solve a problem, it is good to fall back on some guiding principles to work out the right path. Here is my MASCOT model for security design.

Maintainability: If the design cannot be maintained by a power user/non-coding developer, rethink. Having a base security role helps in this regard

Always Think of the User: If the Users hate it, the system will not be used. There is a balance to be found between governance and practicality

Simplicity: Keep the design as simple as possible. Minimise Security Roles and Business Unit complexity. Documentation gets lost and exception rules are often forgotten. Do not share security roles between Users and Teams though

Configuration First: Mixing development and security can lead to scalability issues, especially if automated sharing and un-sharing is involved. Keep the system running smoothly by avoiding ad hoc sharing of records via code

Only Use Security When Necessary: If there is not a valid business reason to protect information, don’t. A lack of trust is not a valid business reason

True Security, Not Security By Obfuscation: It is sometimes much easier to remove a field from all forms and views and think it is secure. If the data can be found via Advanced Find, it is not secure

I remember one security model which broke all of these rules. Accounts came in from a third party system via integration. Based on the Account’s office location, code automatically allocated it to a Territory and then ad hoc shared the Account to all Users with permission to access that Territory. To keep up with the growing scaling issues and minimise User complaints, the administrator was upgrading the RAM of the SQL Servers literally every month. Field security was implemented by simply adding and taking away fields from forms and having Users use the right form. It was a mess.

I reviewed their system and proposed a security model using both record and field level security and no code. The only difference was one field, previously read only, would be editable. A vastly simpler security model and no more RAM blow out. The CTO refused to change because he was the architect of the original model and, despite having auditing enabled, did not trust his employees not to edit that one field.

Six months later he was sacked, his team replaced, and a rival CRM system implemented (yes, THAT one!). They could have upgraded Dynamics for a fraction of the cost but the system was so despised it was politically easier to ditch it.

Learn from the mistakes of others and embrace the MASCOT.

Tip #1078: Illustrated tipster guide to the decision making process

The binary choices seem to rule the Dynamics 365 landscape as of late. Everyone has an opinion, everyone seems to know the right way to do things, everyone stands by their choices until their last Dynamics breath.

To stop very mature “did not – did to!” arguments when designing, building, and operating Dynamics 365 solutions, we present the ultimate, the one and only, the illustrated tipster guide to the decision making process:

(Full size hi-res image)

Judicious application of spießrutenlaufen is encouraged, as usual.

Tip #1077: Connect to the right instance

As Guido “Future Olive Farmer” Preite has discovered, sometimes CrmServiceClient may connect to the wrong instance. Just like that.

Dynamics 365 instances now can be backed up and restored at will. The side-effect of this awesomeness is that URLs and unique names may no longer match, leading to the fun times with connections. Here’s the scenario:

  • Instance https://foo.crm.dynamics.com with a unique name bar
  • Backup and restore that instance into https://bar.crm.dynamics.com, the unique name will be something like org1234567
  • If you use CrmServiceClient with a connection string that points to https://bar.crm.dynamics.com, it may actually connect to the first instance.

If you do experience this behavior, the workaround is to specify organization unique name in the connection string, i.e. use https://org1234567.crm.dynamics.com as URL parameter.

Thanks to Clément “French but not Tanguy” Olivier for the workaround and Matt “SDK Deity” Barbour for explaining the scenario.

(Facebook/Twitter cover photo by John Carlisle on Unsplash)

Tip #1076: Add all assets to your solution

A good observation from Nick “Benchpress” Doelman that, once you click Add All Assets when adding an entity to a solution, you won’t be able to remove any of the assets of that entity. Both, Add and Remove Components buttons will be gone.

The reason is fairly straightforward (though options could have been labelled better). Add All Assets does not simply mean “I want it all now!”, it implies the future as well, i.e. “I want it all now and forever”.

Add All Assets is like a super-vindictive ex-partner: gets all your assets after the divorce and still receives a slice of any future fortunes.

When Add All Assets option is checked, you no longer control assets of the entity, you just get them all. If someone else adds, say, a view, a form, or a field to the entity, you’ll get them in your solution as well. This is in a contrast with selecting some or even all components one by one where your solution won’t automatically get the future additions.

The components are easy to miss, make sure you test the solution export after crafting your selection. As Steve “Still an MVP” Mordue has pointed out, it’s possible to inherit some invalid attributes that would require a manual intervention.

Tip #1075: Get off the bad server process

One minute your instance is humming along just fine, then suddenly it’s spewing strange errors something like

The customized site map could not be used because it is configured incorrectly. The default site map has been applied instead.
To resolve this issue, repair the customized site map and import it again.

The url, as frequently is the case, contains even more bizarre

Error Details: Sub area with id “nav_workflow” has an empty title.

The sandbox copied couple hours prior is humming along just fine, the other users report that they had this issue few minutes ago but everything is unicorns and rainbows right now.

Most likely, there was indeed a temporary issue that has been resolved but now you are stuck with the bad front-end server/process that is dealing with your requests. Quick test: if you can connect in incognito mode then the rotten service-side connection that your session is pegged to (by the application load balancer), is most likely the case.

Solution: Delete the ApplicationGatewayAffinity cookie. How exactly you do that, depends on the browser (Firefox, Chrome). You don’t even need to logoff.

(Facebook/Twitter cover photo by Denny Luan on Unsplash)