web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to get store address from LogisticsPostalAddress Table

(0) ShareShare
ReportReport
Posted on by

Hi All, 

i have data source table RetailTransactionPaymentTrans,  i want to get state, county, and address fields from LogisticsPostalAddress Table, i'm using this peace of code but still faild...

str storeVale, storeValue2, storeValue3;

container workFlowContainer;

while select logisticsPostalAddress
join logisticsPostalAddress
where retailTransactionTable.LogisticsPostalAddress== logisticsPostalAddress.RecId
join retailTransactionTable
where retailTransactionTable.transactionId== paymentTransTable.transactionId
|| retailTransactionTable.store== paymentTransTable.store
|| retailTransactionTable.terminal== paymentTransTable.terminal

storeVale = postalAddressView.County;
storeValue2 = postalAddressView.Address;
storeValue3 = postalAddressView.State;

workFlowContainer = conIns(workFlowContainer,1, storeVale);
workFlowContainer = conIns(workFlowContainer,2, storeValue2);
workFlowContainer = conIns(workFlowContainer,3, storeValue3);
return workFlowContainer;

... please help me where i miss the logic ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,284 on at
    RE: how to get store address from LogisticsPostalAddress Table

    I think you need to rewrite it a bit :


    select logisticsPostalAddressView join retailTransactionTable where retailTransactionTable.LogisticsPostalAddress == logisticsPostalAddressView.RecId && retailTransactionTable.transactionId == paymentTransTable.transactionId && retailTransactionTable.store == paymentTransTable.store && retailTransactionTable.terminal == paymentTransTable.terminal


     

  • Community Member Profile Picture
    on at
    RE: how to get store address from LogisticsPostalAddress Table

    Hi ievgen,

    i tried it but still failed,  can we use built-in methods like :

    salesRemittanceTemp.LocationName=logisticsPostalAddress::findByLocation(CompanyInfo::find().postalAddress() .Location).Address;

  • Mea_ Profile Picture
    60,284 on at
    RE: how to get store address from LogisticsPostalAddress Table

    Yes you can,

    retailTransactionPaymentTrans.TransactionTable().deliveryAddress().Address;

    However what are you trying to get store address or delivery address ?

  • Community Member Profile Picture
    on at
    RE: how to get store address from LogisticsPostalAddress Table

    store location address

  • Mea_ Profile Picture
    60,284 on at
    RE: how to get store address from LogisticsPostalAddress Table

    How do you want to find a store ?

    Do you know store id or you have payment transaction record \ store record ?

  • Community Member Profile Picture
    on at
    RE: how to get store address from LogisticsPostalAddress Table

    basically its warehouse location , i'm using storeID

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#2
Michele Gozzi Profile Picture

Michele Gozzi 2

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans