Working with Model/Extensions (Part 2) - D365
Use objects of other models in our custom model and solve reference error. In this part we will solve the common issue usually faced at the beginner stage while development in D365. Let's say we need to search for the attachment in a sales order. We will find it through job using x++ query. Create a job ( Runnable class ) We need to use DocuRef table in our query to search for the attachments of the sales order. Now, when we build the project it will show the error shown below in the image. Following error " does not denote a class. . . " usually occurs when the model of the project does not refer to the model of the objects using in it. DocuRef table belongs to the other model i.e. Application Foundation. Which is not included in our custom model AXGuru_Customizations. We need to update our model which we have previously discussed the steps in Part 1 . For ease, I am showing steps here too. Go to...