5 Replies Latest reply on Oct 24, 2016 8:38 AM by AlasdairRobertson

    Evaluating Subexpressions

    stapletj@tbh.net Apprentice

      Scenario - I want to access the owner email address of an Incident from the Journal.Notes object.


      My internal logic says that this should work:

      $([^Incident# where IncidentNumber == $(ParentNumber)]Email))


      It translates $(ParentNumber), but changes the rest into a string literal. It returns this instead of the Incident Number:

      $([^Incident# where IncidentNumber == "6067"]Email)


      If I change the line to:

      $([^Incident# where IncidentNumber == 6067]Email), it returns the email address.


      How can I have it properly evaluate the $(ParentNumber) within the main expression?