Answered by:
Integrating with Dynamics CRM

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.- Edited by Chris_Harrington Tuesday, April 14, 2015 5:07 PM
- Marked as answer by rahul18187 Wednesday, April 15, 2015 10:45 AM
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!
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.- Edited by Chris_Harrington Tuesday, April 14, 2015 5:07 PM
- Marked as answer by rahul18187 Wednesday, April 15, 2015 10:45 AM
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.Wednesday, April 15, 2015 6:23 AM