Best Of
Re: What Last Count Date means and how it works
Thank you for the detailed explanation, Angela!
Hello @Ivan Babiichuk, it is not possible to modify it via WF or Script. It is not an exposed field for modification. The list of scriptable fields can be found in the Records Browser.
If you find this reply to your question useful, others might as well. By clicking the “Yes” button for “Did this answer the question?” below, you’ll be able to help the community members who might have a similar concern find the answer easier and you will also get closer to earning your next Answer Accepter badge.
NSC | Default Shipping Address Creation in SOAP Web Services
Scenario:
A user desires to establish a new AddressBook entry and designate it as the default shipping address through SOAP Web Services within a Customer record.
Solution:
Below is a sample SOAP Request illustrating the process of creating a basic address entry with default shipping setting within a Customer record using Update operation in SOAP Web Services
<soapenv:Body>
<update xsi:type='platformMsgs:UpdateRequest'>
<record xsi:type='listRel:Customer' internalId='XXXX'>
<addressbookList replaceAll='false' xsi:type='listRel:CustomerAddressbookList'>
<addressbook xsi:type='listRel:CustomerAddressbook'>
<defaultShipping xsi:type='xsd:boolean'>true</defaultShipping>
<label xsi:type='xsd:string'>SOAP Sample Label</label>
<addressbookAddress xsi:type='platformCommon:Address'>
<country xsi:type='xsd:string'>_philippines</country>
<addressee xsi:type='xsd:string'>Customer Name</addressee>
<addrPhone xsi:type='xsd:string'>0912345678</addrPhone>
<addr1 xsi:type='xsd:string'/>
<addr2 xsi:type='xsd:string'>Ayala</addr2>
<city xsi:type='xsd:string'>Makati</city>
<zip xsi:type='xsd:string'>1226</zip>
</addressbookAddress>
</addressbook>
</addressbookList>
</record>
</update>
</soapenv:Body>
Sample Output:
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.
Oracle + NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle + NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.
Oracle + NetSuite Inc. shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.
To know more about SOAP Web Services Operations, check these New to NetSuite Articles.
- New to NetSuite | SOAP Web Services: Add Operation
- New to NetSuite | Searching Customer Records using SOAP Web Services
- New To NetSuite |Update Customer Records using SOAP Web Services
- New To NetSuite | Delete Customer Record using SOAP Web Services
- New to NetSuite | SOAP Web Services: Get Operation
Do you have another way on how to create Addressbook in SOAP WS? Feel free to share them here!
If you find this information useful, let us know by reacting or commenting on this post! Thank you!
NSC | Default Shipping Address Creation in SuiteScript 2.0
Scenario:
A user desires to establish a new AddressBook entry and designate it as the default shipping address through Scripting within a Customer record.
Solution:
Below is a sample script illustrating the process of creating a basic address entry with default shipping setting within a Customer record using N/record in SuiteScript 2.0.
var rec = record.load({
type: 'customer',
isDynamic: true,
id: XXX //internal ID
});
rec.selectNewLine({
sublistId: 'addressbook'
});
rec.setCurrentSublistValue({
sublistId: 'addressbook',
fieldId: 'label',
value: 'Script sample label'
});
rec.setCurrentSublistValue({
sublistId: 'addressbook',
fieldId: 'defaultshipping',
value: true
});
var AddSubRecord = rec.getCurrentSublistSubrecord({
sublistId: 'addressbook',
fieldId: 'addressbookaddress'
});
AddSubRecord.setValue({
fieldId: 'addressee',
value: 'Customer Name'
});
AddSubRecord.setValue({
fieldId: 'addrphone',
value: '0912345678'
});
AddSubRecord.setValue({
fieldId: 'addr1',
value: 'Ayala'
});
AddSubRecord.setValue({
fieldId: 'country',
value: 'PH'
});
AddSubRecord.setValue({
fieldId: 'city',
value: 'Makati'
});
AddSubRecord.setValue({
fieldId: 'zip',
value: '1226'
});
rec.commitLine({
sublistId: 'addressbook'
});
rec.save();
Sample Output:
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.
Oracle + NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle + NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.
Oracle + NetSuite Inc. shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.
To know more about deploying SuiteScript, check these New to NetSuite Articles.
- New To NetSuite | How to set a Script Type in SuiteScript 2.x Record?
- New To NetSuite | How to create a Script Record?
- New To NetSuite | How to Deploy a Script Record
- New to NetSuite | Browser tool for SuiteScript Records
Do you have another way on how to create Addressbook in SuiteScript? Feel free to share them here!
If you find this information useful, let us know by reacting or commenting on this post! Thank you!
Re: Outbound SSO from SCA
Thank you for all of the help you have provided. I am still not able to figure out how to use a custom domain for our SCA login page. Our web store has a custom domain, but the login page still uses netsuite.com. If there is any additional insight out there, I would much appreciate it. If not, then we can close this thread.
Re: Script Help - return transaction line details upon creation of record based on location.
Thanks Nicole. I'm still having unknown issues with trying the functions you suggested and it's sapping my energy a bit.
I need to take a break from it, maybe test out getting the sublist subrecord data in another project and study the documentation a bit more first. Also in some way where I'm not having to create and delete records every time I want to trigger a test of the script.
Then I'll try coming back at it.
Dext3r
Re: Style List is not sorted alphabetically
Hi @Rachel_A Yes. This isn't a custom list, it comprises custom records that may have been created by a former employee of your organization. Please review the 'Style' custom record setup.
Customization > Lists, Records, & Fields > Record Types & choose the 'Style' Record.
Thank you
Re: Style List is not sorted alphabetically
@Able Wilson Ok, thanks….yes I don't know how it was created so it looks like I will have to create a new custom style list.
Re: We can't log in
Hello everyone, the issue is now resolved! @Paul Reading , @Ruth Castaño , @Omar Mohamed Arida , please try to login .
Re: An unexpected error has occurred while login in NetSuite
@Niraj Tiwari we have the same issue.
It seems that there is an issue with authenticator.
An unexpected error has occurred while login in NetSuite
We are unable to login into NetSuite, it is showing below error while login.
"An unexpected error has occurred"
We checked status.netsuite.com and observed all services are operational.
This login issue is occurring for all our customers.










