SOLVED

Workflow notification Email issue

Brass Contributor

Hello All,

We were built email notification using window workflow foundation on sharepoint 2010 and migrated to sharepoint 2013. it was working fine on SharePoint 2010.

 

After migration we started getting broken image issue  before/ after the person name in the email.

 

Email body code is  highlighted.

workflowProperties.Item.GetFormattedValue("Modified By").ToString()  

    

 

Broken image pics 

Email.png

Please suggest what need to be changed in the code to make or remove image tag from email.

Thanks !

4 Replies

@Kamal Pandey I think the code is returning the formatted value as the Name with (Skype for Business or Lync) presence. So from that list, in the column properties, change the "Show field:" value from "Name (with Presence) to the first "Title" value in the drop down. I don't think you will need to recompile the workflow, but I think that might be what's causing the extra broken images there.

@Timothy Balk, Thank you so much for response, I really appreciate it. I have updated Name (with Presence) to the just Name because i don't have "Title" value in the drop down, and now we getting one broken image.
best response confirmed by Kamal Pandey (Brass Contributor)
Solution

@Kamal Pandey Ok, last thing to try - the last image may have a CSS class on it labeled "ms-hide" add the class into the email CSS and that might take care of the last image.

 

.ms-hide {display:none;}

Thank you so much @Timothy Balk .  appreciated.

string stylehide = "<style>.ms-imnlink {display:none;} .ms-hide {display:none;}</style>"; 

works for me  

1 best response

Accepted Solutions
best response confirmed by Kamal Pandey (Brass Contributor)
Solution

@Kamal Pandey Ok, last thing to try - the last image may have a CSS class on it labeled "ms-hide" add the class into the email CSS and that might take care of the last image.

 

.ms-hide {display:none;}

View solution in original post