Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Need Good Approach - please Suggest : Want to call External API from Dynamics CRM except Scripting & want to capture response of API

Posted on by 240

Hi All,

I want to call External API in dynamic crm & want to bind html grid with API response.

there is limitation to call my External API using script (i mean browser security).  Is there any other way ? how can i achieve this  ?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Need Good Approach - please Suggest : Want to call External API from Dynamics CRM except Scripting & want to capture response of API

    Call a ajax call from java script

    Best Regards,

    Purushotham Boomireddy

  • Verified answer
    kiransatani Profile Picture
    kiransatani 240 on at
    RE: Need Good Approach - please Suggest : Want to call External API from Dynamics CRM except Scripting & want to capture response of API

    Create Action & build Plugin to call External API.

    call your action from JavaScript.

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Need Good Approach - please Suggest : Want to call External API from Dynamics CRM except Scripting & want to capture response of API

    Well, create 5 fields..

    Although, maybe you just need to create a "proxy" web site somewhere to host that html grid page. It might still talk to the parent web form in CRM using HTML5 postmessage, for example:

    blog.teamtreehouse.com/cross-domain-messaging-with-postmessage

  • kiransatani Profile Picture
    kiransatani 240 on at
    RE: Need Good Approach - please Suggest : Want to call External API from Dynamics CRM except Scripting & want to capture response of API

    Hi Alex,

    thanks for your reply , but response of api is more than 5,00,000+ character. so fieldis not capable to store it.

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Need Good Approach - please Suggest : Want to call External API from Dynamics CRM except Scripting & want to capture response of API

    Hi,

     you might create an on-retrieve plugin for the entity for which you want to display that grid, add a multi-line text field to the entity, and use the plugin to

    1) Retrieve required data from the external API every time somebody is about to open a record of that entity type in CRM

    2) Serialize retrieved data into a json string and add results to the field created above (you don't need to store that data in the database)

    Then you can use javascript on the "client" to parse that json

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans