Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Solutions to call external web services from server-side, initiated by Javascript in Webresources

Posted on by 170

I have a web resource which aims to display data received from external sources. As we all well know the cross domain restrictions not allowing us to call the web service from Ajax directly from the web resource, how can encapsulate the web service call to be executed on the server side and called from JS in the web resource ? 

A plugin ? An action ? 

What would be the best suited solution ? 

Thanks in advance ! 

*This post is locked for comments

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Solutions to call external web services from server-side, initiated by Javascript in Webresources

    an action can be a solution to your case. you encapsulate the logic of the call to the external webservice inside the action and you call the action from JS

    you can use this library for the JS part

    github.com/.../processjs

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