public void PublishToPowerBI(PBIAPIClient powerBiAPI = null) { if (ParentTable == null) { throw new Exception("Cannot add row to PowerBI table as the object is not linked to a Table in PowerBI!"); } ParentTable.PushRowToPowerBI(this, powerBiAPI); }