How to get any custom field or attribute value