<?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://www.schweda.net/blog_rss.php?bid=534" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Erstellen einer Lieferadresse per Code]]></title>
<description><![CDATA[
<p>Die nachstehenden Zeilen Code zeigen ein Beispiel, wie man per X++ eine (nicht prim&auml;re) Adresse f&uuml;r eine vorhandene Partei im <strong>Globalen Adressbuch</strong> erstellen kann.
</p>


<p>Dabei wird gleichzeitig &uuml;ber den Base Enum <em>LogisticsLocationRoleType </em>der Typ der Adresse als <strong>Lieferadresse </strong>angegeben, nat&uuml;rlich ist es auch m&ouml;glich, der Adresse einen anderen Typ zuzuweisen.
</p>


<pre class="pre_blog_axcode">
static void createPartyDeliveryAddressNonPrimary(Args _args)
{
    DirPartyTable dirPartyTable = DirPartyTable::findByNum(&quot;?100000??&quot;);
    DirParty dirParty;
    DirPartyPostalAddressView dirPartyPostalAddressView;

    // Create instance of dirParty
    dirParty = DirParty::constructFromCommon(dirPartyTable, DirUtility::getCurrentDateTime(), DirPartyType::Organization);

    // Create primary address
    dirPartyPostalAddressView.LocationName      = &quot;Delivery&quot;;
    dirPartyPostalAddressView.City              = &quot;Vienna&quot;;
    dirPartyPostalAddressView.Street            = &quot;K&auml;rtnerring&quot;;
    dirPartyPostalAddressView.StreetNumber      = &quot;21&quot;;
    dirPartyPostalAddressView.CountryRegionId   = &quot;AUT&quot;;
    dirPartyPostalAddressView.IsPrimary         = NoYes::No;

    dirParty.createOrUpdatePostalAddress(dirPartyPostalAddressView,
&nbsp;       [LogisticsLocationRole::findBytype(LogisticsLocationRoleType::Delivery).RecId]);
}
</pre>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sun, 21 Dec 2014 15:03:00 +0100</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=534</link>
<comments>https://www.schweda.net/blog_ax.php?bid=534</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=534</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=534</wfw:commentRss>
</item>
</channel>
</rss>	
