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

RE: How to get Invoice Address from CustCustomerService

$
0
0

Here's the solution:

MyCustCustomerService.AxdEntity_CustTable _CustCustTable = custResp.CustTable.First();
foreach (var dirParty in _CustCustTable.DirParty[0].DirPartyPostalAddressView)
{
if (dirParty.Roles.Contains("Invoice"))
{
DealerAddrTextBox1.Text = dirParty.Street;
DealerCSZipTextBox.Text = dirParty.City + ", " + dirParty.State + " " + dirParty.ZipCode;
DealerCountry.Text = dirParty.CountryRegionId;
}
}



Viewing all articles
Browse latest Browse all 175888

Trending Articles



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