I am currently spatial joining two feature classes like this
arcpy.SpatialJoin_analysis(target_features,join_features,output_features,
join_operation="JOIN_ONE_TO_ONE",
join_type="KEEP_ALL",
match_option="CLOSEST")
I need to access the object ID of each join feature that was joined to the target feature. However, in spatial joins, arcpy only adds "JOIN_FID" in one-to-many joins. In a one-to-one join I only get "TARGET_FID" (which seems pretty useless as I knew that already).
How can I access (programatically) the feature ID of the joined feature from the output feature class?