Answered question

How to use clearRuntimeVariables()?

Hi,

I need some help to clear down all the runtime variables for a logged in user. I've seen in the documentation that the method clearRuntimeVariables() can be used for this. Are you able to provide details or an examples of how to implement that?

Ajaz Z.
Ajaz Z.

Ajaz Z.

Level
0
23 / 100
points
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

I'm sorry my copy/paste was not the good one. This is what you should use:

context.currentVU.clearRuntimeVariables();

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful

Other answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

You just have to create a Javascript action in your user path and write down that method like this:

clearRuntimeVariables();

Have you already tried it?

Ajaz Z.
Ajaz Z.

Ajaz Z.

Level
0
23 / 100
points

Hi Nouredine,

I already tried that but get a Get a JS-ERROR EVAL response code.

ReferenceError:"clearRuntimeVariables" is not defined. (Script=clearRuntimeVariables;Line=1)

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

context.currentVU.clearRuntimeVariables();
context.currentVU.closeConnections();