I have a custom field for queues named “webhook”. How would I get the value (as text) that was set for a queue in a scrip Action? Some of the things I’ve tried:
$self->TicketObj->QueueObj->CustomField(‘webhook’);
$self->TicketObj->LoadCustomFieldByIdentifier(‘webhook’);
$self->TransactionObj->LoadCustomFieldByIdentifier(‘webhook’);
my $cf = RT::CustomField->new( $RT::SystemUser );
$cf->LoadByName( Name => ‘webhook’, ObjectId => $queue, LookupType => ‘RT::Queue-RT::Ticket’);
Any pointers would be very much appreciated. I wanted to use a CF instead of hard-coding the webhook. Maybe there’s a better way to do this?