Monday 7 May 2018

Simple Exist Method in Ax 2012

//Exist Method in ax 2012
static boolean exist(CustGroupId custGroupId)
{
    return custGroupId
        && (select firstOnly RecId from custGroup
            index hint GroupIdx
            where custGroup.custGroup == custGroupId).RecId != 0;
}

No comments:

Post a Comment