Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Create incident in target Integrations

ServiceNow Use6
Tera Guru

Hi,

I created rest message and created end point and http methods, but the incident is not getting created in the target. Kindly help.

 

1.jpg

 

2.jpg

 

3.jpg

 

4.jpg

 

{
"caller_id":"${caller}",
"short_description":"${sd}",
"description":"${desc}",
"contact_type":"${ct}"
}

 

5.jpg

 

6.jpg

 

(function executeRule(current, previous /*null when async*/) {

	gs.log('Business Rule is running');

	var rest = sn_ws.RESTMessageV2('dev199583Instance', 'dev199583Outbound');
	rest.setStringParameter('caller', current.caller_id);
	rest.setStringParameter('sd', current.short_description);
	rest.setStringParameter('desc', current.description);
	rest.setStringParameter('ct', current.contact_type);
	
	gs.log("Business Rule ran");

})(current, previous);

 

Regards

Suman P.

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ServiceNow Use6 

https://youtu.be/d5WYx8dc9sE

 

Have a look here.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************
ServiceNow #TechnoFuncational Disclaimer: These videos are from my training batch. These videos did not promote any ServiceNow Sales pitch or marketing. These videos are only for knowledge purposes & basic on my experience & Knowledge. Redistribution or copying of functionality is not allowed! ...