Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Is it possible to send http type requests from crm

Posted on by 676

Hi,

I am trying to call an external API from within Dynamics CRM to retrieve data from external system. But it gets blocked as the API is hosted over http. It says it requires https type request. I tried using XMLHttpRequest. Does the API needs to be hosted over https to successfully get data from external systems using JavaScript?  

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to send http type requests from crm

    I found this thread before.

  • Suggested answer
    ram r Profile Picture
    ram r on at
    RE: Is it possible to send http type requests from crm

    Http/Https both should work fine.

    If its a get request, datatype jsonp in ajax should solve cross origin issues.

    If its a post request then you may need to make sure that your api supports cross origin calls, please refer below blog to configure the same,

    https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Is it possible to send http type requests from crm

    Also, there are a few options for CRM - have a look at what Scott Durow replied here:

    community.dynamics.com/.../155664

  • joman Profile Picture
    joman 617 on at
    RE: Is it possible to send http type requests from crm

    You can sent your request to any site, but there is one problem:

    All requests (except simple requests) to other sites browsers marks as cross domain requests, so, response server need to send an information, that this request allowed.

    More info:

    www.leggetter.co.uk/.../making-cross-domain-javascript-requests-using-xmlhttprequest-or-xdomainrequest.html

    Better google it (I know good description, but it's on Russian)

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans