This topic contains 1 reply, has 0 voices, and was last updated by haydent 7 years, 3 months ago.

  • Author
    Posts
  • #6493 Score: 0

    DavidRogers13s
    • Contributions: 0
    • Level 1

    I have an application that is similar to the NetSuite Example Application. I’m pulling down series of records from a Saved Transaction.

    My code looks a like:

    TransactionSearch transactionSearch = new TransactionSearch();

    var tranSearchAdv = new TransactionSearchAdvanced

    {

    savedSearchId = savedSearchId,

    columns = new TransactionSearchRow(),

    };

    tranSearchAdv.criteria = transactionSearch;

    var results = nsService.search(tranSearchAdv);

    var demoResults = results.Select(a => new

    {

    SalesRep = a.basic.salesRep?[0].searchValue?.name,

    Partner = a.basic.partner?[0].searchValue?.name,

    etc..

    });

    Unfortunately, I haven’t been able to get any data from the two fields(“Partner” and “SalesRep”), Even though in my search results those field contain valid data.

    Am I missing anything obvious, all the other field are returned correctly?

    Note: Cross posted here, http://stackoverflow.com/questions/4…m-transactions
    This is a cached copy. Click here to see the original post.

  • #6494 Score: 0

    haydent
    • Contributions: 0
    • Level 1

    im not too sure about this but ill throw it out there for you to try, do you have to specify the columns->basic-> fields you want returned ?

You must be logged in to reply to this topic.