Posts

Showing posts from January, 2025

Insert Customer VAT number and Registration Type Manually from backend (SQL) Query in D365 F&O

 -----Insert Registration Types---------- insert into TAXREGISTRATION(TaxRegistrationTypeApplicabilityRule, REGISTRATIONNUMBER,DirPartyLocation,VALIDTO) select TAXREGISTRATIONTYPE.RECID,'300187978800003',(select top 1 RECID from DIRPARTYLOCATION where LOCATION=(select top 1 RECID from LogisticsLocation  where LOCATIONID='000012001')),'2154-12-31 00:00:00.000' from   TAXREGISTRATIONTYPE where  TAXREGISTRATIONTYPE.TAXREGSTRATIONTYPE='TRN'

how to get item attribute value on d365 fo x++

     public str getAttributeValue(ItemId _itemid, str _AttrName)     {         inventTable                     InventTable;         EcoResProductAttributeValue     ecoResProductAttributeValue;         EcoResAttribute                 ecoResAttribute;         EcoResValue                     ecoResValue;         select * from         InventTable         join EcoResProductAttributeValue         where ecoResProductAttributeValue.Product == InventTable.Product         &&  InventTable.itemid == _itemid         join  ecoResAttribute         where ecoResProductAttributeV...