Create Customer with AIF - AX 2012

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

Do you mind posting your entire code ? I can help you :slight_smile: Just makes it clearer to see the whole picture.

Cheers,
S