publicstaticbooleanexistsSerial(str20_serial){return_serial&&(selectfirstOnlyRecIdfrominventSerial/* index hint GroupIdx //index hint is IGNORED in AX 2012. */whereinventSerial.InventSerialId==_serial).RecId!=0;}
[SysEntryPointAttribute(true), AifCollectionTypeAttribute('return', Types::Enum)]publicYourServiceDataContractexistSerials(str20_serial){dataContract=newYourServiceDataContract();try{selectfirstOnlyInventSerialIdfrominventSerialwhereinventSerial.InventSerialId==_serial;}catch(Exception::error){error("There was an error getting the record.");}if(inventSerial.RecId!=0){dataContract.parmExistSerial(true);}else{dataContract.parmExistSerial(false);}returndataContract;}
Comments !