Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8738121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:40:33+00:00 2026-06-13T10:40:33+00:00

I am trying to place a simple SalesOrder using NetSuite web services and having

  • 0

I am trying to place a simple SalesOrder using NetSuite web services and having zero luck with what I would assume is a very simple process:

First I instantiate my objects for use with the web service:

SalesOrder order = new SalesOrder();
SalesOrderItemList items = new SalesOrderItemList();
SalesOrderItem item = new SalesOrderItem();

Now you would think I would just look for some method like:

items.Add(item);

To create my list of SalesOrderItems but now such method exists, or anything similar that I can seem to wrap my head around. I have the SuiteTalkWebServices Platform Guide and have read it through and I am stumped.

Any good references for this API? NetSuites is lacking in my opinion. I am using C# by the way.

UPDATE:

I found this PDF via a google search, huge help:
http://www.netsuite.com/portal/partners/integration/download/SuiteTalkWebServicesPlatformGuide_2011.2.pdf

What threw me was I need to create an Array then then assign that array to the defined object, instead of adding things to it one by one like I assumed. The entire API works this way, so once you have it down you are good (basic test adding 2 items to an order):

// create sales order
            SalesOrder so = new SalesOrder();
            SalesOrderItem[] orderItemsArray = new SalesOrderItem[2];

            for (int i = 0; i < orderItemsArray.Length; i++)
            {
                SalesOrderItem item = new SalesOrderItem();
                item.quantity = i;
                item.description = "test item" + i;
                item.amount = (double)75.00;
                orderItemsArray[i] = item;
            }

            SalesOrderItemList orderItems = new SalesOrderItemList();
            orderItems.item = orderItemsArray;
            so.itemList = orderItems;

            so.orderStatus = SalesOrderOrderStatus._pendingApproval;
            service.add(so);

There is more that needs to be done with this but at least this should get anyone going.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:40:33+00:00Added an answer on June 13, 2026 at 10:40 am

    In Answer to your references question, there are several resources that may help.

    • Netsuite User Form – This forum gets pretty quick replies and Netsuite employees will often reply to questions (registration required, but free)
    • I have written a blog with many PHP code examples of Netsuite API calls. It’s not C#, but you may still find it useful. (More to the point, here is an example of a sales order request)

    I would strongly suggest browsing through the Netsuite Usergroup forum, it has a lot of code examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to place some simple effects on an image using HBox using
I am trying a very simple use of JavaFX using a simple set of
I'm trying to place a nice border around an image that's 250x250, using only
I'm trying to make a simple username/password authentication in a Spring Security web app.
I am using jQuery and trying to load a variable in place of a
I'm trying to build a simple website with login functionality very similar to the
I am trying to make a simple web based jQuery xml editor. So.. the
I'm trying to download a simple page from an SSL secured webpage. I'm using
I'm trying to create a simple app that looks up a Place, but I'm
I am trying to find a very simple example for the syntax to simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.