Skip to main content
Known Participant
Sep 15, 2023 12:59 PM UTC
Question

How to see local variable value in Web API

Hi,

I have a web API, and inside that am calling few expression rules and storing it in Local variable.

Is there a way that i can see what value is getting stored in that local Variable.(just like we have an option in interface, expression rules.)

Eg:

From local!getDelta am getting Delta value

local!abc: rule!xyz(

getDelta:local!getDelta,

processid:index(http!request.querryParameters,"processId",{})

)

I need to check what is the value in local!abc in Web API object.

    3 replies

    shikhat
    Inspiring
    Sep 15, 2023 1:13 PM UTC

    Hi David,

    You can print the value of your local variable in http response function( in body param) and check the value getting stored in that variable.

    anmolv0003
    Participating Frequently
    Sep 17, 2023 5:52 AM UTC

    Anmol
    harshj0001
    Inspiring
    Sep 18, 2023 11:31 AM UTC

    Hey, Not the local variable, but you can the formed data in the log screen.