How set option “Send To” from OTRS API on method TickedCreate

English! place to talk about development, programming and coding
Post Reply
komarov
Znuny newbie
Posts: 2
Joined: 25 Jul 2016, 17:04
Znuny Version: 5 Free
Real Name: Leo Komarov
Location: Russia
Contact:

How set option “Send To” from OTRS API on method TickedCreate

Post by komarov »

I want create ticket in OTRS system from my own web service and for this goal I use OTRS API ( http://otrs.github.io/doc/api/otrs/stab ... te.pm.html ). Work fine, but I want send email to a specific users.

This my current options for request:

Code: Select all

$options = [
        "Ticket" => [
            "Title" => "Title",
            "Queue" => "PT",
            "State" => "open",
            "Type" => 'Unclassified',
            "Priority" => "3 normal",
            "Owner" => 'admin@gmail.ru',
            // I think this options set getter email, but NO
            'CustomerUser' => 'specific_user@gmail.com',
        ],
        "Article" => [
            "SenderType" => 'agent',
            "ArticleType" => "email-external",
            "Subject" => "Subject Article",
            "Body" => "Body Article",
            "ContentType" => "text/plain; charset=utf8",
            "From" => 'admin@gmail.ru'  // from whom message
        ]
    ];
This screen after created ticked OTRS ( https://nimbus.everhelper.me/client/not ... kv6n41bi7c )
Any idea what I can change in my $options.
Post Reply