Hi All,
I have a customer and want to add the address for the particular customer and I am using data entity it works fine for the below code when I use the below code in a unable class
CustomerPostalAddressEntity CustomerPostalAddressEntity;
CustomerPostalAddressEntity.CustomerAccountNumber = "testcustaccount1";
CustomerPostalAddressEntity.AddressDescription = "test address";
CustomerPostalAddressEntity.AddressCountryRegionISOCode = "SGP";
CustomerPostalAddressEntity.Effective = today();
CustomerPostalAddressEntity.Expiration = dateMax();
CustomerPostalAddressEntity.CustomerLegalEntityId = "TE";
CustomerPostalAddressEntity.AddressZipCode = "050004";
CustomerPostalAddressEntity.IsPrimary = NoYes::No;
CustomerPostalAddressEntity.AddressDefaultRoles = "Business";
CustomerPostalAddressEntity.insert();
How ever when I change the CustomerPostalAddressEntity.AddressDefaultRoles = "Delivery";
This gives an error
"Role is not associated with a party and location "
Please help me out on this.