How to trigger web services in SNOW...??

basantsoni
Kilo Guru

Hi Friends,

As we know we can consume external web services in service now by outbound web services in REST or SOAP, but how to trigger outbound web services in services?

Example, When I'll perform any action on incidents in service now like insert/update then insert/update incidents should be happen external ITSM application.

Regards,

Basant Soni

5 REPLIES 5

JimmieOdelius
Tera Expert

Hi Basant.



I usually do this by creating a Script Include with all the logic of the integration using the SOAPMessageV2 as described here http://wiki.servicenow.com/index.php?title=SOAPMessageV2_API



Then I create a business rule, for instance a BR to trigger on an update to an incident which triggers the update method of my script include doing the SOAP magic.


Hi, Thanks for your valuable reply.


I'm trying to Integrate Service Now with BMC Remedy for Incidents where Remedy application is publishing SOAP Web Services for IM that Service Now can use to create an incident into Remedy from SNOW.


Whenever incidents will be insert/update in SNOW one incident should inserted/updated at remedy end. We can consume remedy web services in outbound web services.


But, how that web services can trigger when we'll perform an action from snow end and how fields/columns mapping should be done? i.e. how data can be pass from snow incident to remedy incidents?



And, please let me know how can be write a BR to call a web services?



Regards,


Basant Soni


I haven't worked with BMC Remedy and can't answer how it will work on that side.


For receiving updates in servicenow it seems to be commonplace to have a staging table to store all transactions and from there run transform map to create and update incidents in servicenow. If you use this method you can simply use the table api to insert records on the staging table. See documentation http://wiki.servicenow.com/index.php?title=Table_API#gsc.tab=0 You can also use this method to insert records immediately to the incident table.


You can also put up a scripted SOAP web service to write either directly to the incident table or to the staging table.


See documentation here: http://wiki.servicenow.com/index.php?title=Scripted_Web_Services#gsc.tab=0



This can be done for outbound transactions as well if you have a business rule write records to the staging table and then have the SOAP API run in a scheduled job to process all outbound records in the staging table.


Unfortunately I'm unable to provide examples at this time.


nayanawadhiya1
Kilo Sage

Hey Basant,



Through Business rule you can trigger Web Services -


On BR you have to web service code which you will get from PREVIEW SCRIPT USAGE


find_real_file.png