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
  • 0
    Certified Lead Developer
    in reply to Klaus34

    What is giving which error?

    Did you try to change your code from

    rule!OIT_getTransactionDetails(
      issueTransitions:pv!issueTransitions.result,
      appianIssueStatus:ri!status
    )
    
    to
    
    rule!OIT_getTransactionDetails(
      issueTransitions:pv!issueTransitions,
      appianIssueStatus:ri!status
    )
    

    When you execute this code in a script task, where is ri!status coming from?

    I suggest to go back to the beginning, do one step at a time and test&validate each step.

Children