locked
Integrating with Dynamics CRM RRS feed

  • Question

  • I have a web-based application in which I need to display the accounts and contacts from Microsoft dynamics CRM. I want to know is it possible to do the same using REST API. My web-based application is in Java,and I want to do this in Java. Could anyone please help me out regarding the same with proper links/sample code for the same. 
    Tuesday, April 14, 2015 11:13 AM

Answers

  • Sorry, I don't know anything about Java, just JavaScript in CRM.  Maybe you can have it generate some JavaScript and use that as the basis to convert it to Java?  I did a quick Bing search on "crm connect to rest from java" and got some results you can research?

    https://code.msdn.microsoft.com/Consuming-CRM-REST-Service-ae24a15e

    Good Luck, and if you get it working you should post your final code here for future use by other Java developers.
    Tuesday, April 14, 2015 5:06 PM
  • Yes, this can be done.  I would recommend that you install this tool

    http://www.infinite-x.net/2014/10/13/new-tool-for-dynamics-crm-developers-crm-rest-builder/

    It will help you to build out the REST query and all the required fields, and it will even generate sample code for you to then mimic in Java.

    Good Luck, hope this helps!

    • Proposed as answer by Chris_Harrington Tuesday, April 14, 2015 1:53 PM
    • Marked as answer by rahul18187 Tuesday, April 14, 2015 4:13 PM
    Tuesday, April 14, 2015 1:53 PM

All replies

  • Yes, this can be done.  I would recommend that you install this tool

    http://www.infinite-x.net/2014/10/13/new-tool-for-dynamics-crm-developers-crm-rest-builder/

    It will help you to build out the REST query and all the required fields, and it will even generate sample code for you to then mimic in Java.

    Good Luck, hope this helps!

    • Proposed as answer by Chris_Harrington Tuesday, April 14, 2015 1:53 PM
    • Marked as answer by rahul18187 Tuesday, April 14, 2015 4:13 PM
    Tuesday, April 14, 2015 1:53 PM
  • Yes, this can be done.  I would recommend that you install this tool

    http://www.infinite-x.net/2014/10/13/new-tool-for-dynamics-crm-developers-crm-rest-builder/

    It will help you to build out the REST query and all the required fields, and it will even generate sample code for you to then mimic in Java.

    Good Luck, hope this helps!

    @Chris_Harrington I am not able to find any .exe file in the above given link. Also,tell me do I need visual studio to use the above tool. I also have problem with authentication mechanism. I really don't understand how to authenticate(generate access token etc) can you please explain it?
    Tuesday, April 14, 2015 3:30 PM
  • Yes, this can be done.  I would recommend that you install this tool

    http://www.infinite-x.net/2014/10/13/new-tool-for-dynamics-crm-developers-crm-rest-builder/

    It will help you to build out the REST query and all the required fields, and it will even generate sample code for you to then mimic in Java.

    Good Luck, hope this helps!

    @Chris_Harrington I am not able to find any .exe file in the above given link. Also,tell me do I need visual studio to use the above tool. I also have problem with authentication mechanism. I really don't understand how to authenticate(generate access token etc) can you please explain it?

    yeah installed the tool,and tried querying. It works. Can you please tell me how to use the REST query in java. Also can you please tell me how should I authenticate from my web application to active dynamics crm. I don't know the mechanism to generate the access token. Please help me

    Tuesday, April 14, 2015 4:18 PM
  • Sorry, I don't know anything about Java, just JavaScript in CRM.  Maybe you can have it generate some JavaScript and use that as the basis to convert it to Java?  I did a quick Bing search on "crm connect to rest from java" and got some results you can research?

    https://code.msdn.microsoft.com/Consuming-CRM-REST-Service-ae24a15e

    Good Luck, and if you get it working you should post your final code here for future use by other Java developers.
    Tuesday, April 14, 2015 5:06 PM
  • Sorry, I don't know anything about Java, just JavaScript in CRM.  Maybe you can have it generate some JavaScript and use that as the basis to convert it to Java?  I did a quick Bing search on "crm connect to rest from java" and got some results you can research?

    https://code.msdn.microsoft.com/Consuming-CRM-REST-Service-ae24a15e

    Good Luck, and if you get it working you should post your final code here for future use by other Java developers.
    okay I have seen the above link,I will definitely post my final code,once I complete,but I just tried the above link and I am not able to find a class mentioned in the code. It shows me some error. Whom should I ask regarding this or where should  I post a question regarding this? I also wanted to know again,if it is possible to access dynamics crm from a third-party application I tried hard,but not able to connect my third party application with dynamics crm
    Wednesday, April 15, 2015 6:23 AM