- Print
- DarkLight
Define Task to change session values
Article summary
Did you find this summary helpful?
Thank you for your feedback!
Define Task to change session values
With a task you can change session values via a command, like changing the Company value to value "100". You can change multiple values with one single command if that is wanted.
You do this by creating a task and configure it via type "System" and define a command that starts with "changeSession;" complemented with field and value, possible separated via semi colon, like below where the fields CONO and DIVI (Company and Division) are set:
Type: System
Script: changeSession;CONO=1;DIVI=001
See source example below how to change CONO to value "1" and DIVI to value "001":

The source then looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<Task id="CMP_001_001" type="system" version="1">
<Properties>
<Property name="command" value="changeSession;CONO=1;DIVI=001"/>
</Properties>
<Description>
<Language id="sv_se" text="Company 001/001 - Produktion"/>
<Language id="en_us" text="Company 001/001 - Production"/>
</Description>
</Task>
Was this article helpful?