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 :
Finance | Project Operations, Human Resources, ...
Answered

How to get LogisticsElectronicAddress's Cellphone ?

(0) ShareShare
ReportReport
Posted on by 319

Hello All,

I need to get the  ContactPerson's CellPhone in SalesQuotationTable.

I can't get the relation.

Please help and thank you.

I checked the table relation:

LogisticsElectronicAddress.Type=Cellphone, I need to get the Locator.

I try:

SalesQuotationTable.ContactPersonId == ContactPerson.ContactPersonId

ContactPerson.Party == DirpartyTable.RecId

LogisticsElectronicAddress.PrivateForParty == DirPartyTable.RecId

but I check the LogisticsElectronicAddress.PrivateForParty == 0 not DirPartyTable.RecId == 5637228576

Please help.

Br, Jen

I have the same question (0)
  • Blue Wang Profile Picture
    Microsoft Employee on at

    Hi Jen,

    LogisticsElectronicAddressMethodType::Phone for Phone Number.

    You can refer this:

    https://axchaitu.wordpress.com/2015/12/04/get-email-phone-from-custtable-or-dirpartytable/

  • Suggested answer
    Satish Panwar Profile Picture
    14,673 Moderator on at

    Hi Jen,

    You can use something like below in your relations to get the data.

    pastedimage1575531736292v1.png

    select CONTACTPERSONid, CUSTACCOUNT,* from SALESQUOTATIONTABLE where DATAAREAID = 'usmf' and QUOTATIONID = '000007'


    select party from CONTACTPERSON where CONTACTPERSONID ='000001' and CUSTACCOUNT = 'us-008'

    select b.LOCATOR, * from DIRPARTYLOCATION a inner join LOGISTICSELECTRONICADDRESS b on a.LOCATION = b.LOCATION and a.party = '22565445701' and b.TYPE = 1

    pastedimage1575531754987v2.png

  • Suggested answer
    Satish Panwar Profile Picture
    14,673 Moderator on at

    Hi Jen,

    You can use something like below in your relations to get the data.

    4786.pastedimage1575531736292v1.png

    select CONTACTPERSONid, CUSTACCOUNT,* from SALESQUOTATIONTABLE where DATAAREAID = 'usmf' and QUOTATIONID = '000007'


    select party from CONTACTPERSON where CONTACTPERSONID ='000001' and CUSTACCOUNT = 'us-008'

    select b.LOCATOR, * from DIRPARTYLOCATION a inner join LOGISTICSELECTRONICADDRESS b on a.LOCATION = b.LOCATION and a.party = '22565445701' and b.TYPE = 1

    6866.pastedimage1575531754987v2.png

  • Satish Panwar Profile Picture
    14,673 Moderator on at

    Hi Jen,

    Please let us know if above suggestion helped by clicking yes against the answer. If you still have open questions, please let us know.

  • Suggested answer
    Ehab_altammam Profile Picture
    150 on at

    Hi ATMA-JEN

    try to use something std ,will save your time and effort ,

    in the sales quotation table  a method called Contactperson() and in the contactperson table method phone()

    so actually what you need a single line of code

    salesqoutationtable.contactperson().phone()

    Please mark the answer as yes if this helped

  • ATMA-Jen Profile Picture
    319 on at

    Hello All,

    I still no get the solution about how to get the LogisticsLocation.Type = CellPhone's Locator, to get the SalesQuotation's contactor's cellphone.

    AX Table relation:

    If I know the LogisticsLocation.LocationId then

    I  can get LogisticsLocation.RecId == LogisticsElectronicAddress.Location

    Then

    I can get when LogisticsElectronicAddress.Type = cellphone, then the cellphone number is LogisticdElectronicAddress.Locator's value.

    so

    Could anybody tell me how to get the LogisticsLocation.LocationId from the SalesQuotationTable ??

    Thank you.

    Br, Jen

  • Ehab_altammam Profile Picture
    150 on at

    Hi Jen ,

    why not to use the code provided above in my prev comment ,or do you need something in the SQL side ?

  • ATMA-Jen Profile Picture
    319 on at

    Hello Ehab,

    salesqoutationtable.contactperson().phone(), cant get phone, but can't get the cell phone,

    I check because the privateforparty is different:

    20191217.jpg

    if can get the location relation , that's could solved my problem:

    20191217_2D00_1.jpg

  • ATMA-Jen Profile Picture
    319 on at

    Hello Ehab,

    about the phone method code:

    20191217_2D00_2.jpg

    so I think if could know the relation between SalesQuotationTable with LogisticsElectronicAddress Table,

    maybe is the best solution.

    Thank you.

    Br, Jen

  • Verified answer
    Ehab_altammam Profile Picture
    150 on at

    Ah sorry ,

    you can use these views :DirPartyContactInfoView, LogisticsEntityContactInfoView ,LogisticsContactInfoView

    it has the party Id ( Entity ) and you can get the party id from the Contractperson table ... and use can  filter in the flag is mobile .

    Please let me know if that help

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans