Archive

Archive for the ‘CRM 4.0’ Category

Setup failed to determine whether a supported version of Microsoft Outlook is installed - Outlook 2010

July 13th, 2010

I recently tried to install the CRM client with my install of office 2010 (on Windows 7) and got an error and couldn’t continue.

“Setup failed to determine whether a supported version of Microsoft Outlook is installed”

The Fix:

Right click the install window on the taskbar and click “Close Window” - It will give you a choice “Do you really want to cancel the setup” then click “Yes”

It should begin installing:

It should complete, now open outlook and configure CRM for outlook (CRM URL, Organisation etc..)

Install Client Update Rollup 7 and 11 or else the CRM toolbar will be in a new “Tab” in Outlook 2010 called “Addins”:

It should turn out like this:

MSCRM-Admin CRM 4.0, CRM 4.0 Client

CRM 4: IFD Authentication using C#

April 14th, 2010

A very common question is: “How do i run a plugin/custom web application against a IFD deployment?”

You should use the below code:

CrmDiscoveryService disco = new CrmDiscoveryService();
disco.Url = "https://YOUR.IFD.URL/MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx";
RetrieveOrganizationsRequest orgRequest = new RetrieveOrganizationsRequest();
orgRequest.UserId = @"username";
orgRequest.Password = "password";
RetrieveOrganizationsResponse orgResponse = (RetrieveOrganizationsResponse)disco.Execute(orgRequest);
OrganizationDetail orgInfo = null;
foreach (OrganizationDetail orgdetail in orgResponse.OrganizationDetails)
{
   if (orgdetail.OrganizationName.Equals("OrgName"))
   {
   orgInfo = orgdetail;
   break;
   }
}
if (orgInfo == null)
{
   throw new Exception("The specified organization was not found.");
}
RetrieveCrmTicketRequest ticketRequest = new RetrieveCrmTicketRequest();
ticketRequest.OrganizationName = orgInfo.OrganizationName;
ticketRequest.UserId = @"username";
ticketRequest.Password = "password";
RetrieveCrmTicketResponse ticketResponse = (RetrieveCrmTicketResponse)disco.Execute(ticketRequest);

CrmAuthenticationToken sdktoken = new CrmAuthenticationToken();
sdktoken.AuthenticationType = 2;
sdktoken.OrganizationName = orgInfo.OrganizationName;
sdktoken.CrmTicket = ticketResponse.CrmTicket;
CrmService service = new CrmService();
service.CrmAuthenticationTokenValue = sdktoken;
service.Url = orgInfo.CrmServiceUrl;

Code: ifd-service-auth-code.txt

MSCRM-Admin CRM 4.0, Plug-ins , , ,

CRM 4 - Update Rollup 9

March 9th, 2010

Well, update roll up 9 is out (how the hell did we get to 9??)! Jeez with all these update packs there needs to be a full job to implement all these updates on servers and implement the necessary changes the update pack doesn’t.

KB article: http://support.microsoft.com/default.aspx?kbid=977650

Download: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=5869f2b3-d1a0-4f71-8be3-fde6e8053a2e

MSCRM-Admin CRM 4.0 , , , , ,

Mini Preview Window for Contact Lookup Field

March 9th, 2010

Preview Field

Looks cool doesn’t it. well here goes nothing..

to achieve the above you will need the following (click read more link..)


// the following code is for the hover over lookup window

function OnCrmPageLoad()
{
/*
Reference the to Lookup, Provide the lookup (control) id.
*/
var PrvToLui = new LookupPreview("new_primarycontactid");
/*
Add Account Preview Information ,
returns an account entity wrapper object
*/
var accountEntity = PrvToLui.AddEntity("account");

/*
Add Account Preview Attributes,
Provide lable and schema name for each attribute
*/
accountEntity.AddAttribute("Business Phone","address1_line1");
accountEntity.AddAttribute("Mobile Phone","address1_city");
accountEntity.AddAttribute("Fax","address1_stateorprovince");
accountEntity.AddAttribute("E-mail","address1_postalcode");
/*
Add Related Entity (Primary Contact) Information
AddLinked requires the entity name and
lookup field schema name on the account.
*/
var contactEntity = accountEntity.AddLinked("contact","primarycontactid");
contactEntity.AddAttribute("Primary Contact","fullname");
contactEntity.AddAttribute("Contact Phone","telephone1");

/* ------------------------------------------------------------------ */

//Contact Entity Preview
var contactEntity = PrvToLui.AddEntity("contact");
contactEntity.AddAttribute("Business Phone","telephone1");
contactEntity.AddAttribute("Mobile Phone","mobilephone");
contactEntity.AddAttribute("Fax","fax");
contactEntity.AddAttribute("E-mail","emailaddress1");

var accountEntity = contactEntity.AddLinked("account","parentcustomerid");
accountEntity.AddAttribute("Parent Company", "name");
accountEntity.AddAttribute("Parent Street","address1_line1");
accountEntity.AddAttribute("Parent Suburb","address1_line2");
accountEntity.AddAttribute("Parent State","address1_stateorprovince");
accountEntity.AddAttribute("Parent Postcode","address1_postalcode");
accountEntity.AddAttribute("Parent Website","websiteurl");
/* ------------------------------------------------------------------ */

}
Read more...

MSCRM-Admin CRM 4.0, JavaScript , , , , ,

Sharepoint 2010 Preview Sneakpeak

August 12th, 2009

Customize Marketing List (List Member View)

August 12th, 2009

Hello all,

Today i wanted to customize the ‘All Members’ view on the Marketing List entity and couldn’t. I was stuck for 1 hour trying to figure out how to do this. I stumbled upon http://blogs.msdn.com/crm/archive/2008/04/02/customize-marketing-list-list-member-view.aspx and Jim explained it perfectly.

Answer:

The ability to Customize the List Member View of a marketing list has not been made available in the Customization area of the UI, but can still be achieved with the UI in other means by using the Advanced Find feature.

clip_image002
Fig 1: Marketing List Detail Form displaying “List Member View”

A Marketing List can only be 1 of 3 types, an Account, Contact, or Lead. By default each of these 3 entities has a view associated with it named “All Members”, “Active Members”, and “Inactive Members”. The view that is displayed for the List Member View is based on the marketing list type. For example if the List is an Account type Marketing List, then only the Account entity views of “All Members”, “Active Members”, and “Inactive Members” will be available. The Lead and Contact entities also has these three views, but they will not be available to a Marketing List of type Account.

I will provide an example below of adding a single column only to the “All Members” view for all 3 entities, “Account”, “Contact”, and “Lead” for a total of 3 view modifications. Note: You must have permissions for Customizations to perform the following steps.

How To:

Step 1: Launch Advanced Find

Step 2: When Advanced Find Dialog opens, change the “Look for” Combo box to be “Views”

Step 3: Change the Select Option to “View”, “Equals”

Step 4: Use the Lookup to find “All Members”. NOTE: You will see 3 “All Members” listed in your Lookup window, each one represents an Account, Contact, or Lead “All Members View”. For this example select all three. Optional, you can save your view query for future use.

clip_image004
Fig 2: Advanced Find Dialog

Step 5: Click Find on the Advanced Find Dialog and you should now have a results page listing three “All Members” Views, representing the “All Members” view for an Account, Contact, and Lead. Double Click on Each View to open.

Step 6: When each View is Opened, Select the “Add Columns” button and a property list will appear. Choose a property from the list you want to have displayed as a column by check enabling the box next to the property, in this example I will be choosing the property “E-mail”. Exit the property dialog by clicking ‘OK’ after making your selection.

clip_image006
Fig 4: All Members View for Account after adding the E-mail Column

Step 7: You are free to make other modifications to this View as well, such as column and sort order. Make your changes, Select “Save and Close”, and repeat (if desired) to the other “All Members” views returned by the Advanced Find Query.

Step 8: Important! Finally we need to publish these changes before they can become active. The saved view you modified will appear as an additional item (draft) until it is published and overwrites the existing View. Navigate in the system to ‘Settings’ -> ‘Customization’ -> ‘Customize Entities’. Under the menu Item “More Actions” Select “Publish All Customizations” or you can Use the “Publish” Button.

Important Note: Use the “Publish” button To ONLY publish the highlighted Entity row from the Grid (for example if you customized the memberlist view for Contacts, then select the ‘Contact’ entity item in the grid before pressing Publish. If Using “Publish All Customizations”, be aware that every customization pending in the system will be published!

clip_image008

Result: The List Member View has been modified…

clip_image010
Fig 5: Modified List Member View

MSCRM-Admin CRM 4.0, Customizations , , ,

CRM 4: Adding tooltips to fields on forms

July 14th, 2009

Tooltips are little help messages explaning a field or label (if you hover over a label you will notice a tooltip), I had a requirenment for adding a tooltip to a custom field with some custom help text.

After some digging through i found out the correct JScript property and method:

crmForm.all.my_custom_attribute_c.title = “Add a value here and it should get automatically populated..”;

End Result:

 

MSCRM-Admin CRM 4.0, Customizations, JavaScript , , , ,

Microsoft Dynamics CRM 4.0 Update Rollup Packs

July 9th, 2009

CRM 4.0 - Server Error in ‘/’ Application

June 28th, 2009

Gday all,

We had recently powered off our CRM 4.0 server (IFD deployment) due to some urgent maintenance.

We powered on the server, waited for it load and then tried to login and got the wonderful ASP .Net error “Server Error in ‘/’ Application” - i though crap.. what’s going on here..

Looked through the event log and found the ASP .Net exception and it said something about the ASYNC service not running or responding..

I quickly started the services management console and saw that the Microsoft CRM Async Service wasn’t started event though it’s in automatic startup mode..

I started the service and issued an ‘IISRESET’ and everything was back to normal.

Something strange is going on and i will have to investigate..

MSCRM-Admin CRM 4.0 , , , , ,

CRM4 Failover system?? It’s Possible!

June 21st, 2009

Hello all,

Take the following actions:

  • Setup a new CRM server and choose the ‘connect to an existing deployment’ and choose the SQL server and reporting server
  • Once that’s online, test that it is working and make some changes (you should see them on your old system)
  • Lets assume that your deployment is sitting at CRM.MSCRMBLOG.NET all we do now is add a new A record pointing to the new CRM server’s ip address. It should resolve to 69.XX.XX.XX & 70.XX.XX.XX

That easy huh! :)

MSCRM-Admin CRM 4.0, Deployment , , , ,