Define Task to change session values
  • 11 Dec 2025
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Define Task to change session values

  • Dark
    Light

Article summary

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?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.