Solved

SharePoint 2010 Workflow Email and HTML

Posted on 2012-12-31
4
389 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

679 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