Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching for Support Cases #70

Open
relwell opened this issue Nov 6, 2021 · 2 comments
Open

Searching for Support Cases #70

relwell opened this issue Nov 6, 2021 · 2 comments

Comments

@relwell
Copy link

relwell commented Nov 6, 2021

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!

@relwell
Copy link
Author

relwell commented Nov 6, 2021

Would also be nice to know whether this API supports creating support cases. Thanks!

@bazarnov
Copy link

@gustahrodrigues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants