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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How can i coding Method for getting Field Fax,Telex Fax,Phone no. from LogisticsElectronicsAddress

(0) ShareShare
ReportReport
Posted on by 245

any body, can write sample of method for for getting Field  Fax,Telex Fax,Phone no. from LogisticsElectronicsAddress , Thank you very munch

*This post is locked for comments

I have the same question (0)
  • jasman Profile Picture
    1,413 on at

    static void Job189(Args _args)
    {
        DirParty        dirParty;
        LogisticsLocationEntity lle;
        CustTable   customer;

        customer = CustTable::find("‪‪‪1707303");
        dirParty = dirParty::constructFromCommon(customer);
        lle = dirParty.getPrimaryElectronicAddressLocation();
        info(lle.getEmail());
        info(lle.getTeleFax());
        info(lle.getPhone());
        info(lle.getTelex());
    }

  • axapta thailand Profile Picture
    245 on at

    Dear Jacob

      Thank you , and. I would like display method for display Sepperate column in  form , on vendTable

  • Verified answer
    jasman Profile Picture
    1,413 on at

    On Vendtable there are already three display methods called phone, telefax and telex. (This is in an AX 2012 R2). Use those.

  • Suggested answer
    axapta thailand Profile Picture
    245 on at

    thank you very munch

  • jasman Profile Picture
    1,413 on at

    You are welcome.

  • axapta thailand Profile Picture
    245 on at

    Dear Jacop

           i would like to get description value of ( Phone,Telefax and telex) field, how i can do it,  

  • Verified answer
    jasman Profile Picture
    1,413 on at

    Consider duplicating the display methods mentioned above.

    Change the return type of the method to Description.

    Change the last line of code so that it returns the description field instead of the locator:

    E.g. change

       return electronicAddress ? electronicAddress.Locator : '';

    to

       return electronicAddress ? electronicAddress.Description : '';

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans