<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.schweda.net/style_feed.css" ?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:atom="http://www.w3.org/2005/Atom"	
	xmlns:dc="http://purl.org/dc/elements/1.1/" > 
<channel>
    <title>schweda.net - Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Blog - Blog-Beitraege</description>
    <language>de-at</language>
    <copyright>Copyright 2006-2026</copyright>
    <generator>schweda.net</generator>
    <managingEditor>heinz.schweda@schweda.net (Heinz Schweda)</managingEditor>
    <webMaster>heinz.schweda@schweda.net (Heinz Schweda)</webMaster>
    <category>Blog</category>
	<atom:link href="https://schweda.net/blog_rss.php?bid=527" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[(Liefer-)Adresse einer Partei ermitteln]]></title>
<description><![CDATA[
<p>Der hier vorgestellt Job ermittelt die Lieferadresse eines Debitoren. Dabei wird die zuerst gefundene (sollte der Debitor mehrere Lieferadressen haben) &uuml;ber das Infolog ausgegeben.
</p>


<p>Statt&nbsp;einem Debitoren kann nat&uuml;rlich jede andere Entit&auml;t, die im Globalen Adressbuch gespeichert ist (Kreditoren, Personen, ...), abgefragt werden.
</p>


<pre class="pre_blog_axcode">
static void getAddressFromParty(Args _args)
{
    CustTable custTable = CustTable::find(&#39;US-003&#39;);
    Addressing addressing;

    // Get (first found) delivery address (denormalized)
    addressing =
    DirParty::getPostalAddressByType(custTable.Party, LogisticsLocationRoleType::Delivery);

    info(addressing);
}
</pre>


<p>Auf diese Art &amp;&nbsp;Weise lassen sich nat&uuml;rlich auch andere Adressen ermitteln, im Beispiel die Zahlungsadresse:
</p>


<pre class="pre_blog_axcode">
static void getAddressFromParty(Args _args)
{
    CustTable custTable = CustTable::find(&#39;US-003&#39;);
    Addressing addressing;

    // Get (first found) payment address
    addressing =
    DirParty::getPostalAddressByType(custTable.Party, LogisticsLocationRoleType::Payment);

    info(addressing);
}
</pre>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Mon, 11 Aug 2014 21:14:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=527</link>
<comments>https://www.schweda.net/blog_ax.php?bid=527</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=527</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=527</wfw:commentRss>
</item>
</channel>
</rss>	
