web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Service forum

Custom HTML Page to show records from external application

(0) ShareShare
ReportReport
Posted on by 180

Hello,

I would like to implement a feature where i will host a custom html page within dynamics 365 online, and fetch the records from external application based on the search criteria given in the custom html page. i'm thinking of below option:

Option-1) Create a custom html page, add it in sitemap as a sub-area. Call a custom action from javascript and that custom action in turn will call a plugin, plugin would then invoke the external web service. any other better approaches?

Categories:
  • Suggested answer
    Ben Thompson Profile Picture
    6,350 on at

    I don't see where either the custom html page or the plugins come from - you would either have an iframe which calls an external webpage or in olden days have an empty entity and a plugin that returned a set of fake results to display.

    Assuming you are on version 9 the recommended approach provided the external data source doesn't have complex security requirements would be to use a virtual entity. See docs.microsoft.com/.../create-edit-virtual-entities

  • CRMISKEY Profile Picture
    180 on at

    Hey Ben,

    So search, retrieve the records from external app and display within dynamics is one part. other part is that user can edit some of those details and should be able to send the updates back. Fact that virtual entities are read only, i don't think it would help in this scenario. thanks!

  • Suggested answer
    Ben Thompson Profile Picture
    6,350 on at

    You never mentioned any need to update the displayed data in your initial question / post. 

    If users need to update the record you really need to work out how fresh the data needs to be (realtime or is an overnight sync practical), which system is the master / owner of the data source and whether the data needs to look like Dynamics 365/ CRM data (i.e. uses the standard Dynamics 365 form) or whether a different layout is acceptable.

    Once you start updating external systems what was previously a fairly simple piece of work becomes infinitely more complex (the questions above are simply my starting point in scaring the requirements away). That's not to say it's unachieveable but its going to be complex and it's more than just javascript calls x, which calls a plugin as the plugin won't be in a position to return the data...

    It's more likely to be something like plugin on retrievemultiple queries external system and transforms the results into a set of (temporary) records inside CRM. A separate plugin on update then sends the update via a  webapi request to the original datasource. You then move on to how do you check that the original record wasn't updated between retrieving the original record and the user updating it.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans