Any help would be appreciated...
revenue recognition template displayed within the netsuite ui with values- No issues we are successful through webservices
However, we have numerous items that by default do not have the deferred revenue account and revenue recognition template values populated on the item.
What we would like to do is be able to pass those values through webservices but not be dependent on the item's deferred revenue account and revenue recognition template to be populated with predetermined data. Is that possible? We were trying to pass the deferred revenue account and revenue recognition template through web services and were getting errors
So here's a request
- <soap:Body>
- <asyncAddList xmlns="urn:messages_2_6.platform.webservices.netsuite.com">
- <record xsi:type="q1:Invoice" xmlns:q1="urn:sales_2_6.transactions.webservices.netsuite.com">
<q1:entity internalId="63197" type="customer" />
<q1:memo>180 Billing - Anc-Karate</q1:memo>
<q1:account internalId="125" />
- <q1:itemList>
- <q1:item>
<q1:item internalId="120" type="invoice" />
- <q1:price type="priceLevel">
<name xmlns="urn:core_2_6.platform.webservices.netsuite.com">10</name>
</q1:price>
<q1:revRecSchedule internalId="1" />
<q1:revRecStartDate>2008-03-03T00:00:00</q1:revRecStartDate>
<q1:revRecEndDate>2008-04-10T00:00:00</q1:revRecEndDate>
</q1:item>
</q1:itemList>
- <q1:customFieldList>
- <customField xsi:type="StringCustomFieldRef" internalId="custbodysource" xmlns="urn:core_2_6.platform.webservices.netsuite.com">
<value>ABS</value>
</customField>
</q1:customFieldList>
</record>
and here is the response
- <soapenv:Header>
- <ns1:documentInfo xmlns:ns1="urn:messages_2_6.platform.webservices.netsuite.com">
<ns1:nsId>ASYNCWEBSERVICES_448792_030320081982925712667234087_b68da0e1</ns1:nsId>
</ns1:documentInfo>
</soapenv:Header>
- <soapenv:Body>
- <getAsyncResultResponse xmlns="urn:messages_2_6.platform.webservices.netsuite.com">
- <asyncResult xsi:type="AsyncAddListResult">
- <ns2:writeResponseList xmlns:ns2="urn:messages_2_6.platform.webservices.netsuite.com">
- <ns2:writeResponse>
- <ns3:status isSuccess="false" xmlns:ns3="urn:core_2_6.platform.webservices.netsuite.com">
- <ns3:statusDetail type="ERROR">
<ns3:code>INVALID_KEY_OR_REF</ns3:code>
<ns3:message>Invalid account reference key 125.</ns3:message>
</ns3:statusDetail>
Here's an example of what happens when values are not in the ui
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <soap:Body>
- <asyncAddList xmlns="urn:messages_2_6.platform.webservices.netsuite.com">
- <record xsi:type="q1:Invoice" xmlns:q1="urn:sales_2_6.transactions.webservices.netsuite.com">
<q1:entity internalId="20878" type="customer" />
<q1:memo>180 Billing - Anc-Karate</q1:memo>
- <q1:itemList>
- <q1:item>
<q1:item internalId="120" type="invoice" />
- <q1:price type="priceLevel">
<name xmlns="urn:core_2_6.platform.webservices.netsuite.com">10</name>
</q1:price>
<q1:revRecSchedule internalId="1" />
<q1:revRecStartDate>2008-03-03T00:00:00</q1:revRecStartDate>
<q1:revRecEndDate>2008-04-07T00:00:00</q1:revRecEndDate>
</q1:item>
</q1:itemList>
and the response
- <soapenv:Header>
- <ns1:documentInfo xmlns:ns1="urn:messages_2_6.platform.webservices.netsuite.com">
<ns1:nsId>ASYNCWEBSERVICES_448792_0303200819773684541658870529_2c5c772</ns1:nsId>
</ns1:documentInfo>
</soapenv:Header>
- <soapenv:Body>
- <getAsyncResultResponse xmlns="urn:messages_2_6.platform.webservices.netsuite.com">
- <asyncResult xsi:type="AsyncAddListResult">
- <ns2:writeResponseList xmlns:ns2="urn:messages_2_6.platform.webservices.netsuite.com">
- <ns2:writeResponse>
- <ns3:status isSuccess="false" xmlns:ns3="urn:core_2_6.platform.webservices.netsuite.com">
- <ns3:statusDetail type="ERROR">
<ns3:code>DEFERRAL_ACCT_REQD</ns3:code>
<ns3:message>Lines with revenue recognition templates must have a deferral account.</ns3:message>
</ns3:statusDetail>
</ns3:status>
</ns2:writeResponse>
- <ns2:writeResponse>