diff --git a/tableaudocumentapi/datasource.py b/tableaudocumentapi/datasource.py index fa5c7a5..10c9538 100644 --- a/tableaudocumentapi/datasource.py +++ b/tableaudocumentapi/datasource.py @@ -249,6 +249,10 @@ def _get_column_objects(self): return [_column_object_from_column_xml(self._datasourceTree, xml) for xml in self._datasourceTree.findall('.//column')] + + def _get_custom_sql(self): + return [qry for qry in self._datasourceXML.iter('relation')] + def add_field(self, name, datatype, role, field_type, caption): """ Adds a base field object with the given values.