Hello awesome community! I'm new to D365 development and i'm working on a report using DP class that requires me to show current company's information (Address, Phone, TeleFax).
There are multiple codes in the internet, tried some but unfortunately I couldn't get the information.
If possible can you give me a simple code that shows these information?
I appreciate your help and thanks in advance!
CompanyInfo companyInfo = CompanyInfo::find();
wmsPickingList_OrderPickTmpTemplate.CompanyCoRegNum = CompanyInfo.CoRegNum;
wmsPickingList_OrderPickTmpTemplate.CompanyPhone = companyInfo.phone();
wmsPickingList_OrderPickTmpTemplate.CompanyTeleFax = companyInfo.teleFax();
wmsPickingList_OrderPickTmpTemplate.CompanyAddress = companyInfo.postalAddress().Address;