Used HTML 5 Geolocation API with Bing Map.


Just created a simple html page that shows my location using the new Geolocation API.

Source Code:-

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Geolocation HTML5</title>
    <script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script>
    <script>

        window.onload = getMyLocation;

        function getMyLocation() {

        // Check if the browser supports the Geolocation API
            if (navigator.geolocation) {

                // we can specify how the geolocation computes its value
                var postionOptions = { enableHighAccuracy: true, timeout: 5000, maximumAge: 0 };

                // call getCurrentPosition method of the API
                // getCurrentPosition(successHander, errorHandler, positionOptions)
                navigator.geolocation.getCurrentPosition(displayLocation, displayError, postionOptions);
            }
            else {
                alert("No geolocation support in the browser");
            }
        }

        function displayLocation(position) {

            // load map if location is found
            map = new VEMap('myMap');
            map.LoadMap(null, 4, VEMapStyle.Hybrid);

            // get the latitude and longitude
            var latitude = position.coords.latitude;
            var longitude = position.coords.longitude;

            // place the pushpin
            PlacePushPin(latitude, longitude);

            // get location div and show the latitude longitude and the accuracy
            var divLocation = document.getElementById('location');
            divLocation.innerHTML = "I am at Latitude :" + latitude + ", Longitude : " + longitude;
            divLocation.innerHTML += " with " + position.coords.accuracy + " meters accuracy";
        }

        // place the pushpin in the map for the location found

        function PlacePushPin(lat, lon) {
            latlong = new VELatLong(lat, lon);
            myPushPin = new VEShape(VEShapeType.Pushpin, latlong);
            map.AddShape(myPushPin);
            map.SetCenterAndZoom(latlong, 15);
        }

        // error handler
        function displayError(error) {

            var errorTypes = {
                0: "Unknown Error",
                1: "Permission denied by user",
                2: "Position is not available",
                3: "Request timed out"
            };

            var errorMessage = errorTypes[error.code];

            if (error.code == 0 || error.code == 2) {
                errorMessage = errorMessage + " " + error.message;
            }

            var divLocation = document.getElementById('location');
            divLocation.innerHTML = errorMessage;
        }
    </script>
</head>
<body>
    <div id="location"></div>
    <div id='myMap' style='position: relative; width: 600px; height: 250px;'>
    </div>
</body>
</html>

Bye.

Cleared MB2-867 CRM 2011 Installation and Configuration Exam


Hi,

Yesterday i cleared the installation and configuration exam of CRM 2011. There were 74 questions in it and 140 minutes to answer them.

Most of the questions were on system requirements while installing Microsoft Dynamics CRM 2011, Outlook, Email Router.

If we remember the below points we can easily answer around 40 questions correctly.

Microsoft Dynamics CRM Server 2011 E-Mail Router

can be installed on computers running

  • Windows 7 32-bit, 64-bit editions.  (32 bit version of router on Windows 7 32-bit)
  • Windows Server 2008 or later 64-bit editions.

can work with following e-mail systems

  • Microsoft Exchange 2003, 2007, 2010, Online.
  • SMTP servers for outgoing.
  • POP3 complaint server for incoming.

Microsoft Dynamics CRM for Outlook is supported on

  • Window 7 RTM (32-bit and 64-bit)
  • Windows Vista SP1 (32-bit and 64-bit) SP1
  • Windows XP Professional SP3, Professional x64 SP2, Tablet PC SP3 Edition.

Supported version of Microsoft Office Outlook

  • Office 2010 RTM
  • Office 2007 SP2
  • Office 2003 SP3

IE Version Supported for Microsoft Dynamic CRM for Outlook

  • IE 7, 8, 9.

Microsoft Dynamics CRM 2011 Server can be installed on following Windows Server  (only 64-bit versions)

  • Windows Server 2008 Standard, Enterprise, Datacenter – SP2
  • Windows Web Server 2008 – SP2
  • Windows Small Business Server Premium, Standard – RTM.

Supported SQL Server Editions (only 64-bit)

SQL Server 2008 Standard, Enterprise, Datacenter, Developer all SP1.

  • Microsoft Dynamics Reporting Extensions setup must be run on a computer that has SQL Server 2008 Reporting Services installed.
  • Microsoft Dynamics CRM Report Authoring Extension must be installed on the computer where SQL Server   is installed.
  • Understand how Claim Based Authentication and IFD are configured for Microsoft Dynamics CRM 2011.

Read about permission required while installing CRM 2011.

Minimum permissions required for Microsoft Dynamics CRM Setup, services, and components.

 To remember the above points  i also created a small mind map as well.



Hope it helps.


Error “A Microsoft Dynamic CRM service has been disabled or has not yet started” while configuring Microsoft Dynamics CRM for Outlook.


Got this issue while configuring Microsoft Dynamics CRM for Outlook for CRM Online.

It was because of the following service being disabled.

Enabling the service resolved the issue.

Hope it helps.

System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. -2147220970


Hi,

At times we have got this error while saving our record in CRM. It can occur if we have mistakenly registered steps of one of our plugins to some other plugins. Please check in plugin registration tool and delete those steps.

Hope it helps.

New features in CRM 2011 as part of Update Rollup 5


Dialog Enhancements

Earlier

Now

Added Support for Date and Lookup fields.

Earlier

Now

Support for contextual URL.

Charts

Earlier

Now

Adding Series and Category.

Send email activity

Earlier

Now

Option for Inserting Hyperlink

Auditing

Earlier

Now

Audit User Access

http://msdn.microsoft.com/en-us/library/hh547392.aspx

Improvements in Duplicate Detections

Get the complete detail here

http://blogs.msdn.com/b/crminthefield/archive/2011/10/26/podcast-and-overview-microsoft-dynamics-crm-2011-update-rollup-5.aspx

Hope this helps.

Activity Feeds in CRM 2011 – New features.


Hi,

Let us see what all features are there in the Activity Feeds.

  • Download Activity Feeds solution from the market place.
  • Import the managed solution MicrosoftCRMActivityFeeds.zip.

We can see a new link added above Dashboard in “My Work” area

The other place it appears is the Sales area.

Let us go to Settings:-

There we see two new entries: – Activity Feeds Configuration and Activity Feeds Rules.

Let us create a new Activity Feeds Configuration (Post Configurations) record.

For Entity Name, we need to enter the schema name of our entity and we can also select the check box that enables walls for those entity records.

After saving the record the two new rules “New lead created” and “A lead has been qualified” automatically gets added to the record.

A small alert in the record also informs us to publish the related entity, so let us publish the lead entity.

No opening our lead record shows a new Record Wall link in the information section.

Clicking on Follow adds the user as the follower

Now let us qualify the lead record, which is one of the activity feed rule that got auto created.

Going back to “What’s New” link shows us that information in our wall.

Now let us open the same lead record, activate it and submit a post or “Share an insight

This information would also appear in our “What’s New” wall.

We can also add comments in our lead record.

Now suppose I open another lead record and start following it. And now I change something in that record, and then check my wall.

Here I won’t see any update in my wall. This is because of the rule that was defined in the “Post Configuration”

Only when the rule is qualified the update would be available.

Can we define a new rule over there?

It seems that we can only activate or deactivate rule, we can’t add a new one.

Now let us check if we can define Post Configuration for a custom entity or not?

I created a new post configuration record for my custom map entity.

After publishing the entity and opening one of its records I can see the Record Wall link for it.

Now let us check what kind of updates can I receive for my custom entity, as there are no out of the box rules created for it while creating post configuration record for it.

Say I deactivate a map record and then check my wall. I don’t see any update over there which is expected as no rules are defined.

Suppose I write something on Record’s Wall and post it.

It should be available on my wall.

As expected it is.

Similar to records we can also follow system user entity. The post configuration record for the System User automatically got created.

Now let us check the other option Activity Feeds Rules in our system settings.

It contains the feed rules which automatically got created when we defined the Post Configuration rule on lead entity. And again we can only activate and deactivate rules from here; we can’t create a new one.

The What’s new page also shows

auto posts :- the post based on rule.

user posts :- the post on record’s wall.

Clicking on “2 leads” link opens up a view showing the leads records I follow

The edit button gives up an option to upload the profile picture

To summarize,

  • Acitvity Feeds can be enabled for both system entities and custom entities.
  • For certain system entities, Activity Feed Rules will get auto created. We can’t add our own rules, only activate or deactivate them.
  • We can follow records and users. We will receive both auto posts and user posts in our wall (“What’s New” area)
  • We can comment on posts on our wall and delete them.
  • We can set a profile picture.

Nishant Rana's Weblog

Everything related to Microsoft .NET Technology

Skip to content ↓