How to display data like device details, ip address..in our portal from the 3rd party through API in

nivethika
Tera Contributor

Hi Team, 

 

I am trying to implement this - When the user clicks on Device name mentioned in the portal, he/she should get all the details of that device from the 3rd party to our portal through api. how to implement. 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@nivethika 

I assume you have the endpoint of that 3rd party and authentication details, simply create onChange client script and use GlideAjax and send the device name

Within GlideAjax you can use RESTMessage or SOAPMessage call and get the details, return the details to the client side and then display

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar thank you for quick response.

 

I would like to know how to show device details in sp portal through API ?

I assume you have the endpoint of that 3rd party --- Yes, we have 3rd party API 

@nivethika 

I already shared the steps regarding client script, script include, GlideAjax

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Shivalika
Mega Sage

Hello @nivethika 

 

Get on portal like where ? On a catalog form right ? 

 

Then yes, we can do this by calling Rest message function within the script include and just returning response to populate on a field in form. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY