Solved

How to email sharepoint list items as a excel spreadsheet attachment

Posted on 2014-09-15
2
1,721 Views
Last Modified: 2014-10-08
I have sharepoint 2007 list where user will create list items. He wants all the list items to be e-mailed weekly once as a excel spreadsheet. How can I acheive this?

Any example would be great
0
Comment
Question by:bujjigadu
2 Comments
 
LVL 12

Assisted Solution

by:Ramkisan Jagtap
Ramkisan Jagtap earned 250 total points
ID: 40324619
You can write a custom SharePoint job which will export the list to excel and send it across every week.

Check following links for creating a SharePoint Job:
http://www.splessons.com/2013/12/create-a-timer-job-in-sharepoint-2013/
http://blogs.msdn.com/b/guruketepalli/archive/2012/01/23/sharepoint-2010-custom-timer-job-send-an-email.aspx
0
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 250 total points
ID: 40324770
Please don't write a custom Timer job, and this is why;

http://www.the-north.com/sharepoint/post/Dont-write-SharePoint-Timer-jobs-(etc)-without-good-reason

http://the-north.com/sharepoint/post/Alternatives-to-SharePoint-Timer-Jobs

Consider hosting the process away from your SharePoint install if at all possible. For SharePoint 2007 I'd suggest a simple C# console app (in 2010 and above I'd have gone for Powershell) calling into the web services to get your list data, and adapting that data into an excel format (CSV or XML would be simple enough), then emailing it.

The scheduling I'd do through Task Scheduler in Windows. It's simple and robust, and the config can be exported and imported, so it's easy to port between dev, test and prod environments.

Much less plumbing code needed than a timer job, less risky to your install.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question