Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 12704

Re: Incidents deduction for a contract

$
0
0

Im not sure this is EXACTLY what you're asking for but I've gotten similar functionality by making sure that there first was...

1. A one-to-one relationship setup between Incident and Contract

2. An action created to update related Contract on Incident.

 

Create the above mentioned action on the Contract object and call it  "Update Contract Tickets Left"

Create a Tickets Left attribute as an int16 created on Contract.

Make sure the Tickets Left attribute is on the Contract window.

Create an New Contract Ticket Total attribute on Incident and make it Int16 and a calculation.

 

The calc should point to the related Contacts ticket total left MINUS 1, so along the lines of

import System

GetAttributeValue(Incident):

Value = Incident.Contract._TicketsLeft - 1

return Value

 

Then, in your process when the Incident is created.  Put an automatic action in the beginning of the incident process...or the end, wherever you want really.  The automatic action should be the "Update Contract Tickets Left", and when the window comes up.

 

Right click in the Tickets Left attribute and value type this to the calculated New Contract Ticket Total attribute on Incident.

 

This is how I've added up ticket totals by customer groups in the past.  The key for me was getting an object that I had the option to "Update Related"

 

hth


Viewing all articles
Browse latest Browse all 12704

Trending Articles