Var enumerator = entityNames.getEnumerator(); while (enumerator.MoveNext()) { Microsoft.Dynamics.AX.Metadata.MetaModel.AxDataEntityView DataEntity = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetDataEntityView(enumerator.Current); //matching with publicname of the entity if(DataEntity.PublicEntityName == parentNodeName) { entityName = DataEntity.Name; dictTable = new SysDictTable(tableName2Id(entityName)); dictDataEntity = new DictDataEntity(tableName2Id(entityName)); common = dictDataEntity.makeRecord(); break; } } ttsbegin; dictDataEntity.callObject("Write", common); ttscommit;
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Monday, September 25, 2023
Call insert or update for dataentity
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment