Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Create Customer with AIF - AX 2012

$
0
0

I'm trying to use the AIF to create a customer with AX 2012. I'm partially successful so far using the article found here: http://blogs.msdn.com/b/axsupport/archive/2011/10/13/calling-services-in-ax-2012.aspx#comments

 

However, the part which inserts an electronic address for a customer doesn't seem to be working and an error isn't thrown either, it just fails silently and I have no idea why. The code I'm using is:

            //Create an electronic address
            AxdEntity_DirPartyContactInfoView electronicAddress = new AxdEntity_DirPartyContactInfoView();
            electronicAddress.LocationName = "Contact Email";
            electronicAddress.Type = AxdEnum_LogisticsElectronicAddressMethodType.Email;
            electronicAddress.TypeSpecified = true;
            electronicAddress.Locator = "beckynewell@madeup.com";
            electronicAddress.Roles = "Home";

 

Any help is appreciated! Thanks


Viewing all articles
Browse latest Browse all 15740

Trending Articles