<?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=531" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Kontaktinformation zu einer Entität hinzufügen]]></title>
<description><![CDATA[
<p>Anbei ein Beispiel, wie man per Code zu einem bestehenden Eintrag im Globalen Adressbuch Kontaktinformationen hinzuf&uuml;gen kann.
</p>


<pre class="pre_blog_axcode">
static void createPartyContactInfo(Args _args)
{
    DirPartyTable dirPartyTable = DirPartyTable::findByNum(??&quot;100000&quot;);
    DirParty dirParty;
    DirPartyContactInfoView dirPartyContactInfoView;

    // Edit Global address book
    dirParty = DirParty::constructFromCommon(dirPartyTable, DirUtility::getCurrentDateTime(), DirPartyType::Organization);

    // Create contact info
    dirPartyContactInfoView.LocationName    =&#39;Office&#39;;
    dirPartyContactInfoView.Locator         =&#39;+43 1 4654646&#39;;
    dirPartyContactInfoView.Type            = LogisticsElectronicAddressMethodType::Phone;
    dirPartyContactInfoView.IsPrimary       = NoYes::Yes;

    dirParty.createOrUpdateContactInfo(dirPartyContactInfoView);
}
</pre>


<p>Im AX stellt sich ein solcher Eintrag wie folgt dar:
</p>


<p><a href="http://www.schweda.net/pictures/blogpics/ax2012_create_contactinfo.jpg" rel="lightbox" target="_blank"><img alt="Screenshot" height="662" src="http://www.schweda.net/pictures/blogpics/ax2012_create_contactinfo.jpg" title="Screenshot" width="717" /></a>
</p>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Thu, 14 May 2015 14:46:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=531</link>
<comments>https://www.schweda.net/blog_ax.php?bid=531</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=531</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=531</wfw:commentRss>
</item>
</channel>
</rss>	
