ID assignment in composite entity

When importing a composite entity with headers and lines to D365 F&O, you can let the system assign IDs and apply them to both headers and lines. For example, I can import the following file with sales order data: <?xml version="1.0" encoding="utf-8"?> <Document> <SALESORDERHEADERV3ENTITY> <ORDERINGCUSTOMERACCOUNTNUMBER>CustA</ORDERINGCUSTOMERACCOUNTNUMBER> <SALESORDERLINEV2ENTITY> <ITEMNUMBER>ItemA</ITEMNUMBER> <ORDEREDSALESQUANTITY>1</ORDEREDSALESQUANTITY> </SALESORDERLINEV2ENTITY> <SALESORDERLINEV2ENTITY> <ITEMNUMBER>ItemB</ITEMNUMBER> <ORDEREDSALESQUANTITY>2</ORDEREDSALESQUANTITY> </SALESORDERLINEV2ENTITY> </SALESORDERHEADERV3ENTITY> <SALESORDERHEADERV3ENTITY> …

Continue reading ‘ID assignment in composite entity’ »

Year in number sequence (AX2012)

I’ve noticed a lot of questions in discussion forums about how to add year to a number sequence in AX2012, e.g. to generate IDs such as 2013-xxxxx and 2014-xxxxx, that would automatically use the current year. Some people understand that number sequence scopes should allow that, but they don’t know how. Fortunately it’s not only …

Continue reading ‘Year in number sequence (AX2012)’ »