init III
This commit is contained in:
31
Perl OTRS/otrs.pl
Normal file
31
Perl OTRS/otrs.pl
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use lib '/home/andre/Nextcloud/Skripte/Perl OTRS/';
|
||||
use Kernel::GenericInterface::Operation::Ticket::TicketGet;
|
||||
|
||||
my $Result = $OperationObject->Run(
|
||||
Data => {
|
||||
UserLogin => 'ArG', # UserLogin or CustomerUserLogin or SessionID is
|
||||
# required
|
||||
CustomerUserLogin => 'ArG',
|
||||
SessionID => 123,
|
||||
|
||||
Password => 'some password', # if UserLogin or customerUserLogin is sent then
|
||||
# Password is required
|
||||
TicketID => '32,33', # required, could be coma separated IDs or an Array
|
||||
DynamicFields => 0, # Optional, 0 as default. Indicate if Dynamic Fields
|
||||
# should be included or not on the ticket content.
|
||||
Extended => 1, # Optional, 0 as default
|
||||
AllArticles => 1, # Optional, 0 as default. Set as 1 will include articles
|
||||
# for tickets.
|
||||
ArticleSenderType => [ $ArticleSenderType1, $ArticleSenderType2 ], # Optional, only requested article sender types
|
||||
ArticleOrder => 'DESC', # Optional, DESC,ASC - default is ASC
|
||||
ArticleLimit => 5, # Optional
|
||||
Attachments => 1, # Optional, 0 as default. If it's set with the value 1,
|
||||
# attachments for articles will be included on ticket data
|
||||
GetAttachmentContents => 1, # Optional, 1 as default. 0|1,
|
||||
HTMLBodyAsAttachment => 1 # Optional, If enabled the HTML body version of each article
|
||||
# is added to the attachments list
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user