Service Now Integration with On Premise Web Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2016 12:20 PM
Hi All,
I am new to Service Now. We have requirement to integrate Service Now with On Premise web application. We need to show the web application in an IFRAME that will call few web services of SN. Any idea, what general configurations need to be done at SN and in our network to achieve this. What are the things we need to take care in designing the solution?
Thanks,
Ashwani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2016 12:28 PM
Where will you show your web application in an IFrame ? Inside ServiceNow or in another application?
Apart from that, to call ServiceNow REST web-services, to get data from different tables, you can table API. Consuming Table API is easy and straight forward. Apart from calling URL with corresponding parameters, you need to pass only
1. Header parameter "Accept" as "Application/JSON"
2. Pass authentication credentials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2016 09:42 PM
Thanks Ram. We need to show our web application inside ServiceNow. We need to call webservices to store some Link KB Article data in ServiceNow table. Our Web Apps is Knowledge Management Solution and client wants to use that instead of ServiceNow KMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2016 10:05 PM
Hi Ashwani,
It depends on how you wants to show, "as it is" or only "some part of your application data".
Only related data:
If you wants to show only data from your application in ServiceNow, you need to use REST API of your application. If you don't have API/Web Services, you need to create in your application. Once API/Web services are ready, You can create UI pages in ServiceNow, from those UI pages, you can make REST API calls to your application API and get the data and display it in ServiceNow.
AS IT IS:
If you wants to show your application as it is in ServiceNow, you can use IFrame kind of approach. Here is an example previously we implemented in an UI page. This page makes a POST call to our website, get the response and display it in SNOW page.
In an UI page, we placed the following function. This function will make a POST call to our website URL and pass the appropriate parameters and get the data and display it in this page. For privacy purpose, I replaced the URL name and parameters we are passing.
There are 2 requirements for this solution is:
1. You need to have your website in "https".
2. your website should allow script requests from different origin as well.
<script> | |
post("https://www.cricinfo.com",""); | |
function post(URL, PARAMS) { |
var temp=document.createElement("form");
temp.action=URL;
temp.method="GET";
temp.target="_self";
temp.style.display="none";
for(var x in PARAMS) {
var opt=document.createElement("textarea");
opt.name=x;
opt.value=PARAMS[x];
temp.appendChild(opt);
}
document.body.appendChild(temp);
temp.submit();
return temp;
} | |
</script> |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 01:08 PM
Yes, we need to show as it is in ServiceNow in an IFRAME. Our Web application is running on Intranet and not exposed currently to outer world.Can you think any other configurations/settings we need to do in our web application other than exposing on internet, HTTPS and allowing script requests from different origin .