(self, bundle, **kwargs)
return custom_fields
https://zapier.com/developer/documentation/v2/trigger-fields-custom/
            Zapier custom fields allow to show default form properties, even if there are no forms submitted.
            It also allows to assign label to json property.
            Format of custom field:
            {
                "type": "unicode",
                "key": "json_key",
                "label": "Label", // optional
                "help_text": "Helps to explain things to users." // optional
            }
https://zapier.com/developer/documentation/v2/trigger-fields-custom/
            Zapier custom fields allow to show default form properties, even if there are no forms submitted.
            It also allows to assign label to json property.
            Format of custom field:
            {
                "type": "unicode",
                "key": "json_key",
                "label": "Label", // optional
                "help_text": "Helps to explain things to users." // optional
            }
https : // zapier . com / developer / documentation / v2 / trigger - fields - custom / Zapier custom fields allow to show default form properties even if there are no forms submitted . It also allows to assign label to json property . Format of custom field : { type : unicode key : json_key label : Label // optional help_text : Helps to explain things to users . // optional }
def obj_get_list(self, bundle, **kwargs):
        """
            https://zapier.com/developer/documentation/v2/trigger-fields-custom/
            Zapier custom fields allow to show default form properties, even if there are no forms submitted.
            It also allows to assign label to json property.
            Format of custom field:
            {
                "type": "unicode",
                "key": "json_key",
                "label": "Label", // optional
                "help_text": "Helps to explain things to users." // optional
            }
        """
        application_id = bundle.request.GET.get('application_id')
        xmlns = bundle.request.GET.get('xmlns')
        if not application_id or not xmlns:
            return []

        try:
            app = Application.get(application_id)
        except ResourceNotFound:
            raise NotFound

        custom_fields = []

        for idx, question in enumerate(app.get_questions(xmlns)):
            if self._has_default_label(question):
                label = question['label'].split('/')[-1]
            else:
                label = question['label']

            custom_fields.append(CustomField(
                dict(
                    type='unicode',
                    key=self._build_key(question['hashtagValue']),
                    label=label
                )
            ))

        for form_property in MAIN_FORM_TABLE_PROPERTIES:
            if form_property.is_advanced or form_property.item.transform:
                continue
            custom_fields.append(CustomField(
                dict(
                    type='unicode',
                    key='__'.join([node.name for node in form_property.item.path]),
                    label=form_property.label,
                    help_text=form_property.help_text
                )
            ))
        return custom_fields
def obj_get_list ( self , bundle , * * kwargs ) : application_id = bundle . request . GET . get ( 'application_id' ) xmlns = bundle . request . GET . get ( 'xmlns' ) if not application_id or not xmlns : return [ ] try : app = Application . get ( application_id ) except ResourceNotFound : raise NotFound custom_fields = [ ] for idx , question in enumerate ( app . get_questions ( xmlns ) ) : if self . _has_default_label ( question ) : label = question [ 'label' ] . split ( '/' ) [ - 1 ] else : label = question [ 'label' ] custom_fields . append ( CustomField ( dict ( type = 'unicode' , key = self . _build_key ( question [ 'hashtagValue' ] ) , label = label ) ) ) for form_property in MAIN_FORM_TABLE_PROPERTIES : if form_property . is_advanced or form_property . item . transform : continue custom_fields . append ( CustomField ( dict ( type = 'unicode' , key = '__' . join ( [ node . name for node in form_property . item . path ] ) , label = form_property . label , help_text = form_property . help_text ) ) ) return custom_fields