I have a csv file with mail addresses and appendicies and I want to run a script over the file for each row:
- it shall create for each row a new Ticket for a certain queue
- it shall send and email to the recipient attaching the files mentioned in the row
My question is not concerning the script but I need two tasks in Znuny:
1. automatically create ticket via API
2. automatically send mails via API
Is there anything I can build upon? I am quite sure that I am not the first person thinking about this.
Thanks in advance
Znuny automated ticket creation and email sending
-
- Administrator
- Posts: 4250
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Znuny automated ticket creation and email sending
Hi,
You can do this in one step, if you use the right article/sender then you can send the ticket within ticket creation. Like creating an email ticket.
- Roy
You can do this in one step, if you use the right article/sender then you can send the ticket within ticket creation. Like creating an email ticket.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 5
- Joined: 18 Apr 2024, 14:03
- Znuny Version: LTS 6.5.8
- Real Name: Fabina Bahlmann
- Company: UOS
Re: Znuny automated ticket creation and email sending
Hi,
great. Can you give me a hint maybe?
Thank you
f
great. Can you give me a hint maybe?
Thank you
f
-
- Znuny superhero
- Posts: 914
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Znuny automated ticket creation and email sending
Hey,
Here you can find the parameters for ticket and article creation: Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm
Setting “ArticleSend” to 1 will send your article/mail to the recipient – including all the attachments.
A brief overview of the options can be found here (even if that's a different module).
— Emin
Here you can find the parameters for ticket and article creation: Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm
Setting “ArticleSend” to 1 will send your article/mail to the recipient – including all the attachments.
A brief overview of the options can be found here (even if that's a different module).
— Emin
Professional Znuny and OTRS services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
-
- Znuny newbie
- Posts: 5
- Joined: 18 Apr 2024, 14:03
- Znuny Version: LTS 6.5.8
- Real Name: Fabina Bahlmann
- Company: UOS
Re: Znuny automated ticket creation and email sending
Thank you.
I am getting a fundamental error when trying to start a script. My script lies in otrs/myscripts
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use lib '/opt/otrs/';
use lib '/opt/otrs/Kernel/cpan-lib';
use lib '/opt/otrs/Custom';
use Kernel::GenericInterface::Debugger;
use Kernel::GenericInterface::Operation;
my $DebuggerObject = Kernel::GenericInterface::Debugger->new(
DebuggerConfig => {
DebugThreshold => 'debug',
TestMode => 0, # optional, in testing mode the data will not be written to the DB
# ...
},
WebserviceID => 12,
CommunicationType => 'Provider', # Requester or Provider
RemoteIP => 192.168.1.1, # optional
);
my $OperationObject = Kernel::GenericInterface::Operation->new(
DebuggerObject => $DebuggerObject,
Operation => 'TicketCreate', # the name of the operation in the web service
OperationType => 'Ticket::TicketCreate', # the local operation backend to use
WebserviceID => 12, # ID of the currently used web service
);
The error message is: Can't call method "Create" on an undefined value at /opt/otrs/Kernel/GenericInterface/Debugger.pm line 132.
This line is my $CurrentTime = $Kernel::OM->Create('Kernel::System::DateTime')->ToEpoch();
I am getting a fundamental error when trying to start a script. My script lies in otrs/myscripts
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use lib '/opt/otrs/';
use lib '/opt/otrs/Kernel/cpan-lib';
use lib '/opt/otrs/Custom';
use Kernel::GenericInterface::Debugger;
use Kernel::GenericInterface::Operation;
my $DebuggerObject = Kernel::GenericInterface::Debugger->new(
DebuggerConfig => {
DebugThreshold => 'debug',
TestMode => 0, # optional, in testing mode the data will not be written to the DB
# ...
},
WebserviceID => 12,
CommunicationType => 'Provider', # Requester or Provider
RemoteIP => 192.168.1.1, # optional
);
my $OperationObject = Kernel::GenericInterface::Operation->new(
DebuggerObject => $DebuggerObject,
Operation => 'TicketCreate', # the name of the operation in the web service
OperationType => 'Ticket::TicketCreate', # the local operation backend to use
WebserviceID => 12, # ID of the currently used web service
);
The error message is: Can't call method "Create" on an undefined value at /opt/otrs/Kernel/GenericInterface/Debugger.pm line 132.
This line is my $CurrentTime = $Kernel::OM->Create('Kernel::System::DateTime')->ToEpoch();