locked
Microsoft Dynamic CRM 4.0 RRS feed

  • Question

  • Hi,

    I want to enter data into custom entity through a web application. I am using Microsoft Dynamics CRM 4.0.

    And i want to do this using web services. How can i do this ?

    Please help.


    Regards, Milan Hingu

    Thursday, March 29, 2012 9:00 AM

Answers

All replies

  • Here the steps ,

            1) Reference the CRM Webserivce in your project.

               This allow to used the CRM Request Response class in your project

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

        2) Make sure that you deploy you custom we page under ISV folder

    http://social.microsoft.com/Forums/en/crm/thread/613866e2-4134-4737-8465-da87f347dbac

       3) Put a iframe on the Entity Form , referring to your custom Page./

    hth

    dkay


     if the response answered your question, please take a minute and mark the response as an answer.

    • Marked as answer by DynamicsCRM31 Thursday, March 29, 2012 10:52 AM
    Thursday, March 29, 2012 9:18 AM
  • Hi,

    Thanks for your kind reply.

    But this is somewhat i will have to do in future, not right now ,since i am new in this one, I just want to make a web application in that i want to take a text box ,a combobox controls and by entering data into that controls i want to save those entered data into crm server using its web services.

    I have implemented your first point.


    Regards, Milan Hingu

    Thursday, March 29, 2012 9:37 AM
  • Hi Milan,

    The best way is to download CRM 2011 SDK. There you have examples to update data in entity record. Use those example in your web app. I assume you are using .NET for web app.

    If you are using .Net, then you can use the code examples in SDK as it is.

    I hope this helps.  If my response answered your question, please mark the response as an answer and also vote as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Thursday, March 29, 2012 9:45 AM
  • Hi,

    Yes ,i am using .net . But i dont want to use sdk. I want to do this using web service.


    Regards, Milan Hingu

    Thursday, March 29, 2012 9:50 AM
  • Hi Milan ,

      If this answer your question, could you mark the my post as answer.

    thanks

    Dkay

    Thursday, March 29, 2012 9:56 AM
  • Hi Milan,

    You can use web services.

    CRM 2011 sdk *.chm file can provide you with some insight into code.

    Please refer to this article:

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

    I hope this helps.  If my response answered your question, please mark the response as an answer and also vote as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Thursday, March 29, 2012 9:57 AM
  • Hi Crm_Developer;

    Your first point helps me.


    Regards, Milan Hingu

    Thursday, March 29, 2012 10:01 AM
  • hi Ashish Mahajan,

    I am using Microsoft dynamics CRM 4.0 . I dont know CRM 2011 and CRM 4.0 implementation is same or not.

    Is this so?


    Regards, Milan Hingu

    Thursday, March 29, 2012 10:03 AM
  • Hi Milan,

    Please refer to http://msdn.microsoft.com/en-us/library/cc151183.aspx

    I hope this helps.  If my response answered your question, please mark the response as an answer and also vote as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Thursday, March 29, 2012 10:06 AM
  •  Please refer to the link above for the first point ,

    it is valid for CRM 4.0

    hth

    dkay

    Thursday, March 29, 2012 10:12 AM
  • Hi Crm_Developer and Ashish,

    Thanks for your support. At last i have done by entering simple text value into crm server using c#.net application.

    Now can you help me in that if i want to use lookup ,means in one field i want to load all accounts in one drop down list and by selecting one account filling contacts of that account in another dropdown list.??


    Regards, Milan Hingu

    Thursday, March 29, 2012 10:55 AM
  • Hi Milan,

    User retrieve multiple. Have a look at this blog:

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

    The above is getting contacts based on a filter criteria. You can use the code and modify to get all accounts without filter. Then on account select get all the contacts with filter by that account.

    I hope this helps.  If my response answered your question, please mark the response as an answer and also vote as helpful.


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Thursday, March 29, 2012 11:13 AM
  • Hi,

    How to set the value of selected dropdown to the entity attribute??

    I have written following statement ,it gives error...

    ====================================================

    CRM.CrmAuthenticationToken token = new CRM.CrmAuthenticationToken();
            token.AuthenticationType = 0;
            token.OrganizationName = "****";

            CrmService service = new CrmService();
            service.Url = "http://****/MSCrmServices/2007/CrmService.asmx";
            service.CrmAuthenticationTokenValue = token;
            service.Credentials = new System.Net.NetworkCredential("****", "****", "****");

            StringProperty name = new StringProperty();
            name.Name = "new_name";
            name.Value = TxtFGProjectName.Text.ToString();

            StringProperty companyId = new StringProperty();
            companyId.Name = "new_companyid";
            companyId.Value = DdlCompany.SelectedValue.ToString().Trim();

            DynamicEntity testFg = new DynamicEntity();
            testFg.Name = "new_fgproject";

            PropertyCollection properties = new PropertyCollection();
            properties.Add(name.Name, name);
            properties.Add(companyId.Name, companyId);

            testFg.Properties = new Property[] { name, companyId };

            TargetCreateDynamic targetCreate = new TargetCreateDynamic();
            targetCreate.Entity = testFg;

            CreateRequest create = new CreateRequest();
            create.Target = targetCreate;

            try
            {
                CreateResponse created = (CreateResponse)service.Execute(create);
            }
            catch (System.Web.Services.Protocols.SoapException ex)
            {
            }

    ====================================================


    Regards, Milan Hingu

    Friday, March 30, 2012 6:09 AM