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

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


Problem

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.

Solution

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.


sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



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

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips


Article Last Updated: 2010-10-19

Comments For This Article

















get free sql tips
agree to terms