I am trying to fetch the Flow description in the target response policy java script.
There are list of relevant variables I have tried but they all are returning NULL
List of variables:-
current.flow.name |
current.flow.description |
apiproxy.name
Code Snippet
currentFlowDiscription = context.getVariable("current.flow.description");
currentFlowDiscription = context.getVariable("current.flow.name");
currentFlowDiscription = context.getVariable("apiproxy.name");
Ideally "currentFlowDiscription = context.getVariable("current.flow.description");" should work but for some reason its returning null,
Solved! Go to Solution.
This is working fine for me.
context.getVariable('current.flow.description');
Make sure Description is set under Flows
... <Flows> <Flow name="Test"> <Description>test desc.</Description> ...
This is working fine for me.
context.getVariable('current.flow.description');
Make sure Description is set under Flows
... <Flows> <Flow name="Test"> <Description>test desc.</Description> ...
Thank you, That worked.
Please mark as Answered on my recent comment. Thanks!
Can you please upload your sample proxy. I will take a look.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |