Showing posts with label Customer Contact Information. Show all posts
Showing posts with label Customer Contact Information. Show all posts

Sunday, July 2, 2023

Get customer multiple contact details in dynamics 365 F&O X++

     CustTable                       custTable;

     LogisticsElectronicAddress       logisticsElectronicAddress;

     DirPartyLocation                 dirLocation;

     DAX_ContactInformation           dAX_ContactInformation;

      DirPartyTable dirPartyTable = DirPartyTable::findRec('12345');

       while select dirLocation

           where dirLocation.party == dirPartyTable.RecId

       {

       while select  logisticsElectronicAddress

          where dirLocation.Location == logisticsElectronicAddress.Location

          

       {

           dAX_ContactInformation.Locator = logisticsElectronicAddress.Locator;

           dAX_ContactInformation.Description = logisticsElectronicAddress.Description;

           dAX_ContactInformation.LocatorExtension= logisticsElectronicAddress.LocatorExtension;

           dAX_ContactInformation.Type             = logisticsElectronicAddress.Type;

           dAX_ContactInformation.insert();

   

          

       }

}

        

Purchase Orders

 Before confirming a Purchase Order, the system should display a confirmation popup if the purchase order is associated with an active inter...