/ServiceNowCookbook

This is the code repository for the book, ServiceNow Cookbook, published by Packt

MIT LicenseMIT

ServiceNow Cookbook

This is the code repository for ServiceNow Cookbook, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

This book will help you build data-driven apps and it will also explore development best practices. You will learn to set up email notifications for users and work with the database view for reporting. Next, the book will guide you through creating various tasks from the workflow and show you how to make the most of the workflow utilities available in ServiceNow. Finally, the book will drive you through the auditing and diagnosing aspects of ServiceNow.

Instructions and Navigation

All of the code is organized into folders. The commands and instructions will look like the following:

function onSubmit() 
{
 // get contract end date
 var con_end = g_form.getValue('u_contract_end_date');

 // get contract start date
 var sat_date = g_form.getValue('u_contract_start_date');	

 // check if contract end date is earlier than start date

 if(sat_date > con_end)
  
   {
	  // alert for user 
	  alert("Please select valid contract end date. Contract end     date cannot be in past");
	 
	  // highlight necessary field on form
	  
  g_form.flash("u_contract_end_date", "#FF0000", 10);
	  
	  // don't allow submission of form
	  return false;
   }
 }

Related products:

Suggestions and Feedback

Click here if you have any feedback or suggestions.