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

Announcements

No record found.

News and Announcements icon
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,286 on at

    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

    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,286 on at

    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

    store location address

  • Mea_ Profile Picture
    60,286 on at

    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

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans