The CreatorCon Call for Content is officially open! Get started here.

How can i call REST API (3rd party) from my UI page in client script or Jelly script.

randeepnath
Mega Contributor

Actually I have a dialogue window (pop up) and have a drop down in that window. I want to update this combo-box (drop down) with the data coming from REST API.

Please help me to achieve this.

7 REPLIES 7

randeepnath
Mega Contributor

Hi Rushit,



No I am not using Angular JS.. But to use Jquery should i include anything particular inside my UI page script ?



I have one more question - it will be great if you guys can answer - How can i use GlideAjax inside Jelly script in UI page


randeepnath
Mega Contributor

What i mean .. Can i use this code inside my Jelly script UI page



<g2:evaluate>


    var ga = new GlideAjax('CoursesImport');


            ga.addParam('sysparm_name','coursesimport');


            ga.getXML(CoursesImportParse);


          function CoursesImportParse(response) {


  var answer = response.responseXML.documentElement.getAttribute("answer");


      alert(answer);


  }


    </g2:evaluate>


rakesh_mishra
Giga Contributor

Hi Randeep,



Did you get the answer of above question?