How to add warning messages in Application composer, Change order server scripts - Validation Rules.
I have written a Field validation rule under Change order - Server scripts on status change.
The script contains an exception which throws error message when a condition is satisfied, but since the exception restricts status change, I also wanted to add warning message for another condition in the same code so that it doesn't restrict the status change.
if (urlAttachmentCount >= 0) {
adf.error.warn("The Change Order contains Export compliant Items.");
warningRaised = true;
This is the logic written, but it is not returning the warning.
Could you please help on how to achieve this.
0