logo

NJP

Calculate and set total price of selected items in Service Catalog.

Import · May 23, 2022 · article

Scenario: There are two tables Books and Bookstore. Bookstore contains Store Name, Owner, Location and reference to Books table for Available books.

We need to calculate & update the total price of selected book's and that should reflect in Service Catalog in real time. So as the books are selected or removed the Total Price changes accordingly in Service Catalog.

1] Books Table:

image

2] Bookstore Table:

image

3] Service Catalog:

image

4] Client Script:

image

5] Script Include:

image

Regards,

Ritesh Swarnakar

View original source

https://www.servicenow.com/community/itsm-articles/calculate-and-set-total-price-of-selected-items-in-service/ta-p/2306455