AnsweredAssumed Answered

Setting Posting Period on Netsuite transactions

Question asked by KeithWeaver6631 on Aug 14, 2017

I am trying to create a vendor bill in Netsuite and I can not figure out how to set the posting period.  

 

I am trying to set the posting period on a vendor bill to a different value than the default value.  In the UI I enter the entity the trandate and then I can change the posting period to any period that is open.  However with web services it seems to ignore the postingperiod internal id.  My request is below.  The period with internalId "96" is an open accounting period

 

 

Any help would be appreciated

<soapenv:Body>
<platformMsg:addList xmlns:platformMsg="urn:messages_2015_2.platform.webservices.netsuite.com">
<platformMsg:record xsi:type="ns1:VendorBill" externalId="D3DD52F3F3014D62905E-InvoiceV2" xmlns:ns1="urn:purchases_2015_2.transactions.webservices.netsuite.com" xmlns:ns2="urn:core_2015_2.platform.webservices.netsuite.com" xmlns:ns3="urn:common_2015_2.platform.webservices.netsuite.com">
<ns1:entity xsi:type="platformCore:RecordRef" internalId="45148"/>
<ns1:tranDate>2017-01-01T00:00:00.000-08:00</ns1:tranDate>
<ns1:dueDate>2017-08-30T00:00:00.000-07:00</ns1:dueDate>
<ns1:postingPeriod xsi:type="platformCore:RecordRef" internalId="96"/>
<ns1:tranId>247904</ns1:tranId>
<ns1:expenseList>
<ns1:expense>
<ns1:account xsi:type="platformCore:RecordRef" internalId="1184"/>
<ns1:amount>109.4000</ns1:amount>
<ns1:memo>July PCs</ns1:memo>
<ns1:department xsi:type="platformCore:RecordRef" internalId="19"/>
<ns1:location xsi:type="platformCore:RecordRef" internalId="2"/>
</ns1:expense>
<ns1:expense>
<ns1:account xsi:type="platformCore:RecordRef" internalId="1130"/>
<ns1:amount>154.0200</ns1:amount>
<ns1:memo>xxxxxxx</ns1:memo>
<ns1:department xsi:type="platformCore:RecordRef" internalId="19"/>
<ns1:location xsi:type="platformCore:RecordRef" internalId="2"/>
</ns1:expense>
</ns1:expenseList>
<ns1:customFieldList>
<ns2:customField xsi:type="ns2:StringCustomFieldRef" scriptId="custbody_concur_request_name">
<ns2:value>xxxxxxxxxxx</ns2:value>
</ns2:customField>
</ns1:customFieldList>
</platformMsg:record>
</platformMsg:addList>
</soapenv:Body>

Outcomes