Hi, when you call codeunit (fCustomFunction.RUN), it only calls the the 'Run' trigger in the codeunit, but not your actual function 'fCustomFunction'. You have to make the function as 'global', and call fCustomFunction.fCustomFunction(Rec); Hope that makes sense Robertas
↧