Hi,
i created a custom Module to execute a Script. This works fine so far.
For a test i just used the TicketID as Parameter, which worked.
I now wanted to use the Title of the Ticket and for example the Ticketnumber instead of the ID.
So instead of $Param{'TicketID'} i tried to use $Param{'TicketNumber'} and / or $Param{'TicketTitle'} but with those i always get empty results.
What do i need to do to also get access to those values?
Thank you and best regards
Sebastian
Generic Agent Custom Module question / problem
Moderator: crythias
-
- Znuny superhero
- Posts: 656
- Joined: 24 Feb 2012, 03:58
- Znuny Version: LTS and Features
- Real Name: Mo Azfar
- Location: Kuala Lumpur, MY
- Contact:
Re: Generic Agent Custom Module question / problem
Use that TicketID , then perform api call to TicketGet
https://doc.znuny.org/legacy/api/otrs/6 ... #TicketGet
Code: Select all
my $TicketObject = $Kernel::OM->Get('Kernel::System::Ticket');
my %Ticket = $TicketObject->TicketGet(
TicketID => $Param{TicketID},
UserID => 1,
DynamicFields => 1,
);
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This
Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This
Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
-
- Znuny newbie
- Posts: 16
- Joined: 30 Jul 2024, 14:51
- Znuny Version: 6.5.10
- Real Name: Sebastian
Re: Generic Agent Custom Module question / problem
perfect, thank you!