Hi,
I have built a search page with multiple text boxes with the help of the thread created by me at the below.
https://social.msdn.microsoft.com/Forums/office/en-US/17e0f31d-39c9-434b-8cdf-199c110f31f2/querying-a-sharepoint-list-with-multple-text-boxes-and-submit-button?forum=sharepointdevelopmentprevious
Below is the function that is generating me the html results table.
<tableid="myDataTable1"border=1width="95%"align="center"></table>function get1(title1) { var html = ''; var firstRow = "<tr align='left' bgcolor='lightBlue'><td><B>BSA</B></td><td><B>Title</B></td><td><B>DataStartDate</B></td></tr>"; $('#myDataTable1').empty(); //Clears the table var strcolumnoption1 = document.getElementById(title1).value; var method = "GetListItems"; var webURL = $().SPServices.SPGetCurrentSite(); var list = "{F18477D6-6D79-4A7E-A33B-7BE36BBFCDCE}"; var fieldsToRead = "<ViewFields>" + "<FieldRef Name='Name' />" + "</ViewFields>"; var query = "<Query><Where><Contains><FieldRef Name='Title'/><Value Type='Text'>" + strcolumnoption1 + "</Value></Contains></Where></Query>"; var ediFormUrl = "https://<Site Url>/Lists/<List Name>/EditForm.aspx?ID="; // Edit form URL $().SPServices ({ operation: method, async: false, webURL: webURL, listName: list, CAMLViewFields: "<ViewFields Properties='True' />", CAMLQuery: query, completefunc: function (xData, Status) { $(xData.responseXML).SPFilterNode("z:row").each(function () { var BSA = $(this).attr("ows_BSA"); var Title = $(this).attr("ows_Title"); var DataStartDate = $(this).attr("ows_DataStartDate"); html = html + "<tr align='middle'>" +"<td align='left'>" + BSA + "</td>" + //"<td align='left'>" + Title + "</td>" +"<td align='left'><a href='" + ediFormUrl + $(this).attr('ows_ID') + "' target='_blank' >" + Title + "</a></td>" +"<td align='left'>" + DataStartDate + "</td>" + "</tr>"; }); html = firstRow + html; $('#myDataTable1').append(html); } }); };
Now, I would like to send the result of this search in the form of an email.
1. When user clicks on Send email button, the results that are currently displayed for the search should be sent ( Generated) in the form of email.
2. Is there a way that we can schedule these emails so that the results are sent to a group of people at a particular time?