@marting66652718 ,
If you're having trouble using xtk.session.getValue() or xtk.include() in your JavaScript file, there are a few things you can check:
1. Ensure you have included the session.js file in your JavaScript file. You can do this by adding the following line at the top of your JavaScript file:
xtk.include("xtk:session.js");
This line tells the platform to include the session.js file in your script, which contains the xtk.session.getValue() method.
2. In Adobe Campaign Classic, JavaScript files can be run on either the client-side (in the web browser) or the server-side (on the server). The xtk.session.getValue() and xtk.include() methods are only available on the server-side, so ensure that your JavaScript file is executed server-side.
3. Check for errors in your JavaScript file. If your JavaScript file has syntax errors or other issues, it may prevent the xtk.session.getValue() or xtk.include() methods from working correctly. Check the console logs for any error messages that may be helpful.