Posts Tagged ‘code’

CRM 4: IFD Authentication using C#

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”))
{
[...]

Comments (123)

Show no. of open or closed activities (history) on the CRM form.

Hello all,
Have you ever wanted to see the total no. of outstanding/completed activities on a Case, Account, Opportunity, Contact etc..?  

Well now you can, simply add the following JavaScript code to the onLoad event of the entity, it will query the webservice and it will give you the exact count of open/closed activities.
Update: 9th March 2010 [...]

Comments (7)

JavaScript Web Service Call

Firstly i’d like to thank Michael Höhne for his great application that converts your c# code to Javascript. Basically you input your c# code and it sends a soap request and gets a reply and converts the request to Javascript so you can do it in realtime and not by a plug-in.

First grab the application [...]

Leave a Comment

Welcome to MSCRMBlog.net

Hi Guys,
Welcome to my new Blog. My name is Ibrahim Sukari (refer to the About Me page for more info), i am a CRM developer. The company i work for is called RightServ. We have done quiet a few CRM deployments with hefty customizations. I basically created this blog to give back to the community that [...]

Comments (1)