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 Custom record type missing attribute #71

Open
f1crazed opened this issue Dec 10, 2021 · 3 comments
Open

Searching Custom record type missing attribute #71

f1crazed opened this issue Dec 10, 2021 · 3 comments

Comments

@f1crazed
Copy link

Doing a search as follows:
cust_recs = nc.custom_record_types.search('field name', 'value', 'contains')

produces the following error:
netsuitesdk\internal\client.py", line 524, in basic_stringfield_search
search_cls = getattr(self, search_cls_name)
AttributeError: 'NetSuiteClient' object has no attribute 'CustomRecordTypeSearchBasic'

@bazarnov
Copy link

++

@f1crazed I guess this is something related to your request, was merged recently: 35b6d9a

@Sravanksk Are there any recommendations on how to do the search correctly?

As for me, I'm experiencing problems with search, for example, I need to find all the Customers records crreated starting from 2022-01-01 00:00:00 till now. Is there any guide or example of how to do this? (Need to search records based on the date field basically, like lastModifiedDate).

@Sravanksk
Copy link
Contributor

@bazarnov currently, the search functionality in the SDK works only on string fields. Search on date fields is not yet implemented. Please check this code block once. We'll have to add support to search on SearchDateField as well here.

It would be great if you could add the functionality to the SDK. I will look into this sometime this week

Thanks

@bazarnov
Copy link

@Sravanksk It would be perfect if you could spend some time looking into this, giving some practical advice on one hand, and having the ready solution on the other. Will check the code and try for myself in a meanwhile.

P.S.: new to NetSuite API in general, not sure how to check the right params to pass, so your assistance is appreciated.

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

3 participants