Robert,
I'm sorry, I know my code is somewhat messy and confusing! query2.outFields only contains ATTACHMENTID because that query is querying off of the table that contains the field ATTACHMENTID. Only the feature class (which is queried by query1) contains the OBJECTID field. Having to use GlobalIDs with a relationship class has caused a world of pain.
After weeks of struggling with it..I actually just got the images to show up within the application. I had to embedd function:"onResult2" within function:"onResult" that way the attributes from featureSet:FeatureSet (which is from the first query) can be pulled. Pulling these attributes allows function:"onResult2" to be able to view and use the field name represented by "pathField" and "path" which properly completes the URL so that the images can be viewed. Again sorry for the confusion, thanks a lot for the quick responses and help.
Jesse