Solved

SharePoint 2010 Workflow Email and HTML

Posted on 2012-12-31
4
373 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
Comment Utility
<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
Comment Utility
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
Comment Utility
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
Comment Utility
Great, thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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 …

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now