Get custom field of a specific article

I need to be able to get the value of a custom field on an article. I’ve tried CustomField::LoadByName, passing in LookupType=>“Articles”, but that returns 0. Additionally, how do I get the value? RT::CustomField doesn’t have a method for that.

The RT::Article object has a CustomFieldLookupType() method (inherited from RT::Record) that might help you.