Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: Display Primary Contact Address on Contact List Page

$
0
0

The address field has all the data (State, City, Country, ZipCode ect)

if its is not returning that means your setup of address needed to be fixed, and addresses' has to be update as per new setup.

Moreover, you can also get address part by part as under

display LogisticsAddressing primaryAddressByParts()
{
    LogisticsPostalAddress lclLogisticsPostalAddress;
    str retString;
    
    lclLogisticsPostalAddress = this.findPrimaryAddress();
    
    retString = strFmt('Steert: %1 City: %2 State: %3 ZipCode:%4 Country:%5',
                        lclLogisticsPostalAddress.Street
                       ,lclLogisticsPostalAddress.City
                       ,lclLogisticsPostalAddress.State
                       ,lclLogisticsPostalAddress.ZipCode
                       ,lclLogisticsPostalAddress.CountryRegionId
                      );
    
    return retString ;
}

Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>