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

  • Home
  • SEARCH
  • 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 6068119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:40:53+00:00 2026-05-23T09:40:53+00:00

For a web application, I need to get a list or collection of all

  • 0

For a web application, I need to get a list or collection of all SalesOrders that meet the folowing criteria:

  • Have a WarehouseKey.ID equal to “test”, “lucmo” or “Inno”
  • Have Lines that have a QuantityToBackorder greater than 0
  • Have Lines that have a RequestedShipDate greater than current day.

I’ve succesfully used these two methods to retrieve documents, but I can’t figure out how return only the ones that meet above criteria.

http://msdn.microsoft.com/en-us/library/cc508527.aspx

http://msdn.microsoft.com/en-us/library/cc508537.aspx

Please help!

  • 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-05-23T09:40:54+00:00Added an answer on May 23, 2026 at 9:40 am

    Short answer: your query isn’t possible through the GP Web Services. Even your warehouse key isn’t an accepted criteria for GetSalesOrderList. To do what you want, you’ll need to drop to eConnect or direct table access. eConnect has come a long way in .Net if you use the Microsoft.Dynamics.GP.eConnect and Microsoft.Dynamics.GP.eConnect.Serialization libraries (which I highly recommend). Even in eConnect, you’re stuck with querying based on the document header rather than line item values, though, so direct table access may be the only way you’re going to make it work.

    In eConnect, the key piece you’ll need is generating a valid RQeConnectOutType. Note the “ForList = 1” part. That’s important. Since I’ve done something similar, here’s what it might start out as (you’d need to experiment with the capabilities of the WhereClause, I’ve never done more than a straightforward equal):

    private RQeConnectOutType getRequest(string warehouseId)
    {
        eConnectOut outDoc = new eConnectOut()
        {
            DOCTYPE = "Sales_Transaction",
            OUTPUTTYPE = 1,
            FORLIST = 1,
            INDEX1FROM = "A001",
            INDEX1TO = "Z001",
            WhereClause = string.Format("WarehouseId = '{0}'", warehouseId)
        };
        RQeConnectOutType outType = new RQeConnectOutType()
        {
            eConnectOut = outDoc
        };
        return outType;
    }
    

    If you have to drop to direct table access, I recommend going through one of the built-in views. In this case, it looks like ReqSOLineView has the fields you need (LOCNCODE for the warehouseIds, QTYBAOR for backordered quantity, and ReqShipDate for requested ship date). Pull the SOPNUMBE and use them in a call to GetSalesOrderByKey.

    And yes, hybrid solutions kinda suck rocks, but I’ve found you really have to adapt if you’re going to use GP Web Services for anything with any complexity to it. Personally, I isolate my libraries by access type and then use libraries specific to whatever process I’m using to coordinate them. So I have Integration.GPWebServices, Integration.eConnect, and Integration.Data libraries that I use practically everywhere and then my individual process libraries coordinate on top of those.

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

Sidebar

Related Questions

I have a web application that will need to access code behind methods as
My web application needs to get the results of all the items which have
I have MVC3 web application where we need to populate radio button list with
I need to get list of valid countries for web application, is there any
I was wondering what do i need to get my asp.net web application installed
I'm writing a web application and need to initialize some parameters that I'm pulling
I am building a web application that will need to allow users to save
I've been tasked with porting/refactoring a Web Application Platform that we have from ASP.NET
I am working on web application .net 3.5,asp.net,C#. In that i need to provide
I am creating a web application that acts as a priority list, allowing a

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.