<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">Dear RT-Users<br><div id="yiv775054227"><div><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:12pt;"><br>I have a problem applying a CustomField in a Scrip I created.<br><br>I like to create dynamically create CustomFields and Apply them Globally.<br><br>The RT::CustomField->Cerate() Code below works ...<br><br>But I have to ApplyGlobally manually via : <br><br>$WebURL/rt/Admin/CustomFields/Objects.html<br><br>because I'm unable to understand how to deal with <br><br>RT::CustomField->ApplyGlobally<br><br>Can you send me an Example how to deal with ApplyGlobally ?<br><br>Thanks sincerely,<br><br><br># --- MY CODE ---#<br><br>my
 $cf = RT::CustomField->new( RT::SystemUser );<br><br>my ( $cf_val, $cf_msg ) = $cf->Create(<br>            Name          =>
 'NAME_FROM_DB',<br>            TypeComposite => 'Freeform-1',<br>            LookupType    => 'RT::Queue-RT::Ticket',<br>            Description   => 'DESCRIPTION_RETRIVED_FROM_DB',<br>            Pattern       => '',<br>            LinkValueTo   => '',<br>            IncludeContentForValue => '',<br>            BasedOn       => '',<br>            Disabled      =>
 0,<br>);<br><br># Please help me here ????<br>$cf = RT::CustomField->new( RT::SystemUser );<br>$cf->Load( Id => $cf_val );<br>$cf->ApplyGlobally;<br><br></div></div></div><br><br><br> </div> </div>  </div></div></body></html>