i have submitted infopath form data to share point list please how to send this form to mail attachment?. - InfoPath Dev
in

InfoPath Dev

i have submitted infopath form data to share point list please how to send this form to mail attachment?.

Last post 12-09-2008 05:11 AM by madhuri. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-09-2008 04:21 AM

    i have submitted infopath form data to share point list please how to send this form to mail attachment?.

    i have gone thru following link.

    http://blogs.msdn.com/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx

    i have done functionality.

    i have place submit button there i am submitting data list.

    i need to send a form to email. form mail data will fill and when click on submit button data should submit to the list?.

  • 12-09-2008 05:11 AM In reply to

    Re: i have submitted infopath form data to share point list please how to send this form to mail attachment?.

    Hi

    Write code to to send form as attachment in email and sharepoint submit on a button

    Code for sending an attachment in Email,below look will be helpful to you

    http://www.fekke.com/blog/index.cfm/2008/1/21/Sending-Email-with-Attachments-from-Sharepoint-Custom-Workflows

    Code for SharePoint Submit:

    1.Create ViewOption.xml file in the below format

    <ViewOptions>
     <SharePointURL>SharePoint site url name</SharePointURL>
     </ViewOptions>

    2.Add the Viewoption.xml file as resource file and add receive dataconnection for it

    3.Write the code for submitting to sharepoint,

    string SharePointURL = thisXDocument.GetDOM("ViewOptions").selectSingleNode("/ViewOptions/SharePointURL").text;

    string fileName = thisXDocument.Dom.selectSingleNode("Xpath of the filename");

    DAVAdapter SharePoint = (DAVAdapter)thisXDocument.DataAdapters["SharePoint Library Submit"];

    SharePoint.FileName = fileName;

    SharePoint.FolderURL = SharePointURL;

    SharePoint.Submit();

     

    Madhuri
    http://www.ggktech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.