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("john.doe@test.com")
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
S.Y.M. Wong-A-Ton - 01 Apr 2006 16:51 GMT
If you are submitting through code, you can retrieve the data connection you
have set up to submit to SharePoint (this will be a DAVAdapter object - see
http://msdn.microsoft.com/library/en-us/ipsdk/html/xdobjDAVAdapterObject_HV01106
498.asp?frame=true)
and then use its FileName and FolderURL properties to generate the full URL
to the submitted form. Include this URL in the code to send the email.
---
S.Y.M. Wong-A-Ton
> 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
[quoted text clipped - 30 lines]
> Set objOutlookRecip = Nothing
> Set objOutlookAttach = Nothing