Pushing events through MID server

balakrishnanrs
Tera Contributor

Our application is planning to send events in JSON format to servicenow though MID server

Can we use the below URL end point alone?. Does any script setup required at servicenow end to push the events in this case.?

http://{MID_Server_IP}:{MID_Web_Server_Port}/api/mid/em/jsonv2

 

What is the difference between the above URL and below if we are sending event messages only in JSON format.

http://{MID_Server_IP}:{MID_Web_Server_Port}/api/mid/em/inbound_event?Transform={Transform_script_name}

 

 

Does a transform script required in all cases or only if we send events in format other than JSON?

 

How does a sample transform script look like if  even in case of events being sent in JSON format?

 

 

2 REPLIES 2

sparkshobit
Tera Expert

1. I am using this url to push alerts to ITOM 

 

http://{MID_Server_IP}:{MID_Web_Server_Port}/api/mid/em/inbound_event?Transform={Transform_script_name}

 

2. Yes transform would be needed to map your json  keys with em table

 

3. Transform scripts are available under Mid Server ---> Script Includes

OOB script for JSON is TransformEvents_MidJsonGeneric

 

that was helpful but when i run this url in postman i get this error 

shiraa_0-1739796779347.png

 

and in the instace another error 

shiraa_1-1739796833732.png

 

any ideas?