Skip to main content

Scripting: If currentValues[] is a Map, why does .values() give me an error?



  • Tiffanie Staver
    Witte commented  ·  

    Hello Nathan,

    It can be difficult to fully answer app script questions over Community Forum posts, as we need more information related to your specific use case to fully understand the circumstances surrounding your script. However, do keep in mind that currentValues[‘fieldOrRelationship’] only returns a map if the ‘ fieldOrRelationship’ is a relationship. Otherwise, it returns a type appropriate to the field type: Single Line -> String, Number -> Double, Checkbox -> List, etc.

    Depending on the type of fields you are attempting to reference, it is also worth noting that calculated fields cannot be referenced in app scripts.

    Please feel free to give our Support Team a call at 800-673-3302 at your convenience. If you can walk us through what you are attempting to accomplish we can probably provide more details on where you should go next.



  • Tiffanie Staver
    Nathan Waterman commented  ·  

    I don't have a specific thing that I am trying to attempt. Rather I am trying to get to grips with limitations of Groovy in the context of table scripts. Stuff I can get to work in Groovy console does not work when applied to TrackVia.


Please sign in to leave a comment.

Powered by Zendesk