def create_report_property_schema(field, mdata, source_type): field_name = field['label'] mdata = metadata.write(mdata, ('properties', field_name), 'inclusion', 'available') property_schema, mdata = salesforce.field_to_property_schema( field, mdata, source_type) return (property_schema, mdata)
def create_property_schema(field, mdata): field_name = field['name'] if field_name == "Id": mdata = metadata.write( mdata, ('properties', field_name), 'inclusion', 'automatic') else: mdata = metadata.write( mdata, ('properties', field_name), 'inclusion', 'available') property_schema, mdata = salesforce.field_to_property_schema(field, mdata) return (property_schema, mdata)
def create_property_schema(field, mdata): field_name = field["name"] if field_name == "Id": mdata = metadata.write(mdata, ("properties", field_name), "inclusion", "automatic") else: mdata = metadata.write(mdata, ("properties", field_name), "inclusion", "available") property_schema, mdata = salesforce.field_to_property_schema(field, mdata) return (property_schema, mdata)