We have an application, that is a transporter between our data-center and NetSuite. The documents go in both directions.
We would like to generate the sample NetSuite xml files and then post them to NetSuite. We have downloaded the xsd schemas v 2013_1 for documents we are interested in. We have generated xml files from these schemas and the problem is to fill them in with correct data.
As you know, the data is account specific. The question is how to get all account specific information for current account (like valid internalIDs, entities, items etc)?
So, summarizing the question, let us try to imagine we have the generated Sales Order, that looks like this:
<?xml version="1.0" encoding="utf-8"?> <SalesOrder internalId="internalId1" externalId="externalId1" xmlns="urn:sales_2013_1.transactions.webservices.netsuite.com"> <nullFieldList xmlns="urn:core_2013_1.platform.webservices.netsuite.com"> <name>name1</name> <name>name2</name> <name>name3</name> </nullFieldList> <createdDate>1900-01-01T01:01:01+02:00</createdDate> <customForm internalId="internalId1" externalId="externalId1" type="account"> <name xmlns="urn:core_2013_1.platform.webservices.netsuite.com">name1</name> </customForm> <entity internalId="internalId1" externalId="externalId1" type="account"> <name xmlns="urn:core_2013_1.platform.webservices.netsuite.com">name1</name> </entity> <job internalId="internalId1" externalId="externalId1" type="account"> <name xmlns="urn:core_2013_1.platform.webservices.netsuite.com">name1</name> </job> ...
How can I get valid account specific valid data to replace the tags and attributes values with them? We would like to get as full sample as possible. Ideally, we would like to have a tool that generates the full valid document on QA's request. Did someone have experience like that? Thanks in advance.