Skip to main content

Explore Netsuite's WSDL and convert Python Dictionaries into Netsuite XML

Project description

dynamictalk

A package for converting python dictionaries into XML for Netsuite.

init()

This package requires passing in a NetSuite object from the netsuite package: https://pypi.org/project/netsuite/

from netsuite.client import NetSuite
from dynamictalk import DynamicTalk

conn = NetSuite({config})
dt = DynamicTalk(conn)

view()

Input the API name of the object you want to see and this method will compile the structure of the object, sub objects and all of their custom field lists and return it.

from netsuite.client import NetSuite
from dynamictalk import DynamicTalk

conn = NetSuite({config})
dt = DynamicTalk(conn)

print(dt.view(SalesOrder))

build()

Input the data you want converted in dictionary form and the API name of the object the data is for and this method will convert the input data into the appropriate XML structures. The keys in the data must correspond exactly to the Netsuite field API names including case sensitivity.

For reference fields make sure the value is the internal Id of what you want to reference.

The custom field list should be input as a dictionary instead of a list with key value pairs corresponding to the API name of the custom field and the value, or internal Id to be set in that custom field.

from netsuite.client import NetSuite
from dynamictalk import DynamicTalk

conn = NetSuite({config})
dt = DynamicTalk(conn)

order = {'externalId': 456343,
         'entityId': 436634,
         'subsidiary': 5,
         'customFieldList':{
             'custbody_custom1': 'example'
            }
         }

xml_order = dt.build(order, 'SalesOrder')
conn.add(xml_order)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DynamicTalk-0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file DynamicTalk-0.0.1.tar.gz.

File metadata

  • Download URL: DynamicTalk-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for DynamicTalk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6c277232a07a07f4f7aee33b42a8e505a47b482d908903e04699e352b8e622c2
MD5 713a5f1f17312b9a1319e5893461874d
BLAKE2b-256 285191e3c79b6b3c92ac2ecb4f5b6a0fa939146e0783d85b3fd3b64f55eee024

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page