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

Re: Adding a resolution date to a query

$
0
0

Maybe something like this would work?  This is looking through all resolutions in the collection and picking out the latest one.  I have seen the .Latest() act a little weird sometimes so maybe looping through first will help.

 

import System

static def GetAttributeValue(Request):

     Value = ""

     for resolutions in Request.Resolutions:

          if resolutions != null:

               Value = resolutions.Latest().CreationDate.ToString()

 

    return Value


Viewing all articles
Browse latest Browse all 11624

Trending Articles



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