def remove_relation(self): try: from .Handler import RelatedListAPIHandler except ImportError: from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self.junction_record).remove_relation()
def delete_note(self, zcrm_note_ins): try: from .Handler import RelatedListAPIHandler except ImportError: from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).delete_note(zcrm_note_ins)
def delete_attachment(self, attachment_id): try: from .Handler import RelatedListAPIHandler except ImportError: from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).delete_attachment(attachment_id)
def upload_link_as_attachment(self, link_url): try: from .Handler import RelatedListAPIHandler except ImportError: from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).upload_link_as_attachment(link_url)
def upload_attachment(self, file_path): try: from .Handler import RelatedListAPIHandler except ImportError: from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).upload_attachment(file_path)
def get_attachments(self, page, per_page): try: from .Handler import RelatedListAPIHandler except ImportError: from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance(self.parent_record, self).get_attachments( page, per_page)
def get_notes(self, sort_by, sort_order, page, per_page): try: from .Handler import RelatedListAPIHandler except ImportError: from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).get_notes(sort_by, sort_order, page, per_page)
def get_records(self, sort_by_field=None, sort_order=None, page=1, per_page=20): from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).get_records(sort_by_field, sort_order, page, per_page)
def update_note(self, zcrm_note_ins): from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).update_note(zcrm_note_ins)
def add_relation(self): from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self.junction_record).add_relation()
def download_attachment(self, attachment_id): from Handler import RelatedListAPIHandler return RelatedListAPIHandler.get_instance( self.parent_record, self).download_attachment(attachment_id)