Not able to getSession Param in Alert Task


(Tabish Khan) #1

Hi Team,
I have create a alert task which need a parameter from the the current task in alert task.
I have added the parameter in the follow as
BotUserSession.put(“BaseCurrency”,“6”,15);

Then in alert task i have created parameter
image
image
image

I have even tried parameter value from session as add new session variable.
image

Than in pre processor as type custom
var fields= {};
var pathFields = {};
var baseCurrency =_initialState.fields.pathFields.BaseCurrency;//BotUserSession.get(‘BaseCurreny’);
if(!baseCurrency){
baseCurrency = “5”;
}
pathFields.BaseCurrency = baseCurrency;

fields.pathFields = pathFields;
var finalObject = {};
finalObject.fields = fields;
print(JSON.stringify(finalObject));

Next Have added API which uses BaseCurrency in parameter but i am not able to get the parameter
image


archived #2

unarchived #3