Dynamics CRM 2015: Social Insights & On Prem

Posted by on September 22, 2014  |  commentsComments (0)

Microsoft recently announced new features coming out with their next version of Microsoft Dynamics CRM 2015 (previously code named Vega).  Check out the Dynamics CRM 2015 Release Preview Guide to see what features are coming with 2015.  Over the course of the next few weeks we’ll slowly reveal this functionality one by one and show some of the key highlights of these features.

Next up for our review is reviewing the changes with Social Insights from Microsoft Social Listening.  Previously only CRM Online orgs had access to embed components of Microsoft Social Listening within Dynamics CRM, but now with Dynamics CRM 2015, CRM On Prem customs will also be able to enjoy the benefits of the social data without having to leave Dynamics CRM.

Using a simple wizard based approach, Social Insights can be added to the following:

  • System Dashboards
  • User Dashboards
  • Entity Forms

In order to have both your Dynamics CRM On Premise organization and your Social Insights environment talking to one another, you need to:

  • In CRM, navigate to Settings -> Administration -> Microsoft Social Listening Configuration
  • Copy the Domain URL
  • In Social Listening, navigate to Settings -> Allowed Domains
  • Add the Domain URL copied above to the Allowed Domains
  • Copy the Social Listening URL
  • Paste the Social Listening URL back into CRM

image

image

As stated above, Social Insights can bee added to System or User Dashboards by selecting the Insert Social Insights components when on a dashboard section.

image

When you click this icon, you’ll be presented with a 3 step wizard.  You can select the specific data you want to display from Microsoft Social Listening including what search terms you want to display, what summary information you want to display (e.g., sentiment, volume, etc.), and more.

Note:  You can have one or multiple visualizations on one of the sections of the dashboard so you can see multiple pieces of social information in each section.

image

image

image

Now when you navigate to your Social Dashboard, you’ll see the social data from Microsoft Social Listening displayed to you in a summary dashboard directly from within Dynamics CRM.

image 

Similarly to adding Social Insights to a dashboard, you can add it to a CRM entity form.  From here you’ll be able to see the same social component information that you saw within a dashboard.

image

Note:  You’ll need to have a Microsoft Social Listening account and be logged into MSL or you’ll get an error when trying to view the Social Insights within Dynamics CRM.

image

A few additional pieces of information to be aware of:

  • Does not require IFD to be enabled for CRM On Prem
  • Will work with Outlook
  • Multiple CRM instances can point to the same MSL instance
  • This is not available on MoCA (as Social Insights is surfaced in CRM through an iFrame, and there is no support for iFrames in MoCA)
  • Users in CRM need a MSL license (these credentials are used to authenticate to MSL)

Server Side Synchronicity

Posted by on September 19, 2014  |  commentsComments (0)

Today's guest blogger is Ross Talbot, a Development Principal at Sonoma Partners

If you have been following our adventures with Server Side Synchronization in Dynamics CRM 2013, we previously detailed some of the gotchas we had encountered with upgraded orgs and some added fixes with communication between Exchange web services and CRM. Recently we found another issue related to an upgraded org, this time revolving around permissions.

After we had resolved the previous issue with the web services on the servers having some issues sending data back and forth, we found that tests for the sync were working for all but 20 users when looking at the sync for Appointments and Tasks. Of course, this was now less than 10% of the users but not all so we went looking for more information. We started by checking the sync filters, trying to determine what set these 20 users apart from the others. The error we were seeing this time around was that the mailbox user doesn't have sufficient permissions on this mailbox. We checked impersonation settings, security roles, and client information to rule out differences. That is where we found the difference, and it pointed to the security roles associated to the affected users. The difference between the affected users and those that were working involved native security roles that had been assigned prior to the production environment going live during the initial user import. With no custom roles defined at that time, all users were given a native security role. Users with higher level security needs were given one of the custom roles and the native role was removed. So why were the users with more privileges having issues?

When creating custom security roles, a good habit or best practice is to make a copy of a native CRM security role and modify only the permissions you need to. That is the approach we take on Sonoma projects, to ensure you don’t have to change every single privilege as you might need to if you started from scratch. When you upgrade your CRM org, whether it is a product version update, a service pack, or a UR being applied, the native security roles are updated with security access to new entities and features. Not the custom roles though.

Here is a custom security role, highlighting a section of the Business Management tab in CRM 2011.

image

Now, here is a similar look at a role in CRM 2013

image 

There are now a few new entries, and in fact there is a new Privacy Related Privileges section just below these privileges. With all the new features in CRM, including Server Side Sync, Mobile Client Apps (MoCA), Business Process Flows, not to mention adding more with every release, it is becoming more and more important to review the privileges in your custom security roles when testing a new release and especially the features that come with it.

For the sake of future me and all the others that need to search for the privilege names related to these new to 2013 entries shown above, they are listed below.

Mailbox privileges: prvReadMailbox, prvShareMailbox, prvAssignMailbox, prvWriteMailbox, prvDeleteMailbox, prvCreateMailbox, prvAppendToMailbox, prvAppendMailbox

Email Server Profile privileges: prvWriteEmailServerProfile, prvAppendToEmailServerProfile, prvDeleteEmailServerProfile, prvCreateEmailServerProfile, prvReadEmailServerProfile, prvShareEmailServerProfile, prvAppendEmailServerProfile, prvAssignEmailServerProfile

Got your own issue involving server side synchronicity? Don’t rely on a message in a bottle. Contact us instead.

Dynamics CRM 2015 Enhanced Business Rules

Posted by on September 18, 2014  |  commentsComments (0)

Microsoft has just announced a slew of new features that are coming out with their next version of Microsoft Dynamics CRM 2015 (previously code named Vega).  Check out the Dynamics CRM 2015 Release Preview Guide to see what features are coming with 2015.  Over the course of the next few weeks we’ll slowly reveal this functionality one by one and show some of the key highlights of these features.

Next up for our review is reviewing the changes and enhancements that Microsoft has made with Business Rules (new for CRM 2013).  The following high level enhancements have been made for this next major release of Dynamics CRM:

  • Business Rules can now be executed on the server (previously client side only)
    • Business Rule Scope should be set to Entity when building the rule
    • Ensures your rule will fire when no matter how records are updated and not only via the form
    • Synchronous and would be visible real time
  • Set default values on record creation (e.g., all your Leads are generated in the United States so you can default the country on the Lead record when records are created)
  • Added If.. Else If.. Else support
  • Ability to combine expressions using And/Or

Here’s an example where you can see:

  • The new option “Entity” in the top right corner for the Scope which would make this a server side business rule. 
  • An example of If/Then/Else support. 
  • How you can use “and” or “or” in conditions to make more complex conditions. 
  • The new “Set Default Value” action that’s been introduced.

image

With these enhancements, there are a set of limitations that everyone should be aware of:

  • Cannot support nested if.. else
  • No grouping of expressions in a condition
  • Expressions can be combined either using And, or using Or, but not both
  • Still single entity only (no ability to reach out to related records)

We’re excited to see the continued investment to make Dynamics CRM a more configurable application putting more power in the hands of System Administrators, and decreasing the requirement to hire application developers to extend the application.

Dynamics CRM 2015 Multi Entity Search

Posted by on September 17, 2014  |  commentsComments (0)

Microsoft has just announced a slew of new features that are coming out with their next version of Microsoft Dynamics CRM 2015 (previously code named Vega).  Check out the Dynamics CRM 2015 Release Preview Guide to see what features are coming with 2015.  Over the course of the next few weeks we’ll slowly reveal this functionality one by one and show some of the key highlights of these features.

First up for our review is functionality that Microsoft added to their MoCA product when it was released which is multi-entity search.  This feature has been something our customers have been requesting for some time now and to bridge the gap in the previous product, Sonoma Partners built their own Universal Search solution that we make available on our community site for both 2011 and 2013.  If you look at the Sonoma Universal Search, you’ll see some similarities to the one now available in CRM 2015.

In order to setup multi entity search, navigate to Settings –> Administration –> System Settings.  In the General tab, you’ll see the section “Set up Quick Find”.

image

This section has two settings:

  • Enable Quick Find record limits:  This setting was introduced in CRM 2011 and it uses an organizational database setting to limit quick find search results to 10,000 records to improve performance.
  • Select entities for search:  If you click on the Select button, you’ll be presented the window below where you’re able to select up to 10 entities at a time to enable for multi-entity search.

image

Entities that are selected here will be used in the multi-entity search results and be displayed in the order that you see them in this list. 

Users will be able to use the multi-entity search using the magnifying glass in the global navigation bar.

image

Clicking on that magnifying glass will bring you to a page where you can enter any search criteria (no minimum number of characters needed meaning you can type in a single letter), and click search do see your results.

image

On this search results page, one could:

  • Filter the results to a particular entity using the “Filter with:” drop down on the top right.
  • Create a new record using the + icon next to the entity name
  • Navigate to the record by clicking on the tile

A few things to note about multi-entity search:

  • Uses quick find views to determine the fields to search across
  • Can search activities and notes as well
  • First 3 fields in the Quick Find View are what are displayed in the tiles that are displayed
  • Search from anywhere in CRM using the search icon on the global navigation bar
  • The search results are displayed in the Modern UI

There are currently a few limitations of multi-entity search:

  • Doesn’t work with USD
  • Maximum of 10 entities can be configured for search
  • No hit highlighting and MRU (most recently used) suggestions
  • Only action available on each search result is the ability to open the record

Even though there are a few limitations to multi-entity search, as we expected once the MoCA app was introduced with this functionality, it’s nice to see this much requested feature make its way into the web app. As it stands currently, this is a very powerful tool and key addition to Dynamics CRM.

Editing records in Salesforce1

Posted by on September 15, 2014  |  commentsComments (0)

I recently was working on a project where we needed to override the new and edit pages for Accounts so that we could do some custom duplicate checking before the user saved the record. In standard override fashion, I created a Visualforce page with a controller which looked something like (edited for brevity):

Full Site

I first tested it in the full site to make sure it would work there:

Desktop1

Desktop2

Desktop3

So far, everything works as expected.

Salesforce1

Next, I tested it in Salesforce1 to make sure it would also work there (this particular client is a heavy user of Salesforce1).

1

2

3

As you can see, although the birthdate saved successfully the billing address did not. Doing some digging, I was able to see that the address was indeed correct in the database, so just pulling down on the screen to refresh the record, I saw:

4

Now the Billing Address is correct. It looks like the problem isn’t with the saving, it’s with the form refreshing correctly.

The bug

At this point, I opened a case with Salesforce support. After some back and forth, they eventually escalated it to R&D where a bug was submitted: https://success.salesforce.com/issues_view?id=a1p30000000T5awAAC. If you are affected by this issue, please click the button – it will help prioritize this bug fix above others.

Are you seeing something strange in your organization? Need some help figuring out what’s going wrong? Contact us and we can help.

Why we are excited about Winter ‘15

Posted by on September 11, 2014  |  commentsComments (0)

The Winter ’15 release window is upon us, and with it another round of exciting upgrades and updates geared at making our lives easier and the software we rely upon more stable. As always, Salesforce is delivering a sizeable number of updates to the platform, which generates quite a large release notes document. To save you the time of having to read the entire thing, we’ve handpicked our top updates that we think are most important based on the amount of impact we think they will have on us and our clients’ lives.

While reading this, you may notice this post is lighter on graphics than normal and this is intentional – Salesforce has done a great job of providing screenshots and examples in their documentation as appropriate, so we encourage you to go read the official documentation for any feature that interests you.

Data.com Duplicate Alerts and Blocking (Beta)

Synopsis

This beta feature uses Data.com to help prevent duplicates from being inserted into the system. The rules for detecting duplicates and choosing whether to allow them are customizable and reportable, so you still have full control over your data.

Our thoughts

This is a big deal to us. Arguably the single most requested enhancement we do on the platform is duplicate detection and prevention, with nearly every client having this in some form or another. Using this feature, some of the work is done for us. Although it does appear to require Data.com licenses, this is still a valuable addition for our clients who already license Data.com, and may make the added cost now worth it for anyone on the fence.

Platform Connect

Synopsis

This feature allows you to view data in an external system as though it were data in Salesforce. You can add this external data as related lists to normal Salesforce objects, form relationships to it and treat it almost like it actually lived in the platform itself.

Our thoughts

This has a lot of potential to redefine how we approach some integrations. A common reason for integrating in the first place is to allow the user to view all appropriate data in one place. Generally, these integrations are not real time, so the user could potentially be viewing stale data when making decisions. This feature would be querying the other data source directly, reducing the effects of stale data.

This feature does require an OData endpoint to work, however, so custom code may still need to be written if the external data source does not support OData natively.

Salesforce1 – Lead Conversion

Synopsis

This feature allows users to now convert leads to Contacts and Opportunities from within Salesforce1.

Our thoughts

While this feature seems small, it is something we are glad to see Salesforce has added. It is something we have had clients ask us for in the past, and lead conversion is surprisingly complex so it’s nice to have it already handled for us.

$Permission Global Variable

Synopsis

This feature exposes a new global variable for use in formula fields, validation rules, and Visualforce pages. It makes checking the user’s permissions easier and moves it out of the realm of custom code.

Our thoughts

Another relatively small feature that can have large implications. Before this feature, we had to write trigger or controller code to check the user’s permissions if we wanted to do this kind of logic. With this feature, we can now put those checks in validation rules or formulas, reducing the amount of code we need to write, saving the client money and reducing the delivery time.

Deploy with Active Jobs

Synopsis

This feature allows us to deploy updates to environments that may have scheduled/running Apex jobs without having to first cancel those jobs, making deployments quicker and less painful than before.

Our My thoughts

Ok, I admit that I may be the only person here who is excited about this feature (not many people get excited about deployments) but it is a good one (and since I write the post, I’m including it). I’m excited that I can deploy updates to (usually scheduled batch) jobs without having to cancel and reschedule them. While this does come with some amount of risk (the job failing if it’s currently running) I think the reward outweighs the risk in most cases. As always, it is important to understand the details of what you are doing to minimize unexpected outcomes.

Remote Objects

Synopsis

This feature provides developers with a new way of access their data from JavaScript. It provides a mechanism to declare what data you want accessible in JavaScript instead of having to write controller code.

Our Thoughts

This feature actually is not delivering any new functionality, technically. Anything you could do with this we already had the capability to do through Visualforce Remoting, or through the SOAP or REST APIs using JavaScript.  This new feature provides us a way to do these kinds of tasks more quickly, and with less custom code.

Queueable Interface

Synopsis

This feature changes enhances how asynchronous jobs are written and executed on the platform. It adds additional flexibility for queuing up multiple jobs.

Our Thoughts

This is a very developer-centric update, but it is one that has deep implications in some of our designs. A common scenario we face during integrations is needing to make callouts to external systems, which can only happen asynchronously. This enhancement provides us with a new, very flexible way of approaching these requirements and the chaining helps us navigate around some of the governor limits that have been painful in the past.

Summary

Obviously, with a release this large there are far more changes than what we covered here, so we encourage you to go read the release notes if you are looking for something specific. If you have any questions or are curious about anything in the release notes, feel free to contact us and we will do our best to assist.

Dynamics CRM and AngularJS: OData Endpoint and $resource

Posted by on September 8, 2014  |  commentsComments (0)

Today's guest blogger is Ian Moore, a Developer at Sonoma Partners.

Writing Javascript code can be tedious and verbose without the help of libraries and frameworks. While Knockout is popular among the .NET community – and deservedly so – it doesn’t offer much to developers beyond UI data-binding. A more powerful framework such as AngularJS can be a great tool for Dynamics CRM development. With Angular, we can easily write reusable and maintainable code for our CRM projects. In this post I will show how easy it is to use Angular to interact with the CRM 2013 OData endpoint by making a simple app that does a contact lookup based on user input.

To accomplish this, we will need the core Angular module and the ngResource module – which helps your code interact with RESTful APIs like the OData endpoint. You can download the two modules yourself from code.angularjs.org, or you can include them from a CDN like so:

<script src="https:// ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.19/angular.min.js"></script>

<script src="https:// ajax.googleapis.com/ajax/libs/angularjs/angular-resource.min.js"></script>

Now let’s create a new Angular module for code we would like to share between projects. We can call the module “angularMscrm” and, using the .factory() method, define a new Angular service called “CrmService” which will interact with the OData endpoint. Within the service definintion, we will use the $resource function to describe the REST service and define a custom “lookup” action.

The $resource function provides some built-in functionality to REST APIs for the standard HTTP methods. You can view the standard actions in the documentation. However with our CrmService, we are going to ignore those so that we can parameterize our custom lookup action by entity. Angular will automatically parse the route arguments in our lookup URL (entitySet, field, and search) as function parameters. Now we have a lookup service we can use in web resources.

Next we need to write the code to control our UI. This will be a small Angular app that has a controller to interact with the HTML. The controller will be responsible for calling our CrmService.

Here you can see we are just making a simple controller that will pass inputText to our lookup action. The request will be made asynchronously, so after Angular deserializes the response data for us, we can assign it to our controller’s $scope.

At this point you can see how easy it would be to change the entity or fields we want to perform the lookup on, or how to duplicate this call in other functions.

The last step is just a little bit of HTML to display our lookup results. The Angular directives (attributes that start with “ng-“) will take care of binding to our controller.

Adding “ng-app” to our <html> tag tells Angular to use our crmApp module in this file. The “ng-controller” directive on the <body> element scopes all child HTML elements to our AppController. By using “ng-change” and “ng-model”, we can bind the text value of the <input> tag to the inputText variable on our controller $scope, and react to the change event with our inputChanged function. Lastly, the “ng-repeat” directive will create a list item for every matched contact returned from our service, and a template expression will print out the contact’s name.

lookup

While the look and feel will need some additional work, you can hopefully see the benefits of using Angular with your CRM projects.

Note: AngularJS requires some special attention when working with Internet Explorer. There are a variety of syntax options for most features to help you avoid any issues with older versions of IE.

CRM 2013 - Refresh Web Resources on Activate and Deactivate

Posted by on August 18, 2014  |  commentsComments (0)

If you are building an editable custom Web Resource in CRM that will be embedded into a record form, typically you would want to make the Web Resource read-only when the record is deactivated.  To do this, you would have your Web Resource check the form type and toggle between editable and read-only mode appropriately.  In CRM 2011 this works great but in CRM 2013 you will notice that the form does not refresh after “Activate” or “Deactivate” in the Command Bar is used.  Therefore your Web Resource doesn’t refresh and is still in the same mode that it was before.

Luckily with only a handful of JavaScript, we can trigger our Web Resources to refresh on Activate or Deactivate.  First, in the OnLoad of the form, register an OnChange event for the statecode attribute.  Whenever the record is Activated or Deactivated from the form, this event will trigger.  Then you can refresh any Web Resources from your OnChange event.

Enjoy!

Adventures with PersonAccounts

Posted by on August 13, 2014  |  commentsComments (0)

Recently I had a chance to play with PersonAccounts while working on a project. If you’re unfamiliar with them, PersonAccounts are account records in Salesforce that act like Contacts, and even have the Contact custom fields available to them. They allow you to use the record almost anywhere you could use a Contact record or an Account record. This is especially useful for businesses that don’t really distinguish between Accounts and Contacts (like consumer facing retail stores), and would like to have the full functionality of native Accounts in Salesforce while retaining the common fields of Contacts like mobile phone numbers and home addresses.

In the particular scenario I was working in, the requirement was that whenever certain criteria happened on an Opportunity related to the PersonAccount, I needed to relate specific other PersonAccounts to the Opportunity based on some data in custom fields we had created. We planned on using the OpportunityContactRole native object to capture both which PersonAccounts should be related to the Opportunity and why (via the Role column).

Whenever I get a requirement like this, if I’m not sure about something I just attempt it through the UI first. I navigated to the Contact Roles related list on a test Opportunity and clicked the new button, which brought me to a screen where I could search for and select the test PersonAccount to relate to it:

0

After clicking save, I was returned to the Opportunity with the PersonAccount added:

1

No problems so far, so I started writing the code I thought I would need:

Seemed simple enough. Save and test:

2

So that definitely wasn’t what we wanted. Reading the error message closely we can see that the root cause is “Contact ID: id value of incorrect type”. What?! Why doesn’t this work when I just did the same thing through the UI?

After some head scratching and unsuccessful web searching, I decided to take a closer look at the records Salesforce was actually creating. There’s a neat trick in Firefox where if you hover over a link, it will tell you where the link will take you in the lower left. Hovering over the link in the related list on the opportunity gave me:

3

Notice the ID (highlighted) which starts with 003. I know from experience that the Account prefix is 001, so this seemed a little strange to me.

At this point, I decided to go back and review the documentation more carefully to see what I could dig up. Eventually, I found it: on the Account object’s page there’s a snippet towards the bottom detailing a field called PersonContactId, which is the ID of the ‘Contact’ that the PersonContact is ‘related to’. Firing up the developer console, I ran a query against this record to see what was in the database:

4

And there we have it, both IDs in one place. So what’s happening in the background is that Salesforce is using the PersonContactId to relate the PersonAccount record to the Opportunity instead of the ID field. Once I updated the code to use the Account.PersonContactId field instead of Account.Id all was well with the world again.

Need someone who knows the ins and outs of the Salesforce platform? Need a partner who can guide your project to success, and offer advice on best practices and change management? Just want someone to bounce ideas off of? Contact us and we can help.

Think there’s something we should cover but haven’t? Curious about some specific piece of the platform? Let us know in the comments below!

An Introduction to Change Management and CRM

Posted by on July 31, 2014  |  commentsComments (1)

Definitions for change management in relationship to CRM vary widely from person to person. Every vendor has a different explanation of what change management is, and each client has a different expectation of what change management can do for them.

First things first. Sonoma Partners defines change management as the moving of processes, teams, and organizations to an alternative state. It’s a shake-up of your company’s current structure and way of doing things. It impacts many aspects of your organization including training, user adoption, and incentives for better employee performance. When done properly it can yield great results and improve your team’s organizational knowledge.

At Sonoma Partners, the term "change management" best describes the state of an organization before and after they have adopted a CRM.

A common (and dangerous) approach to change management is implementing a plan after the CRM system development comes to an end. This method may not give you the results, or user adoption rates, that you are hoping for. Disrupting the way your employees are used to working without their feedback or input up front may lead to you building a system that no-one will use.

A better approach to change management and CRM is to incorporate it into the conversation from the beginning of the project. Remember: if you’re giving real value to your end user, you are less likely to have issues with change management, because people will be motivated to use the new system.

4pillarblogimage

Here are a few tips to help you build your change management plan:

1. Identify

Who in your organization is going to be affected? Outline and define value propositions for each party to motivate them to use the system after it’s built.

2. Engage

Engage all parties involved from the beginning. This includes executives, stakeholders, end users, and management.

3. Educate

Communicate how the new system works in relation to how each team member will use it. Create a communication plan that outlines the benefits, functionality and status of the project.

4. Incent
Formulate an answer to the following question: “What’s in it for us?” Your CRM project lives and dies by user adoption rates. Develop an incentive plan to encourage system use.

Change management is a lot like user adoption. It’s a term that is defined differently by every person implementing it, and every party looking for it. The best way to guarantee a successful rollout of change management is to build a CRM system for your end users that best suits their needs from the start.

 

XRM Tooling – Web Resource Utility

Posted by on July 28, 2014  |  commentsComments (0)

A couple weeks ago I posted a video on the new Login Control that comes with the XRM Tooling library in the latest CRM 2013 SDK.  Today I will show off another handy feature in the XRM Tooling library, the Web Resource Utility.  The Web Resource Utility provides an easy way to retrieve an Image or XML web resource. 

First you will need to download the latest SDK here.  Then you can add the following namespaces:

using Microsoft.Xrm.Tooling.Connector;
using Microsoft.Xrm.Tooling.WebResourceUtility;

 

Next you can either use the new Login control to get an instance of a CrmServiceClient or manually set it up yourself.

var crmSvc = new CrmServiceClient(
                CredentialCache.DefaultNetworkCredentials, 
                AuthenticationType.AD, 
                "server", 
                "port", 
                "org");
 

Then use the following code to retrieve an XML resource which will return a string of the XML content:

var xmlResources = new XmlResources(crmSvc);
xmlResources.GetXmlFromCRMWebResource("myxmlresource.xml");
 
 

Or use the following code to retrieve an Image resource which will return a BitmapImage object:

var resources = new ImageResources(crmSvc);
var bitmap = resources.GetImageFromCRMWebResource("myimageresource.png");

 

Now with the BitmapImage object, you could set an Image control directly within your WPF app and dynamically display images based off your web resources in CRM.

The Salesforce1 sforce.one.createRecord problem

Posted by on July 21, 2014  |  commentsComments (0)

Recently I was working on a Salesforce1 mobile page and I ran in to an issue when attempting to use the sforce.one.createRecord API call. The code I started with was (condensed for brevity):

The idea here was to show the create record screen so that users could create a new Account when they clicked a button. 

1

This worked fine on a desktop, but the createRecord call was a bit slow over cellular networks (on the order of 5 – 6 seconds to load sometimes). During this loading time, it looked like the page wasn’t doing anything so the users would click the button that fired this code multiple times, resulting in multiple new forms being shown. To prevent that, we added a loading layover that shows the first time the button is clicked, preventing the user from clicking it again. 

2

So far this all worked fine, until we started really testing the create form. One of the things a user can do on the create form is click a cancel button which takes them to the previous form, where we got a nasty surprise: the loading screen is still there!

After some investigating, I found that the new Account form isn’t actually a new page, but is instead a layover on the current page, and the cancel button is just hiding the layover. Therefore, the custom page the user came from never gets reloaded.

We tried the onload event (which is only called when the page is loaded, not when cancel is clicked) and the onfocus event (which is only called if the user taps the screen again after clicking cancel). Neither were sufficient for us.

At this point, I opened a support case with Salesforce where they confirmed this is by design, and there is not a fix forthcoming.

We decided to take advantage of the fact that this is a layover and put in a timeout for the loading screen so the user isn’t permanently trapped. We added an idea to the Salesforce idea boards that you can upvote here if you think this is important to fix like we do.

EventWhoRelation – A gotcha

Posted by on July 16, 2014  |  commentsComments (0)

I recently had a requirement on one of my projects to build a Visualforce page that summarized an event, including all of the attendees of the event. After doing some digging through the documentation, I found the EventRelation and EventWhoRelation standard objects provided by Salesforce. Reading through them, it sounded like the EventWhoRelation object best suited my needs, so I wrote the appropriate controller code to retrieve the attendees as follows:

This all worked fine, and when I tested the code through the UI I got back the results I was expecting. After I was satisfied with how it worked, I turned my attention to the unit tests to finish up. I started with the following code:

When I ran the unit tests, I saw the following logs:

Looking at the last line, there’s no Event Who Relations! Double checking the unit tests, I wasn’t running it as a particular user so I shouldn’t be getting any profile-related issues, and Shared Activities was enabled (otherwise EventWhoRelation wouldn’t be available at all), and I was using the latest API version available to the organization (31 as of this writing). The documentation says that EventWhoRelation is a filtered view of EventRelation, so I would expect that a record meeting the criteria listed (IsParent = true, IsWhat = false) to show up in the EventWhoRelation table.

I opened a support case with Salesforce to see what was going on here. After doing some digging on their end, they confirmed that the EventWhoRelation records are not created in test cases unless you add the @isTest(SeeAllData=true) attribute. Their explanation: since the EventWhoRelation is a derived table, we need to be able to see all data in the org to read from it (otherwise it’s just always empty).

We don’t typically condone using the SeeAllData setting unless absolutely necessary as it makes the tests more brittle and harder to maintain. The workaround I came up with is to not use the EventWhoRelation and instead use the EventRelation in my controller:

XRM Tooling – New Login Control

Posted by on July 14, 2014  |  commentsComments (0)

With the latest CRM 2013 SDK, Microsoft has provided a new XRM Tooling library to connect to CRM.  Along with the new Tooling library comes a brand new Login control that is styled with the 2013 look and feel and can be used for custom WPF apps. 

In our new video below, I demonstrate how to easily setup the new Login control so you can be on your way with your custom CRM WPF app.

Prerequisites:

 

The Seven Use Cases Your Mobile CRM Sales Application Must Nail

Posted by on July 9, 2014  |  commentsComments (0)

We’re now at the point where enterprise mobility should be built into your CRM platform from the beginning of a project. You know that your sales team needs to be able to access their accounts and data on the go.

But how can you guarantee your users will have what they need when they need it? Build an app that nails these seven use cases to ensure that your sales team can and will use your mobile CRM application.

#1. Availability
Don’t assume you are always connected to a network. The terrain that your sales team can cover varies and your app needs to be available every step of the way, regardless of possible nearby wifi networks or cellular connection signal strength. If your app doesn’t have the ability to record notes and orders offline and then immediately sync up when a connection is established, your sales team won’t use it in fear of losing valuable data.

#2. Brand Standards
When your sales team is meeting with prospects and customers they should be able to use their CRM app as a sales tool and collaborate directly with them. This includes being able to display specific product information, conduct a product demo and access relevant marketing collateral on the fly. Because your clients viewing your app with your sales team, your mobile CRM app needs to absolutely reflect your organization’s look and feel and reinforce brand standards.

#3. Digital Sales
Your team needs to be able to do more than pull up existing accounts in the field, they need to be able to create new ones! Your app must allow users to display and present sales collateral during client meetings. Most importantly you need to be able to pull up pertinent information relevant to a specific sale to get a holistic view of the account. Being able to check if merchandise is in stock or an updated version of an item is available could positively (or negatively!) impact the direction of a meeting.

#4. Location-Based Activity
Sonoma-phone-tabletAs your team travels throughout the day they need to be able to see the accounts and prospects in the area. Incorporating geo-coding into your mobile CRM app can help your team maximize their time in the field. If a meeting is cancelled or postponed, being able to identify prospects geographically could translate to a new opportunity.

#5. Activity Management
Not only should your team be able to monitor clients and sales opportunities but they need to be able to manage their schedules. Build a mobile CRM app that allows users to track and manage their day including appointments, tasks, and to-do lists. Make this process as touch friendly and as simple as possible. Creating a tool that provides value and simplicity back to the sales team increases the likelihood of user adoption.

#6. Account Management
It’s important that your users are actually able to manage opportunities in the field.
Accessing sales materials and product information is essential to making the sale but taking notes, updating contact information, and adding reminders for future meetings can be just as important. Building a mobile app that allows your sales team to manage an account at all stages while in the sales process guarantees that the highest quality of data will make it into your CRM.

#7. Build an App that Minimizes Training
If you deploy an app that isn’t intuitive or user-friendly, we guarantee that your adoption rate will suffer. Remember that having to use your CRM isn’t enough of a motivation for your users, they have to need or want to use it. Engaging in a user discovery process and investing in thoughtful user experience increases the likelihood that your mobile CRM app will satisfy the needs and wants of your users.

 

 

How to: Setting up Unified Service Desk

Posted by on July 8, 2014  |  commentsComments (2)

Earlier this year, we posted an overview of Unified Service Desk based on a Convergence session.  Now that the Spring ‘14 update has been released, get can get our hands on USD ourselves.

Note: This walkthrough is only meant for a development environment and should not be used for production.

First, head here to download the USD package.  This contains a CRM2013-USD-PackageDeployer.exe and a UnifiedServiceDesk.msi.  Run the msi which will install the actual USD desktop client onto your machine. 

Next step is to run the CRM2013-USD-PackageDeployer.exe which will extract files to a specified folder.  Navigate to the extracted folder and it should contain a PackageDeployer.exe.  This is the new Package Deployer tool that we blogged about last week but it will already contain packages specific to USD.  This tool will deploy solutions and import data to your organization so it is highly recommended to be done in a development environment.         

Run the PackageDeployer.exe and you’ll come to a login screen.  Enter credentials for the organization that you would like to install USD to and click Login. 

image

Next you will get a list of package options to use.  Select the package you would like to use and click next.

image

Clicking Next will move onto the next page that displays a detailed description of the package you are about to import into your organization.

image

Click Next to verify the organization you are installing to and then Next again and the tool will validate the solutions and import files that it is about to install.

image

Clicking Next again will start the import process and display a report of the status.  If there are any errors, you can click the link at the bottom left to view the log file.

image

Clicking Next will display the completion page.  Then click finish and you’re done with the installation process!

image

Now you can open the Unified Service Desk client that you installed in the first step.  A login screen very similar to the Package Deployer tool will display.  Enter your credentials to the organization that you installed USD to.

image

image

Now you can play around with USD in your organization and get a feel for what is possible.  If you are interested in extending USD, head to MSDN where there is a great set of walkthroughs on adding custom modules, layouts, iframes, etc.

CRM Online Service Update 3 Rollout

Posted by on July 3, 2014  |  commentsComments (0)

CRM Online Service Update 3 is being rolled out this week.  To find out if your organization has been updated, click the gear in the top right corner and click About to check the build number.  The build number for this update is 6.1.0.1043.

This update resolves a handful of issues both performance and usability related.  Here are some of the most notable fixes:

  • Duplicate records created if Save and Save and Close is pressed multiple times
  • Unhandled exceptions in asynchronous plugin instantiation causes Async service to crash
  • Option set not selected on first click
  • SQL deadlock and performance issues after Spring Release ‘14 update was applied
  • Multiple navigation and command bars show up via associated grid navigation

It is nice to see a steady release of fixes from Microsoft.  Especially with a focus of frustrating usability issues and performance optimization.  For a full list of fixes, check the KB article which can be found here.

Salesforce1 Mobile – Object-Specific Actions

Posted by on July 2, 2014  |  commentsComments (0)

In part 1 (Branding your mobile application) of this series we talked about how to brand the Salesforce1 mobile application to fit your company’s standards. In part 2 (Becoming mobile ready) we met Bob the sailorman salesman and customized the Salesforce organization to make it more mobile friendly. And in part 3 (Global Publisher Actions) we took a look at one of the ways you can add custom functionality to your Salesforce1 mobile deployment – by implementing Global Publisher Actions. In this 4th and final part of the series, we will take a look at one more way to add custom functionality to your Salesforce1 mobile deployment – Object-Specific Actions.

Object-Specific vs Global publisher actions

The main difference between Object-Specific and Global publisher actions is that Object-Specific publisher actions are context aware. They are invoked from a specific record using the publisher icon in the lower right corner of the SF1 mobile app (as opposed to the left hand navigation) and the code to make them work knows which record the user was on when they started the action.

1

This gives Object-Specific actions the ability to act upon the data contained in the record to perform various actions such as mapping the current Account using a maps application.

Bob’s Business

Bob is pretty happy with his mobile experience and has been adding Accounts to his VIP list which we built in the last part of this series, but the business is not as pleased. They’ve noticed that Bob has begun adding all of his Accounts to the VIP list, and would like to change the business requirements to have Bob also enter in a justification when he adds an Account to the VIP list. To enable this, we will build an Object-Specific publisher action for Accounts that Bob can use to promote them to his VIP list and enter the justification the business needs.

To do this, we will:

  1. Remove the VIP checkbox from the form
  2. Create a new custom field called ‘VIP Justification’ that will store Bob’s input. This will just be a long text field for now.
  3. Create and configure the Object-Specific action so that Bob can invoke it from an Account record.
    1. The action will take Bob to a new page which has the justification input field.
    2. When the page is submitted, the field is saved and the record’s VIP checkbox will be checked.

Step 1 – The customizations

At this point, these customizations should be old hat so I’ll just briefly go through what I did.

I created the new VIP Justification field on the Account object:

2

I created a workflow that sets the VIP checkbox to true whenever the Account is updated to have text in the VIP Justification text area:

3

4

And I updated the form to remove the VIP checkbox from it:

5

Step 2 – The Justification Page

Next, we need to create the page that will allow Bob to input his justification. Because we just need to display the text box for Bob to be able to input the text, we will use one of Salesforce’s native action types to display a form. We could, however, also write and deploy a custom Visualforce page like we did in the previous post to have more control over the look, feel and exact mechanics of the page.

For now, navigate to Setup > Customize > Accounts > Buttons, Link, and Actions and click New Action:

6

On the following page, enter in the following values:

7

The Update a Record type is what will allow us to create a form to present to Bob so that he can enter in his justification. Once he clicks save, the workflow we set up earlier will automatically check the VIP box – no code required!

Once you click Save, the next screen will be the form we want to present to Bob. Edit it so that it only contains the following fields:

8

Notice how we have to keep the Name field because it’s a required field. For our purposes, this is fine, but if we really didn’t want to display it we could write a custom Visualforce page that would track it in the background and only display the justification text box.

Before we save this, we need to make the Justification field required (no point in going to this page if you’re not going to enter anything…). To do this, hover over the VIP Justification field on the form so that the wrench icon appears, then click it. Next, click the Required checkbox and OK.

9

 

10

Once that is done, click Save.

Step 3 – Giving Bob access to the action.

The last thing we need to do is give Bob access to use the new action we just built. To do this, we need to edit his layout (the Standard User Layout) and add the action to it.

11

On the resulting page, click Actions in the header and drag the new Action we just created to the Publisher Actions section on the form. Click Save.

12

Step 4 – Testing it out

Now that we’ve given Bob access to the action, he should be able to start using it! Looking at Bob’s mobile device, we can see:

13

14

It’s our new action! If Bob clicks on it:

15

Bob is presented with the justification page we built. He can enter in a justification and click ‘Submit’ to add the Account to his VIP list.

Wrap Up

This concludes our series on Salesforce1 Mobile. If you enjoyed it or found it useful, please let us know in the comments below!

Do you need help with your Salesforce deployment? Thinking about going mobile but aren’t sure what the best way to start is? Contact us! Our team of Salesforce and mobile professionals can help you from planning through deployment and post go-live support.

CRM 2013 Spring ‘14 Package Deployer Tool

Posted by on July 1, 2014  |  commentsComments (6)

The Package Deployer is a new tool that was released with the CRM Spring ‘14 update and provides administrators with an easier way to deploy to CRM organizations.  The Package Deployer can deploy one or more CRM solution files as well as import data and can even be extended to execute custom code to handle any edge cases while deploying to your CRM org.

Sounds great, so how do we get started?  Well first, you will need to have Visual Studio (2012 or 2013) installed, which we be used to create a package.  Next, download the latest SDK that was released with the Spring ‘14 update which can be found here.  After the SDK is installed, browse to SDK\Templates folder and run the CRMSDKTemplates.vsix to install the necessary Visual Studio Templates.

Now that we have everything setup, we can start to build our deploy package.

  • Open Visual Studio
  • Go to File –> New –> Project
  • Select CRM SDK Templates on the left
  • Select CRM Package Deployment Template and click OK

image

This will create a structure in the Solution Explorer like shown below:

image

The PkgFolder is where you put any CRM Solution files that you would like to be deployed as well as any import data files. 

In my example I have a solution “MySolution1” and “MySolution2” as well as a contacts.csv data import file.

image

Now you can open the ImportConfig.xml and update it with your package files.  At the top of the config file you can also set if you want to install the out-of-the-box sample data as well as if you want to wait for the sample data to install before deploying your package.  There are two agent desktop settings as well that can be used when deploying Unified Service Desk.

In my example I have the package deploying sample data as well as waiting for it to finish before deploying the package.

<configdatastorage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   installsampledata="true"
                   waitforsampledatatoinstall="true"
                   agentdesktopzipfile=""
                   agentdesktopexename=""
                   crmmigdataimportfile="">

In the solutions node you can define each of your solutions that should be deployed.

<solutions>
    <configsolutionfile solutionpackagefilename="MySolution1.zip" />
    <configsolutionfile solutionpackagefilename="MySolution2.zip" />
</solutions>
 
 

Lastly, you can define any data import files to be imported with the deploy.

<filestoimport>
    <configimportfile filename="contacts.csv" filetype="CSV" associatedmap="" importtoentity="contact" 
                      datadelimiter="" fielddelimiter="comma" enableduplicatedetection="true" isfirstrowheader="true"  
                      isrecordownerateam="false" owneruser="" waitforimporttocomplete="true"/>
</filestoimport>

That’s it for the ImportConfig.xml.  Here is my full config for reference.

<?xml version="1.0" encoding="utf-16"?>
<configdatastorage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   installsampledata="true"
                   waitforsampledatatoinstall="true"
                   agentdesktopzipfile=""
                       agentdesktopexename=""
                   crmmigdataimportfile="">
  <solutions>
    <configsolutionfile solutionpackagefilename="MySolution1.zip" />
    <configsolutionfile solutionpackagefilename="MySolution2.zip" />
  </solutions>
  <filestoimport>
    <configimportfile filename="contacts.csv" filetype="CSV" associatedmap="" importtoentity="contact" 
                      datadelimiter="" fielddelimiter="comma" enableduplicatedetection="true" isfirstrowheader="true"  
                      isrecordownerateam="false" owneruser="" waitforimporttocomplete="true"/>
  </filestoimport>
</configdatastorage>

 

One last thing to note is that the PkgFolder contains a Content folder with a WelcomeHtml and EndHtml folder.  Within each of those folders are a Default.htm page.  These pages can be customized to your needs to provide a unique welcome and end page during the deploy process.

image

Now you can build the solution in Visual Studio (Build –> Build Solution) which will create a dll that we will use for the Package Deployer Tool.  Go to the bin\Debug folder, copy the PkgFolder as well as the dll named the same as your Visual Studio project and paste them into SDK\Tools\PackageDeployer.

Run the PackageDeployer.exe and a login screen will appear.

image

Select your organization and login.  The next screen will display an iframe showing the content from the WelcomeHtml folder.  As mentioned before, you can customize and brand the html page to suit your needs.

Click Next and you’ll see a screen that lists out the solutions and any files you have included to import.

image

Click Next again and the Package Deployer will attempt to import the included solutions and files.  Once it is finished, it will give you a status on what succeeded or failed.  You will also see another screen showing the content from the EndHtml folder which can be branded and customized as well just like the Welcome screen.

As you can see, the Package Deployer tool is a great asset for administrators and customizers.  It is now easy to make your own branded installation wizard that covers most aspects of the deploy process so you can handle it in one fell swoop. 

When it comes to CRM software platform selection: Features are (almost) worthless

Posted by on June 23, 2014  |  commentsComments (0)

One mistake we see our customers make over and over again is comparing, and ultimately selecting, a CRM platform based on a list of features.

DartsOften advertised as “new and improved”, CRM system feature lists include items such as: ease of integration, remote access, mobile access, integrated analytics, multi-channel support, and campaign management. If you’ve ever run a search for ‘CRM Features Checklist’ you could compile a list of dozens of “must-have” capabilities your CRM should include.

When it comes to selecting CRM software, basing the decision off of a list like this can be disastrous as features are updated at a rapid pace, and become outdated quickly.

Just how quickly are features updated?

Once an organization commits to a specific CRM platform, they typically will stick with that platform for AT LEAST 3 to 4 years before considering any type of switch. Every year, Salesforce.com pushes 3 major updates and Microsoft Dynamics offers multiple new releases as well. Let’s assume each new update includes several hundred new features. Doing some simple math:

- 4 year CRM platform lifespan

- 3 new releases per year

- 500 new features per release

- 6,000 NEW FEATURES!!

When you consider the CRM system you’re evaluating will have 6,000 new features over its lifespan, doesn’t it seem insane to perform a feature-by-feature comparison? The results of the shootout could be drastically different in just 3 or 6 months based on the product roadmap. Consequently, we think it’s futile (and potentially dangerous), to compare two CRM platforms on features as they exist today.

Here’s a not-so-little secret. At their core, ALL CRM platforms inherently share the essential features you need to get the results you want:

  • Giving your sales and marketing teams the ability to target your best customers? Check.

  • Optimizing information shared across departments? Check.

  • Accessing analytics to segment, analyze, and run reports on your business? Check.

  • Offering better customer service to build customer loyalty? Check.

So if we don’t recommend selecting your CRM platform based on today’s system features, you might be wondering “well then how should I select my CRM platform?” Glad you asked, we tackled this topic in a free eBook named the “The Ten Most Important CRM Evaluation Criteria”. You can learn more about the eBook and download it here.

The good news? As long as you pick one of the market leaders like Salesforce.com or Microsoft Dynamics CRM...either platform is flexible enough to be customized to meet your individual needs, regardless of how complex or unique you might think your business is. The real trick? Building a CRM platform that your sales team will use.

 


Contact Us for a Quote, or Personalized Demonstrationof Salesforce.com or Microsoft Dynamics CRM for Your Business.

Contact Us