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

Objects not available via NetSuite Connection #35

Open
tim-sauchuk opened this issue Oct 14, 2020 · 4 comments
Open

Objects not available via NetSuite Connection #35

tim-sauchuk opened this issue Oct 14, 2020 · 4 comments

Comments

@tim-sauchuk
Copy link

Thank you for putting this together, saves me a ton of time. I see you support a list of Netsuite objects such as accounts, departments, and employees. However, is there a way to use your SDK to query for custom objects? If not, could you point me in the right direction for doing so using the SOAP API?

@tim-sauchuk
Copy link
Author

Hey guys! I saw you added the ability to use custom records, thank you! My main concern is the ability to query standard objects not included in this package, such as Customer, Transaction, and Item. Is there a way to specify an object type, or build on top of this to support them?

@Shwetabhk
Copy link
Contributor

Hey @tim-sauchuk,
I had recently added a commit which allows you to get custom records and custom lists
Check here.

To get these records you can simply do something like

cl = nc.custom_lists.get(internalId)
cr = nc.custom_records.get_all_by_id(internalId)

This commit caters to our requirements, but if you want to add something extra, please feel free to put out a PR

@Shwetabhk
Copy link
Contributor

In terms of querying on existing objects, there are several internal functions which might not be directly available, you might have to play around a little
Some References:
base.py
internal/client.py

@ebkapalka
Copy link

Do Items / InventoryItems have a custom record type internal ID? All reference I can find to them in NetSuite identifies it as "inventoryitem" or "item", neither of which I think I can work with. Going into Customization -> Lists, Records and Fields -> Record Types gets me the Internal ID of nearly everything I need however Item / InventoryItem isn't on there. Thanks!

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