It looks like you just need to retrieve the company id? I’m also assuming the company id you want is different than the company you will be launching this customization in?
I would use the BOReader to retrieve this data as you can choose which columns are returned in the result.