Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aleksejs Kanarciks 10 posts 80 karma points
    Aug 29, 2019 @ 12:22
    Aleksejs Kanarciks
    0

    Hold and display JSON data from API

    While there a lot of topics regarding how to export Umbraco data using JSON and REST API, I wonder is there any option to import data into TempData -> play around with this data -> hold it in razor/macros and pass it to a page where should be displayed as HTML? I'm pretty sure that it might be solved with controller and newtosoft but have no idea from where to start. Maybe someone has a solution or correct article since google rejects show me what I'm asking for and throws out only how to export data instead of import?

    Mange tak.

  • Amir Khan 1289 posts 2746 karma points
    Aug 29, 2019 @ 12:28
    Amir Khan
    101

    This will show you how to import external JSON data, but the principles are the same except you probably don't want to actually create the pages: https://skrift.io/articles/archive/importing-external-data-as-content-in-umbraco/

    Does this help?

  • Aleksejs Kanarciks 10 posts 80 karma points
    Aug 29, 2019 @ 12:35
    Aleksejs Kanarciks
    0

    No, I'm not planning to create a page. Basically idea is to import data from the company database (using API) and base of all information from db, display KPI ( how much employees are working in company, average age and etc. ).

    Thank you, will take a look, sounds like something good.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies