Define Task to change session values
  • 26 Apr 2024
  • 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 tsk you can change session values with a command, like changing the Company value to value "100". You can change multiple values with one single command.

You do this by creating a task and configure it via type and System, 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 hot to change CONO to value "1" and DIVI to value "001":

<?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?

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.