Skip to main content
Answer

SOShipmentEntry graph extension: how do I find the Warehouse (IN204000) Address?

  • January 16, 2025
  • 2 replies
  • 35 views

Forum|alt.badge.img+2

I have the SiteID, SiteCD (Warehouse ID), BAccountID.   How do I grab the address information, using C#, from the Address table on the Warehouse (IN204000) page?

Best answer by DipakNilkanth

Hi ​@bpgraves,

I believe below BQL query helps you to fetch the address.

Address address = SelectFrom<Address>                          .InnerJoin<INSite>.On<Address.addressID.IsEqual<INSite.addressID>> .Where<INSite.siteID.IsEqual<@P.AsInt>>

                          .View.Select(graph, siteID);

 

Hope, it helps!

2 replies

DipakNilkanth
Pro III
Forum|alt.badge.img+13
  • Pro III
  • Answer
  • January 16, 2025

Hi ​@bpgraves,

I believe below BQL query helps you to fetch the address.

Address address = SelectFrom<Address>                          .InnerJoin<INSite>.On<Address.addressID.IsEqual<INSite.addressID>> .Where<INSite.siteID.IsEqual<@P.AsInt>>

                          .View.Select(graph, siteID);

 

Hope, it helps!


Forum|alt.badge.img+2
  • Author
  • Semi-Pro I
  • January 16, 2025

Hi ​@bpgraves,

I believe below BQL query helps you to fetch the address.

Address address = SelectFrom<Address>                          .InnerJoin<INSite>.On<Address.addressID.IsEqual<INSite.addressID>> .Where<INSite.siteID.IsEqual<@P.AsInt>>

                          .View.Select(graph, siteID);

 

Hope, it helps!

I’m getting a compiler error on @P what is this?  Never mind.  I was missing “using PX.Data.BQL;”