[rt-devel] Create a CustomField and Apply it Globally
redpantyhose at yahoo.com
Wed Oct 24 07:51:11 EDT 2012
I have a problem applying a CustomField in a Scrip I created.
I like to create dynamically create CustomFields and Apply them Globally.
The RT::CustomField->Cerate() Code below works ...
But I have to ApplyGlobally manually via :
because I'm unable to understand how to deal with
Can you send me an Example how to deal with ApplyGlobally ?
# --- MY CODE ---#
my $cf = RT::CustomField->new( RT::SystemUser );
my ( $cf_val, $cf_msg ) = $cf->Create(
Name => 'NAME_FROM_DB',
TypeComposite => 'Freeform-1',
LookupType => 'RT::Queue-RT::Ticket',
Description => 'DESCRIPTION_RETRIVED_FROM_DB',
Pattern => '',
LinkValueTo => '',
IncludeContentForValue => '',
BasedOn => '',
Disabled => 0,
# Please help me here ????
$cf = RT::CustomField->new( RT::SystemUser );
$cf->Load( Id => $cf_val );
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rt-devel