Email on New Task assignment is not displaying properly

Hi All,

 When I create a designer workflow and use the Assign a Task or Start Task Process , If I choose the Task Title as Current Item and a workflow will be kicked off when a new item gets created and  If the title contains the characters such as < ,> then the e-mail is not getting displayed properly . Title gets truncated after < (Hope this is due to html escape)


But is there any resolution for

August 24th, 2015 7:39pm

Hi Rakesh,

Because the body of the email is generated with HTML, the < or > will interrupt the predefined HTML there.

This is the screenshot of the email body in my environment:

Since there is no OOTB settings can solve this issue currently, as a workaround, I would suggest you apply some custom JavaScript in the NewForm/EditForm, when users input < or > characters there, the custom JavaScript will convert them as &lt or &gt.

By doing this, the actual value saved in the list will be &lt or &gt, instead of < or >. Then when it is used in workflow email body, it will display properly as the screenshot provided above.

For displaying < or > in list view page or NewForm/EditForm, a suggestion is that, you can use Client Side Rendering(JSLink) to render the style in the corresponding page.

More information and samples about Client Side Rendering(JSLink):

https://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a

http://www.codeproject.com/Articles/620110/SharePoint-Client-Side-Rendering-List-Views

http://www.codeproject.com/Articles/610259/SharePoint-Client-Side-Rendering-List-Forms

Thanks 
Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 2:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics