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

(Yoga Ramya Mendu) #4

Hi @tabish13khan,

We have checked this with our engineering team.
Currently, this is an issue from our end where the “Parameter Value From Session” field value is not persisted.

This would be addressed in further release.

Regards,
Yoga Ramya.