Learn more about SQL Server tools

mssqltips logo

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Scripts          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories


How To Send A Document Link In Email Using SharePoint Designer 2007

By:   |   Updated: 2010-10-19   |   Comments   |   Related: > Sharepoint


Targeted email notification is a basic need in today's business process automation. Using SharePoint workflow, this can be achieved using SharePoint Designer 2007 with MOSS 2007 (or WSS3) whenever a document is uploaded. The content of the email can be improved by including a link in the body of the email to the document item in process.


SharePoint Designer Workflow provides a special property named "Encode Absolute Url" which provides the link to the document (or item) that has been created, changed, and/or uploaded.

In this article, we will see how to use this property to send the document link to the user.

Using SharePoint Designer 2007, create a workflow on a Document Library and make sure it will be triggered "When a new item is created".

In Actions, select "Send an Email". Define to whom the email should be sent to in the "To" box. Provide a meaningful subject.

define email message

Now type "<a href=>View Document</a>". It is html code for creating a hyperlink. Now move cursor beside "href=".Click on "Add Lookup to Body".

email message

A box will appear with source and field options. In source make sure "Current Item" is selected and in the Field dropdown, choose "Encode Absolute URL".

define workflow lookup

Click "OK" and the email content should look something similar to the image below.

email message

Click "OK" again and finish the workflow.

Now upload any content to the library and you will get an mail to the provided email address in the "To" box.

view document

Click on "View Document" in the email and the document will open with the provided credentials.

Next Steps
  • Use this property to send content links or content property page links too.

Last Updated: 2010-10-19

get scripts

next tip button

About the author
MSSQLTips author Rahul Mehta Rahul Mehta is a Project Architect/Lead working at Tata Consultancy Services focusing on ECM.

View all my tips

Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 

Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.


Learn more about SQL Server tools