Code to dynamically get category and supplier