Question

I am working on integrating our e-commerce system with dynamics nav on the backend. I create a customer if it doesn't yet exist. All of the fields seem to stick EXCEPT for 'County.' When I do a Read on an existing customer, County is filled in with the correct data.

Oddly enough, when I create the sales order, neither Ship_To_County, Bill_To_County nor Sell_To_County seem to stick there either.

EDIT

I exposed the Sales Order page as a webservice.

Was it helpful?

Solution 2

Turns out this was caused by incomplete data entered into the system. Entering a Zip Code was triggering a look-up in the Post Code table. Only this table had blank entries for County. This caused both city and state to be overridden once the user tabbed out of the field.

The answer is to disable this functionality. Zip Codes do not respect city boundaries (i.e., there can be multiple cities in a zip code), and they don't have to respect state boundaries either. Having the system override what the user entered in makes no sense.

OTHER TIPS

Check the underlying table object. There may be code in the OnInsert or OnModify (for that field) that is overriding whatever you have passed in.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top