Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Connecting CRM WebAPI from Java

Posted on by 70

It seems that I am not alone struggling to find any good Microsoft resource/guide/article on how to consume CRM WebAPI from Java. We are using an on-premise CRM deployment and I am trying to understand if I am on the right track on this or if I am missing something.   

To start with, I am following the approach discussed in this MSDN article and this helpful post by Jason on how to connect to CRM Web Services using OAuth from any Java client. I have two questions with this approach:

1. It seems that this approach is targeted for CRM Online version since it requires the CRM application to be registered with Azure AD as a pre-requisite (which wont be the case with an on-premise solution). Any ideas on how to achieve this for an on-premise CRM?  

2. Also, this approach requires us to pass an Authority URL for the connection to be made but I am not sure where to get this URL from? I tried creating the Authority URL based on the format mentioned in this MSDN article but it doesn't seem to work. The Authority URL should look something like this: https://<serverFQDNaddress>/adfs/ls). Is there any configuration/setting change required for this?

Any help or direction would be appreciated.  

   

*This post is locked for comments

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans