Tuesday, March 6, 2012

Adding calculated field in Dynamics Ax 2012 AIF Data policy

Sometime, it required to add few fields which are unbounded, i.e. not directly available in a table or query pertaining to AIF service class. These calculated fields are made available using a parm() method. 

For example, in the existing CustCustomerService, we need to send the trading partner company id. In this case, we will create a parm method named as parmIntercompanyComapnyId().

Write down these method in the AIF artifacts of type AxBc class for the underlying table.



Refresh the AIFService form from AOT. This will list down the new fields in the document data policy form.


 

1 comment:

  1. SO we dont need to create set and exist method for the same?

    ReplyDelete