Too complex. Try: $QueueObj->AddAttribute( Name=> "Etc", Description => "Etc", Content => "Etc");<br><br>See RT::Record for more.<br>
<br><br><div class="gmail_quote">On Tue, Apr 1, 2008 at 5:53 AM, Carlos Silva <<a href="mailto:cmsilva@mobicomp.com">cmsilva@mobicomp.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to define a custom attribute for queues, but I can't find<br>
what I'm doing wrong, maybe some of you can help me.<br>
<br>
Here's my code:<br>
<br>
my $at = RT::Attributes->NewItem($session{'CurrentUser'});<br>
$at->Create(ObjectType => "RT::Queue", ObjectId => $QueueObj->Id, Name<br>
=> "Etc", Description => "Etc", Content => "Etc");<br>
<br>
The requests fail with "Can't use string ("RT::Attributes") as a HASH<br>
ref while "strict refs" in use".<br>
<br>
Thank you for your time.<br>
<br>
Regards,<br>
Carlos Silva<br>
_______________________________________________<br>
<a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br>
<br>
Community help: <a href="http://wiki.bestpractical.com" target="_blank">http://wiki.bestpractical.com</a><br>
Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br>
<br>
<br>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br>
</blockquote></div><br>