How do I get the name of the NetSuite company using SuiteQL? - netsuite

Is it possible to get company info (name, address, timezone, etc) from NetSuite using SuiteQL? I can't find any references to it in the docs.

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)

Creating a Contact with a Customer External Id

Is it possible to create a contact through the NetSuite SOAP API (SuiteTalk) for a customer using the customer external id? I tried setting the RecordRef external id and type to customer but received the error "Nonexistent externalId 123 for company" but a customer with that external id does exist.
As you mentioned that you already checked that externalid exists for the customer. This error is seen when the customer record is inactive. Can you check if the customer is active or not. If it's not then try integrating with an active customer. Please let me know if this works! Thanks

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'
});

How to Switch Docusign Branding Dynamically through C# API for Powerforms

Team,
I have many documents multiple companies on single docusign prod account.
I need to use multiple logo as per different-different company logo for powerforms.
I want to switch branding dynamically as per company, so that when my code detects a company, I must be able to set branding as per selected company ; so that whenever email is sent, company logo is sent with email.
I am using c# APIsc for docusign.
Your help is really appreciable in advance.
Yes you can accomplish this with DocuSign, you just need to create the multiple brand profiles you want to use in your account, then specify which brand you want to use each time you create an envelope.
To specify which brand to use for a given envelope, there is a brandId property that's part of the envelopeDefinition that you can configure. To get a list of valid brand GUIDs from your account you can make the GET Brand Profile Information API call.

Billing and Shipping address in Broadleaf Commerce

I'm experimenting with Collect on Delivery (COD) orders in Broadleaf commerce and the question that I have is: how do I find out the Billing and Shipping address that the customer has entered for that particular order?
I can see that entries for both addresses get created in blc_address table.
I guess the Shipping address can be checked via blc_fulfillment_group (address_id and order_id columns) but how about billing address?
Well you get that those details from Order entity
Include the orderService like
#Resource(name = "blOrderService")
protected OrderService orderService;
then query the order like
Order order = orderService.findOrderByOrderNumber(orderNumber);
//below is delivery address
order.getFulfillmentGroups().get(0).getAddress();
//and this is billing address
order.getPayments().get(0).getBillingAddress();

Resources