Solved

SharePoint 2010 Workflow Email and HTML

Posted on 2012-12-31
4
388 Views
Last Modified: 2013-01-07
Hi,

I have a SharePoint Workflow which I am using to send an email to certain employees, based on what is entered in an InfoPath Form. It is used to inform the Employees of their share of a Bill which has been sent to a Client.

The information is entered in a Repeating Table in InfoPath which the fields are then merged on submission. At the minute my email has a layout like in Pic 1.

I would like to format the email using HTML Tags in order to make it look like Pic 2. I know absolutly nothing about HTML Tags so I'm not sure if this is possible or not. I don't mind showing the boarder, or not, if that makes it easier.

I have been able to create text within a table using the HTML Tags below which I found on another site. I'm not sure how to create a new column beside the existing one though. Can anyone help?

<html>
<table border=1>
<tr>
<td>
testing
</td>
</tr>
</table>
</html>

Thanks
Tugsol
Pic-1.jpg
Pic-2.jpg
0
Comment
Question by:Tugsol
  • 2
  • 2
4 Comments
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 38732535
<html>
<table border=1>
<tr>
<th>
Name:
</th>
<th>
£
</th>
</tr>
<tr>
<td>Your Name Data</td>
<td>Your Monetary Data</td>
</tr>
</table>
</html>
0
 

Author Comment

by:Tugsol
ID: 38750672
Hi Jamie,

Thanks for your post. That has helped to get the table into the body of the email. Is there any way you can control the Alignment or Wrapping of the text?

Using the HTML Tags you have provided above gives me what is shown in Pic 3. The First Name lines up with the Second Value. The text fields are also bottom and top aligned by the looks of things.

Any way to change this?

Thanks
Pic-3.jpg
0
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 38750990
You can apply Style to your table elements through a style sheet or in the markup you're writing.

If direct in the markup a table cell could look like;

<td align=right valign=top>Your Content</td>

Style can also be applied at higher level such as the whole table.

There's some good guidance on the possibilities here;

http://www.w3schools.com/tags/tag_td.asp
0
 

Author Closing Comment

by:Tugsol
ID: 38751318
Great, thanks!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question