Skip to Content
avatar image
Former Member

SAP FIORI: How can I access data from URL which is accessed from calling API (JSON data)

Hello All,

I am new to SAP FIORI. I have to call web service having JSON Array and JSON objects. In this JSON ARRAY we have element named URL as HTML pages. We have to fetch data from these HTML pages and display that data in list. JSON as follows:We have "results" JSON array, in this we have "url" tag having MAIN URL. And from this MAIN URL we have to fetch data. This url opens an HTML page and to open this we have to use some credentials.

"d" : {
"results" : [
"__metadata" : {
"uri" : "https://some url", "type" : "data"
"url" : "MAIN URL"
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 09, 2017 at 11:01 AM


    What I understand your requirements, here is what you should do.

    Your JSON you show use can be accessed through JavaScript like this

    Var myMainURL = myJson.d.results[0].url

    With this, you can do in JavaScript :

    Window.location = myMainURL;


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Joseph for your response.

      As specified in my JSON, I need to get the data from that MAIN URL which is an HTML page. Do this line

      Window.location = myMainURL;
      will work for me.