D365F&O - X++ - The first parameter of AifCollectionTypeAttribute must match either a parameter of the method it is defined on or "return".

 The value in your attribute calls the parameter in method definition which is _TestParm in our case.

[DataMemberAttribute ("TestClass"),
AifCollectionTypeAttribute('_TestParm', Types::Class, classStr(CustClass)),
AifCollectionTypeAttribute('return', Types::Class, classStr(CustClass))]
public List parmTestMethod(List _TestParm = TestParm)
{
    TestParm = _TestParm;
    return TestParm;
}
   

Comments

Popular posts from this blog

D365F&O - X++ - Best Practice Warning BP Rule: [BPErrorUnknownLabel]: Path:

D365F&O - X++ - How to Enable/Disable button on form based on a condition in D365F&O using Event handlers.

D365FO - X++ - Generate CAR (Customized Analysis Report) report of custom model