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 :
Supply chain | Supply Chain Management, Commerce
Answered

How to get Customer Phone number (telephone) from LogisticsElectronicAddress Table in SMASalesOrderTable form (Service Order in service Management Module)

(0) ShareShare
ReportReport
Posted on by 206

Hello experts,

I need to display customer phone number in SMAServiceOrderTable. I have checked that customer phone number is coming from LogisticsElectronicAddress Table in smmContactPerson form. But I do not get any relation between LogisticsElectronicAddress and SMAServiceOrderTable Table. 

Your suggestions would highly be appreciated. 

Here are the screenshots:

pastedimage1665643380342v1.png

pastedimage1665643436528v2.png

I have the same question (0)
  • Verified answer
    nunomaia Profile Picture
    23 Moderator on at
    RE: How to get Customer Phone number (telephone) from LogisticsElectronicAddress Table in SMASalesOrderTable form (Service Order in service Management Module)

    SMAServiceOrderTable is related to table named ContactPerson

    Contact Person is related to PartyTable.

    If you can relationship between PartyTable and LogisticsElectronicAddress in mtehod phone of ContactPerson

    pastedimage1665647376858v1.png

  • Arif Hussain Profile Picture
    206 on at
    RE: How to get Customer Phone number (telephone) from LogisticsElectronicAddress Table in SMASalesOrderTable form (Service Order in service Management Module)

    Hi nunomaia ,

    Thank you for your response. Yes you are right I have checked it. But still I am confused how to display the ContactPersonPhone in SMAServiceOrderTable. Can you please provide your suggestion on this?

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: How to get Customer Phone number (telephone) from LogisticsElectronicAddress Table in SMASalesOrderTable form (Service Order in service Management Module)

    Hi Arif,

    As Nuno Maia mentioned the table relations, You can create a display method based on the relation in the service order form to display contact person phone number.

    Thanks,

    Girish S.

  • Arif Hussain Profile Picture
    206 on at
    RE: How to get Customer Phone number (telephone) from LogisticsElectronicAddress Table in SMASalesOrderTable form (Service Order in service Management Module)

    [ExtensionOf(tablestr(SMAServiceOrderTable))]
    final class SMAServiceOrderTable_Extension
    {
        public display ContactPersonPhone phone()
        {
            return ContactPerson::find(this.ContactPersonId).phone();
        }
    
    }

    Thank you nunomaia , GirishS 

    I really appreciate your response. Above is the code which display's the ContactPersonPhone in SMAServiceOrderTable form. 

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 876

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 264 Super User 2025 Season 2

#3
Sagar Suman Profile Picture

Sagar Suman 210 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans