.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to read Email Received to a SharePoint List

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :SharePoint
I have a email enabled Sharepoint list which can receive email. i am trying to write an evenhandler for the spemailreceiver class where i have to read the Email Body Content and grab some elements from that email body not the whole Body Content and add it to the List Field. IF the Body Content is : Name: John LastName:Johny i have to read John and Johny and populate it to a Neew List item with their fields Name= John and LastName= Johny. any ideas of reading the email body and grabbing the needed elements from it.....

View Complete Post

More Related Resource Links

Trying to send email using Sharepoint Designer 2007 workflow and email enabled list


I have a a list that recieves email. I have few fields that shows me the originator: "E-Mail From" and "E-Mail Sender".

I am trying to create a workflow that will generate an auto reply to the originator but the SPD fails to recognize the email address in these two fields. It's either truncating part of it or uses the html ( href=mailto:Demo@DemoSomething.com) in the To field.

Thank you,


How to read a column of a sharepoint list to a text string field of infopath form?

My infopath form used to read these email addresses from a web service and web.config file. Now i would like to get these user email addresses from a contact list in a sharepoint server. I am trying to do this without writing any codes. Here is what i have done so far: 1. Adding a new "data connection to receive data from SharePoint library or List" where i selected Email Address column of the contact list. 2. I added a new Text Field and define a new rule with "Query using a data connection" defined above. When i try to access the newly created Text field above it always return empty as if the Query attached to it did not executed at all. What did i do wrong? Is there a better way? Thank you in advance for your help.

Read data from BLOB field and write to sharepoint list

Hi, I want to read the data from BLOB field and write it into sharepoint list item. Please provide some pointer to archive above objective.   Thanks in Advance.

Read list of a sharepoint site

I have to read a list of a sharepoint site from a client who does not has sharepoint installed. The problem is that when I try to use the SPSite tell me http://Sharepoint/sites/Sitio2/default.aspx could not be found. Tks!!!

Error creating Read Item or Read List operation in Sharepoint Designer 2010

In terms of high-level requirements, I need to pull in lists from a couple of different web apps.  To do this, I’m using SPD 2010 to create an External Content Type for the list of interest.  I’m able to create a SOAP Service or WCF Service connection just fine.  However, when I try to create the external content type and create a Read Item Operation on one of the GetList or any other Get* (or other Update methods for that matter) methods, I get the following error:"The method that your operation is based on has parameters with complex types that do not have default parameterless constructor.  This kind of data source methods cannot be used in Business Data Catalog."I tried defining an operation on the “AddAttachment” method, and that worked just fine.  I also tried providing default values to the listName and viewName parameters when creating the SOAP Service connection, but still get the error.  Same issue with a WCF Service connection as well. Does anyone know if this is a 2010 issue, or am I approaching this requirement incorrectly?  What are other approaches for connecting to lists that reside in a different web app than yours? 

SharePoint 2010 email enabled list with workflow has incorrect User ID when items are emailed to the

I have set up an approval workflow for a document library that has email enabled. Emails come into the document library fine, however, if an item is emailed to the library the workflow kicks off with the initiator as "System Account" rather than the person who submitted the email. This makes the error of "The e-mail message cannot be sent. Make sure the e-mail has a valid recipient." come up. If someone submits a document directly to the library (by logging into sharepoint and submitting) everything works fine. The person submitting by email is a valid sharepoint user and the profile shows the correct email address. The Created by and Modified by fields show the correct person (rather than System Account), it's only the workflow User ID that shows incorrectly if document is emailed to library. Any help or ideas would be appreciated. Thanks

SharePoint Designer Workflow to email multiple recipients listed in a custom list


Hi all,

I created a workflow in designer attached to a form library. I also have a custom list "Admins" containing names of persons that serves a different purpose but would also like to be used as recipients for the workflow email everytime a new item in the form library is created.

I have been searching the net and tried out few work arounds but so far able to send to only one person in the "Admins" list. The list has a column "Admin Name" which is of type "Person or Group".

Thanks in advance!

SharePoint 2010 Approval Workflow email is not showing link to Workflow Task list



I have created an out of box Approval workflow in SharePoint 2010. I am receiving email with below information

Task assigned by Chinna Malipedu on 10/7/2010.

Due by 1/1/0001

Approval started by Chinna Malipedu on 10/7/2010 11:43 AM
Comment: Approve



To complete this task:
1. Review SharePoint2010.
2. Perform the specific activities required for this task.
3. Use the Open this task button to mark the task as completed. (If you cannot update this task, you might not have access to it.)

But I need to go to Workflow Task List by clicking 3 item "Use the Open this Task" , this is not a link here

or I want like "Edit this task to mark the task as completed."  Edit this task should link to Task List

How to do this? do i missing any configuration?

I have successfully done the same  in MOSS 2007.                                                               Is there  any extra&n

read and print sharepoint list information using javascript



i am working on a form right now, user's inputs will be stored in a sharepoint list. after user click submit, it will display a thankyou panel, and send a email to me showing user's input. on the thankyou panel, there is a button, if user click it, it will open a new window and display exactly the same thing in email, so that user can check if they input the right thing.

i did this part using javascript, the window.open method. and i wrote html code in it, using window.document.write method.

i wrote a read from sharepoint list function, i dont know if it is working, but my question is how can i call this function in javascript since it will be a client side programming.

my readfromlist code is here:

public void readFromList()
             SPSite oSiteCollection = SPContext.Current.Site;
             SPList oList = oSiteCollection.AllWebs["something"].Lists["somelist"];
             SPView oListView = oList.Views["All Items"];
             SPListItemCollection collectListItems = oList.GetItems(oListView);

             foreach (SPListItem oListItem in collectListItems)
                 txtFirstName.Text = SPEncode.HtmlEncode(oListItem["First Name"].ToString()) + "<BR>";

How to send a link to list item by email in SharePoint 2010?


With SharePoint 2007 list item display form is openned in broswer and user can either copy and paste the url and send the link by email or use the browser's "Page" button and click "Send the link by email" to send the link.

With SharePoint 2010 list item display form is openned in a dialog box, the browser doesn't show the list item url and the browser's "Page" button's "Send the link by email" just sends a link to the list not the list item.

We don't want to diable the dialog box either. Please help.

On excel sheet upload read the workbook and populate data to sharepoint list


Requirement in my current project:
In a document library when I upload an excel sheet, a specific workbook has to be read and the contents have to be uploaded to a sharepoint custom list.
The approach followed was create an event receiver and register as a feature. Following is the code for event receiver.

public override void ItemAdded(SPItemEventProperties properties)
            var list = getSPList("{150301BF-D0BD-452C-90D7-2D6CD082A247}");          
            SPListItem doc = properties.ListItem;
            doc["Msg"] = "items deleted from req list";
            string excelname=doc.File.Name;

How to read a NULL value sharepoint list item


hi guys,

im having trouble pulling some specific information out from sharepoint list item. im doing a asp.net form and saved all user inputs into sharepoint list. if all information are there, my code works fine, if some colume is missing(the scenera requires to do that), it will return a  System.NullReferenceException: Object reference not set to an instance of an object exception. How can i read a null item, and maybe simply assign it to a string such as "NO VALUE", something like that?

i've tried all methods that i can think about, such as system.DBNull.value, or string.empty, or just null.

code is here: this is the save to list code:

private void SaveToTTCVIPList(SPWeb web)
        TTCVIPList = web.Lists["TTCVIP"];
        TTCVIPList = AddList(web, "TTCVIP", "List for TTCVIP user's information", "Custom List", true);
      SPListItem item = TTCVIPList.Items.Add();      
if (this.txtJointHolderName.Text == System.DBNull.Value)
        item["Joint Holder Name"] = string.Empty;

How to read sharepoint list attributes?


Hi, I need to fetch the attributes of a specific list from sharepoint using C#.

using(SPSite site = new SPSite("http://sharepointsite/"))
    using(SPWeb web = site.OpenWeb())
       SPListCollection listCollection = web.Lists;
       foreach (SPList list in listCollection)

The above code fetch me the sharepoint lists.

Now my requirement is, to fetch the attributes of specific list. For example, "Tasks" is a list and when we create a new task, it will ask various attributes such as, "Title, priority, assigned to, status, description etc". I need to get this list of attributes and update the property grid with these attributes. How can I achieve this?


How to read value of Column under list using Sharepoint 2007



I am new to Sharepoint so please bear with me even if i ask for small clarifications.

I want to read the List using Powershell from Sharepoint Site.

Output i want to display is all columns that are under the Sharepoint List.


I have created a Sharepoint Web Application, Then i created the Sharepoint site Collection, then i created a new List named Employee List under Site Collection.

The Columns under that List are:

Empno,Empname and Salary.

I want to display the value of all the columns using the Powershell Script.

I am using the below Script.

 $list=$OpenWeb1.Lists["Employee List"]
 if($test -eq $null)
 Write-Host Site does not exist
 for($l=$listItemsTotal-1;$l -ge 0;$l--)
 Write-Host $listItems[$l].name

Correlation Error when Enabling a List for Email in SharePoint 2010


Whenever I try to enable a list for email in SharePoint 2010, I get a correlation error. In the ULS logs it says there is a 401 unauthorized error:

11/23/2010 10:06:39.27 w3wp.exe (0x0E74)                       0x1F30  SharePoint Foundation                 Monitoring                                    nasq      Medium               Entering monitored scope (Request (POST:https://qcentral.company.com:443/sites/Company/Finance/_layouts/EmailSettings.aspx?List=%7BBE496688%2D3421%2D44C6%2D9360%2DB0F131D3B693%7D))         

11/23/2010 10:06:39.29 w3wp.exe (

Sharepoint 2007 SP2 Email distro using custom list.


Here is my problem.


I have two lists, one is like an outage tracker that needs to send a workflow email to several group email accounts.

I can get this to work using a variable etc. But they would like the distro groups and members managed in another list where group email has members associated with it.

We use lotus so excahnge options are out the door.

The need is from the first list the user makes a choice from the email distro group category and the workflow emails all members assigned to that category based on the choice made.

List 1 Outage list where choice is made.

list 2 has ID, Title, Group email account, Members email accounts

The members is only a field with email also these users are not AD users or have accounts in our environment.

Hope this is not confusing?

Ready made List Types provided by SharePoint

SharePoint provides some out of the box List Types. Some of the most used ready made list types that SharePoint provides currently are listed below:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend