Friday, October 29, 2021

Exist method in D365 FO

 static boolean exist(CustGroupId custGroupId)

{

    return custGroupId 

        && (select firstOnly RecId from custGroup

            where custGroup.custGroup == custGroupId).RecId != 0;

}