I want to fetch default currencies from NetSuite and then wanted to add them into the Customer record Financial subtab.
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)
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.
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
I am looking for the best way to support product autoship / subscription which has a validity period (start, end date and shipping interval - (e.g 1 month) and associated product
Customer can subscribe to product autoship.
Products in the customer's order are grouped within the fulfillment group if they share the same autoship the customer has subscribed to.
On every autoship date, the same order is generated in the background.
Suggestions are much appreciated,
Thanks,
Milan
Broadleaf provides an enterprise-compatible module called Subscription that meets these requirements.
If you are looking for something in regards to community edition, you would have to make custom changes.
From a high level, you would want to do the following:
Some indication on your Product or Sku that indicates it is compatible with autoship / subscription.
An entity that holds the fields that you mentioned - start, end date, shipping interval, and also order, customer, customer payment, and status.
During checkout, add a new activity at the end of blCheckoutWorkflow that checks for compatible order items to create your "autoship" entity.
You will need to create some cron job or quarts scheduler that can trigger events. Sounds like you might want this to be set to a daily recurrence. This is provided in enterprise licenses, but you will have to do something custom for community.
Create an endpoint or service that the job/scheduler calls when triggered.
In your endpoint, you will want to create a new workflow with a set of activities. These activities will need to:
Prepare a new order by copying the required entities of the existing order from the "autoship" entity.
Trigger the blCheckoutWorkflow with your newly created order.
Update the "autoship" entity depending on success of the attempted payment.
This should get you to a good place given the requirements.