Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:27:27+00:00 2026-06-02T16:27:27+00:00

I developed a Custom application that is able to consume the CRM Web services

  • 0

I developed a Custom application that is able to consume the CRM Web services and perform Windows Live Id authentication, create, read and update operation in the CRM from the custom .NET page.I am able to retrieve data from the Accounts from the CRM using the following code:

 public ArrayList GetAccounts(Microsoft.Crm.Sdk.Samples.ServerConnection.Configuration serverconfig)
    {
        try
        {
            using (_serviceProxy = Microsoft.Crm.Sdk.Samples.ServerConnection.GetOrganizationProxy(serverconfig))
            {
                _serviceProxy.EnableProxyTypes();
                _service = (IOrganizationService)_serviceProxy;
                ServiceContext svcContext = new ServiceContext(_service);


                                var accounts = from a in svcContext.AccountSet
                               select new Account
                               {
                                   Name = a.Name,
                                   EMailAddress1 = a.EMailAddress1,
                                   Address1_City = a.Address1_City,
                                   Address1_Country = a.Address1_Country,
                                   Address1_Latitude = a.Address1_Latitude,
                                   Address1_Longitude = a.Address1_Longitude,
                                   AccountId=a.AccountId
                               };

                foreach (var a in accounts)
                {
                    en_names.Add(a.Name);
                    lat.Add(a.Address1_Latitude);
                    lon.Add(a.Address1_Longitude);
                    info1.Add(a.EMailAddress1);
                    info2.Add(a.Address1_City);
                    info3.Add(a.Address1_Country);
                    id.Add(a.AccountId);
                }
                en_det.Add(en_names);
                en_det.Add(lat);
                en_det.Add(lon);
                en_det.Add(info1);
               en_det.Add(info2);
                en_det.Add(info3);
                en_det.Add(id);


             return en_det;
            }
        }
        catch (FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault>)
        {
            throw;
        }
    }

Similarly, I want to retrieve data from a custom entity created by me in the CRM online,But I am unable to find a way to do that.

Can anyone please help me with it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:27:28+00:00Added an answer on June 2, 2026 at 4:27 pm

    Use Early bound entities. You should generate classes and include in your project. Than you will be able to work with your custom entities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed a Custom application that is able to consume the CRM Web services
I developed a Custom application that is able to consume the CRM Web services
I have developed a custom target, that needs to run only if the compilation
I have a WPF Keyboard Application, it is developed in such a way that
I have a web application that needs to be built using PHP/MySQL. The application
I have customer that uses older, custom built ERP application for which they don't
As part of the team developing a custom application framework that will be given
We have been using a web application framework to build apps that need to
We have an application that was built for the Windows Mobile and Windows platforms,
I have an large application developed in .Net Compact Framework 1.0 that has been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.