Modify Triggers of Existing Report in BC D365:
(1) In this blog, we get to know about the modification or adding logic in the existing triggers. For this open the VS editor and create a report extension object and follow the steps as shown below.
(2) In this example, I want to do changes in the “Purchase Header” DataItem → onAfterGetRecord trigger. For this use the “Modify” syntax and do the changes as shown in the figure.
(3) After doing the above step, publish the object and see the result. You can modify any trigger of DataItem, as per the business requirement.