We have a running Nintex workflow in production failed for
few email actions with the error message “The specified string is not in the
form required for a subject.”
So in order to resolve the error listed above, we have implemented
in two different palaces for our SharePoint framework solution as UI with Nintex
workflow.
1. Inside SharePoint framework solution, trim and leading and
trailing spaces and returns. Then also replace inside returns with space.
let trimedTitle: string = title;
if(title !=null){
//This javascript trim leading and trailing spaces and returns
trimedTitle = title.trim();
if (trimedTitle != null){
//This javascript replaces all 3 types of line breaks with a space
trimedTitle = trimedTitle.replace(/(\r\n|\n|\r)/gm," ");
}
//The trimedTitle will be the good subject that could be used in exchange email
2. In Nintex workflow, add a “Trim String” activity on the
subject before send email.
This will ultimately resolve the email action error 'The
specified string is not in the form required for a subject.'.
No comments:
Post a Comment