Save Form In SharePoint / Include Link to it in an Email

M

marknavidstrand

I am saving my infopath form to a SharePoint site and then sending an
email to a user telling him that the form has been saved - but - i need
to include a link to the form on the SharePoint site in the body of the
email. Can I do that?

Here's the vbscript code that sends the email.

Dim objOutlook
Dim objOutlookMsg
Dim objOutlookRecip
Dim objOutlookAttach
Dim frmSavePath

Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(0)

With objOutlookMsg
Set objOutlookRecip = .Recipients.Add("(e-mail address removed)")
objOutlookRecip.Type = 1
.Subject = "The Project Leader has sign the form"
.body = "The project leader has signed the form. Your turn."
.Importance = 2 'High importance

For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
Next

.display
End With

Set objOutlook = Nothing
Set objOutlookMsg = Nothing
Set objOutlookRecip = Nothing
Set objOutlookAttach = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top