Testing whether at table is joined

Discussion created by mstjernholm on Jan 19, 2011
Latest reply on Dec 17, 2015 by fprallyesrifrance-fr-esridist
Does anybody know how to see whether a feature layer or table view already contain a join, and if so how to get the name of the join table?

The problem arises from the fact that :
  - arcpy.AddField_management(...) returns an error if the feature class or table is joined and
  - arcpy.RemoveJoin_mangement() also returns an error if there no join !

There seems only to be tools like arcpy.AddJoin_management and arcpy.RemoveJoin_management

I miss:
a) arcpy.RemoveAllJoins_management

b) a TableView property hasJoin