mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-08 10:26:52 +01:00
Add CMFRT best practices and anti-patterns documentation for various coding standards
This commit is contained in:
parent
cfcf16a00e
commit
906ddcfd72
21 changed files with 427 additions and 5 deletions
9
custom/knowledge/patterns/cmfrt-maxstrlen-copystr.bad.al
Normal file
9
custom/knowledge/patterns/cmfrt-maxstrlen-copystr.bad.al
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
codeunit 55028 "CMFRT AQ FS Item Attr Push"
|
||||
{
|
||||
local procedure DoCMFRTAQInitAPILogEntry(var CMFRTAQAPILog: Record "CMFRT AQ API Log"; ErrorText: Text)
|
||||
begin
|
||||
// Literal lengths diverge from the field definition on the first schema change.
|
||||
CMFRTAQAPILog."CMFRT AQ User ID" := CopyStr(UserId(), 1, 50);
|
||||
CMFRTAQAPILog."CMFRT AQ Error Message" := CopyStr(ErrorText, 1, 250);
|
||||
end;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue