Ultimate Collection - { fslSocial & faisalmb.com } Ultimate Collection - { fslSocial & faisalmb.com }   
Social   |   Site   |   Posts (353)   |   Tags Xplorer   |   Feed Subscribe Free! Aha! you surfing post CRM - Retrieve Cultures i...    Partner Site - Real Home Contact Search   

Fri

21

Aug

2009

Fri-21-08-2009
   

CRM - Retrieve Cultures information from CRM into your Custom Web Application




Following code will help to Retrieve Cultures information from CRM into your Custom Web Application

                     // Retrieve the Locale IDs from the server.
                    RetrieveProvisionedLanguagesRequest reqLang = new RetrieveProvisionedLanguagesRequest();
                    RetrieveProvisionedLanguagesResponse resLang = (RetrieveProvisionedLanguagesResponse)crmService.Execute(reqLang);

                    // Create a CultureInfo array that represents the available languages.
                    System.Globalization.CultureInfo[] cultures =
                        new System.Globalization.CultureInfo[resLang.RetrieveProvisionedLanguages.Length];

                    for (int i = 0; i < resLang.RetrieveProvisionedLanguages.Length; i++)
                    {
                        cultures[i] = System.Globalization.CultureInfo.GetCultureInfo(resLang.RetrieveProvisionedLanguages[i]);
                    }


If you are looking for Globalization / Localization in Custom Web Application, have a look at

http://faisalmb.com/blog/post/2009/08/21/CRM-Globalization-Localization-in-Custom-Web-Application.aspx

 

 

 


Add Comment Add comment

 
 
 
   Country flag

Click to change image  --> 

biuquote
  • Comment
  • Preview
Loading





Intro

Faisal Bashir
Consultant / Software Architect
KalSoft Limited Dubai
Microsoft Certified Technology Specialist.
[more]

Right Now

How could u reach the pearl by only looking at the sea? if u seek the pearl, be a diver: the diver needs several qualities, he must trust his rope and his life to the Friend's hand, he must stop breating and he must jump - Jalaluddin Rumi.

Random Visuals

logo microsoft
logo microsoft

Show Next Visual

Recent Comments

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

The world and all things in it are valuable; but the most valuable thing in the world is a virtuous woman (Muhammad - sallallaho alaihi wassallam - peace be upon him)
723860 hits. (Best viewed @ 1024x768 resolution min.) Comments here...
© 2001-2012 Muhammad Faisal | Disclaimer | Contact | Partner Site