Updating records

The ServiceNow REST API has more capability than just getting data. Let's see how Angular can make changes to records and, while we are there, filter data too:

  1. Navigate to System UI > UI Page, choose New, fill out the following fields, and Save:
    • Name: updateMaintenanceTasks
    • HTML: (Insert into the provided template, on line 3)
<style> table, th , td { border: 1px solid grey; border-collapse: collapse; padding: 5px; } table td:nth-child(2), td input { width: 300px; } </style> <g:requires name="x_hotel.angular.min.1.4.12.jsdbx" /> <div ng-app="maintenance"> <div ng-controller="maintenanceController as m"> <h3>Maintenance tasks</h3> <table> <tr> <th>Number</th> <th>Short Description: $[nbsp] <input type="text" ng-model="search" ...

Get ServiceNow: Building Powerful Workflows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.