Skip to content

Searching for Support Cases #70

@relwell

Description

@relwell

Hi there!

I can't seem to figure out how to search for support cases.

There doesn't seem to be an off-the-shelf collection for it, and it looks like something about it isn't supported in the SOAP configurations in the current library.

See the following code snippet:

In [37]: record = ns.client.search_factory("supportCase", id=412945)
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-37-e327b9c2999c> in <module>
----> 1 record = ns.client.search_factory("supportCase", id=412945)

~/.local/share/virtualenvs/jira-to-netsuite-gav1FNZz/lib/python3.9/site-packages/netsuitesdk/internal/client.py in search_factory(self, type_name, **kwargs)
    407             raise NetSuiteTypeError('{} is not a searchable NetSuite type!'.format(type_name))
    408         search_cls_name = '{}Search'.format(type_name)
--> 409         search_cls = self.get_complex_type(search_cls_name)
    410         search_record = search_cls(**kwargs)
    411         return search_record

~/.local/share/virtualenvs/jira-to-netsuite-gav1FNZz/lib/python3.9/site-packages/netsuitesdk/internal/client.py in get_complex_type(self, type_name)
    138         #     namespace, type_name = type_name.split(':')
    139         # namespace_index = namespace[2:]
--> 140         return self._complex_types[type_name]
    141 
    142     def get_simple_type(self, type_name):

KeyError: 'supportCaseSearch'

Is there something I'm missing? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions