I have a standard installation of RT4 with the extension RT::Extension:Assets added.
I wrote a perl script (based on the many examples on the RT WIKI contributions pages) to scan through all open tickets reporting (in HTML) certain key performance indicators for me.
I would like to extend this perl script to ALSO scan through all “assets” in my RT database and to report on the content of a certain asset custom field (call it Asset_Status).
I have searched the mailing lists and internet for some guidance, but found none.
Can someone please help me (or guide me) with a perl code snippet showing the basics of how to loop (in perl API) through all assets in RT, and to extract the information (text field) of s specific custom field assigned to all assets to get me started.
Le 10/04/2015 13:06, Carl van Litsenborgh a �crit :
I have a standard installation of RT4 with the extension
RT::Extension:Assets added.
I wrote a perl script (based on the many examples on the RT WIKI
contributions pages) to scan through all open tickets reporting (in
HTML) certain key performance indicators for me.
I would like to extend this perl script to ALSO scan through all
�assets� in my RT database and to report on the content of a certain
asset custom field (call it Asset_Status).
I have searched the mailing lists and internet for some guidance, but
found none.
Can someone please help me (or guide me) with a perl code snippet
showing the basics of how to loop (in perl API) through all assets in
RT, and to extract the information (text field) of s specific custom
field assigned to all assets to get me started.
something like:
my $Catalog = RT::Catalog->new( RT->SystemUser );
$Catalog->Load(‘Informatique’);
my $Assets = RT::Assets->new( RT->SystemUser );
$Assets->LimitCatalog(VALUE => $Catalog->id);
my $CustomField = RT::CustomField->new( RT->SystemUser );
$CustomField->LoadByName( Name => ‘Marque’, LookupType =>
‘RT::Catalog-RT::Asset’ );
$Assets->LimitCustomField( CUSTOMFIELD => $CustomField->id, VALUE =>
‘CANON’ );
I have a standard installation of RT4 with the extension RT::Extension:Assets added.
I wrote a perl script (based on the many examples on the RT WIKI contributions pages) to scan through all open tickets reporting (in HTML) certain key performance indicators for me.
I would like to extend this perl script to ALSO scan through all “assets” in my RT database and to report on the content of a certain asset custom field (call it Asset_Status).
I have searched the mailing lists and internet for some guidance, but found none.
Can someone please help me (or guide me) with a perl code snippet showing the basics of how to loop (in perl API) through all assets in RT, and to extract the information (text field) of s specific custom field assigned to all assets to get me started.
something like:
my $Catalog = RT::Catalog->new( RT->SystemUser );
$Catalog->Load(‘Informatique’);
my $Assets = RT::Assets->new( RT->SystemUser );
$Assets->LimitCatalog(VALUE => $Catalog->id);
my $CustomField = RT::CustomField->new( RT->SystemUser );
$CustomField->LoadByName( Name => ‘Marque’, LookupType => ‘RT::Catalog-RT::Asset’ );
$Assets->LimitCustomField( CUSTOMFIELD => $CustomField->id, VALUE => ‘CANON’ );
Kühne + Nagel (AG & Co.) KG
Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE 812773878.
Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Reiner Heiken (Vors.), Dirk Blesius, Martin Brinkmann, Holger Ketz, Jan-Hendrik Köstergarten, Christian Solf, Lars Wedel, Jens Wollesen.
Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., Rechtsform: Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745, Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt.
Geschäftsleitung Region Westeuropa: Yngve Ruud (Vors.), Richard Huhn, Björn Johansson, Jan Kunze, Bruno Mang, Stefan Paul, Holger Ketz, Dominic Edmonds.
Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen Spediteursbedingungen (ADSp), jeweils neuester Fassung. Wir verweisen insbesondere auf die vom Gesetz abweichenden Haftungsbeschränkungen von Ziffer 23 und 24 ADSp. Den vollständigen Text der ADSp übersenden wir Ihnen gerne auf Anfrage und können Sie auch unter http://www.kuehne-nagel.com einsehen. Ergänzend wird vereinbart, dass (1) Ziffer 27 ADSp im Rahmen internationaler Übereinkommen weder unsere Haftung noch die Zurechnung des Verschuldens von Leuten und sonstigen Dritten zu Gunsten des Auftraggebers erweitert, und (2) wir in den im deutschen Seehandelsrecht aufgeführten Fällen des nautischen Verschuldens oder Feuer an Bord nur für eigenes Verschulden und (3) im Sinne der CMNI genannten Voraussetzungen nicht für nautisches Verschulden, Feuer an Bord oder Mängel des Schiffes haften.