I need to create a job with a for loop (I think) that goes through all available companies and checks for a specific value. I'm just not familiar with how I would get it to select each individual company.
Does anyone know the syntax for that?
The functionality you're looking for is called "Cross Company" data access. MSDN has a great bit of code samples here:
X++ code: http://msdn.microsoft.com/en-us/library/cc518738.aspx
Main article: http://msdn.microsoft.com/en-us/library/cc634544.aspx