How to fetch default currencies from NetSuite using Suite Script 2.0 - netsuite

I want to fetch default currencies from NetSuite and then wanted to add them into the Customer record Financial subtab.

Related

Automating NetSuite purchase orders and vendor bills

I am hoping to automate purchase order and vendor bill creation and application in NetSuite. I got a little lost browsing, no idea which documentation I should look at...
What I want to do: purchase order information is inserted into a google sheet manually, I get this information, with python and with a NetSuite API create purchase orders. I save the internal ids for each creation. Then, when vendor bills are input into the sheet I use the internal ids and the information on the sheet to create vendor bills.
Is it possible with current NetSuite products? If so, which (linking docs would be greatly appreciated)

adding a custom field to netsuite sales order api restlet

I am needing to add a custom field called Purchase Order# to my netsuite api the json I currently use is formatted as follows:
{"entity":"1117","recordtype":"salesorder","item":[{"item":"311","amount":"1234"},{"item":"311","amount":"1234"}]}
Any help would be appreciated.

NetSuite SuiteScript 2.0 - Get Sales Team Name from Internal ID

I have a suitescript which retrieves the Internal ID of a sales team (the one chosen in the Choose Team drop-down). I want to be able to display the name of the sales team.
So a simple question - given the Internal ID of a Sales Team, how can I retrieve its name?
Client script, 2.0.
getText instead of getValue:
currentRecord.getText({
fieldId: 'salesgroup'
});

Netsuite : Is it Possible to Integrate Financial Reports like Balance Sheet API in Netsuite?

I'm attempting to obtain a profit and loss statement, or balance sheet, using REST Web Services within Netsuite.
I've been successful at calling unique ID records (customers, vendors, and their respective data), but now I'd like to be able to pull a set of financials for a specific period/entity. Is there a way I can do that using Python, Postman, or does REST Web Services not support that sort of functionality?
Thanks in advance for your help.

NetSuite Script to Block the order if payment is rejected

I using Web Services to integrate to NetSuite and passing the internal ID of the credit card on file for the customer with my sales order transaction header.
I would like NetSuite to fail to create the order completely if the card that I am passing cannot be authorized (for example if it's expired). Is this possible using a script in the custom form?
I don't believe there is a pre-auth in NetSuite. You would need to make a call to AuthNet or something first. Or you can close/reject the order if the CC fails after saved.

Resources