Get company address using x++ in D365FO
To get company address using x++ is a two line solution. I have seen many times that developers/consultants are confused about how to get the value. Below is the picture in which I have high-lightened the field which we will get using the code.
I have written the following code. You can also get this code from here. To execute and test the code, create a Class (Runnable Job) and paste the code in it. And then execute the class.
When you will execute the class, you will get the company address printed on the screen as follows:
So, this is how you can get company address using x++ in D365FO. If this helps you, please Like, Comment and Share to help other people.
If you found any ambiguity or a better solution, please feel free to ask.
Download code: Click here
Blog: Click here
YouTube: Click here
GitHub: Click here
Those who cannot change their minds cannot change anything. – George Bernard Shaw