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

Max returning null

$
0
0

Anyone have any idea why this would not work in the process to populate the resolution text in an automatic action?

 

import System
static def GetAttributeValue(Resolution):
lastSerial = Resolution.Incident.Notes.Max("SerialNumber")
for Note in Resolution.Incident.Notes:
  if Note.SerialNumber == lastSerial:
   Value = Note.Text

return Value

 

A decision is proceeding to the resolve action if the note gets added with a particular note title.  However, in this calulation, lastSerial is always null.


Viewing all articles
Browse latest Browse all 13696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>