Invalid index: Cannot index property 'result' of type Text into type HttpResponse

I am using trying to pass httpResponse.result in one of the expression rule .. in script task 

rule!OIT_getTransactionDetails(

httpResponse:ri!httpResponse.result,

activeStatus:ri!status

)

But it returns Error like Invalid index: Cannot index property 'result' of type Text into type HttpResponse.

I know its casting issue , tried with index function also but it returns null then .. not the  values which  i want to retrieve

  Discussion posts and replies are publicly visible

Parents Reply
  • a!localVariables(
      local!IssueStatus: index(
        ri!issueTransitions,
        "body",
        "transitions",
        "name",
        {}
      ),
      local!IssueIDs: index(
        ri!issueTransitions,
        "body",
        "transitions",
        "id",
        {}
      ),
      displayvalue(
        ri!appianIssueStatus,
        local!IssueStatus,
        local!IssueIDs,
        {}
      )
    )

    Where ri!IssueTransitions is of type Anytype in expression rule .. But in process model  i am fetching the data from integration.. so made this as type HTTPresponse... 

    so i am calling the above code as expression in one of script task 

    rule!OIT_getTransactionDetails(

    issueTransitions:pv!issueTransitions.result,

     appianIssueStatus:ri!status

    )

    appianIssueStatus is just of text type

     .. but it doesn't give me desired outpu

Children