How to solve [BPUnusedStrFmtArgument]:The placeholder ‘%1’ to strFmt is not used in the format string

To resolve the best practice warning [BPUnusedStrFmtArgument]:The placeholder ‘%1’ to strFmt is not used in the format string use the following technique:

From an expression like this:

info(strFmt("@MyModule:ProJInvoice1Error", prjInvoiceError.ProjInvoiceId));

Add literalStr() for label string validation:

info(strFmt(literalStr("@MyModule:ProJInvoice1Error"), prjInvoiceError.ProjInvoiceId));

Lascia un commento