Set mail attribute in SharePoint Task List "107"
We recently migrated to SharePoint 2010 from 2007. During the migration on all task lists the
List Settings > Advanced Settings > "Send e-mail when ownership is assigned" radio button got switched to "No" if it was set to "Yes".
I need to have this switched back to "Yes" on all task lists but have no idea how many of these lists are out there or what their URL may be. I think I found the attribute that needs to be set...
# Send e-mail when ownership is assigned?
$list.EnableAssignToEmail = $true
I need a script that would query each of the 3 site collections we have for tasks list which I believe is
$listTemplate = "107" #Tasks List
and then set the radio button List Settings > Advanced Settings > "Send e-mail when ownership is assigned" to "Yes". Any help would
be immensely appreciated.
Updating all Task lists is a bit dangerous as there are SharePoint created Task lists like "Workflow Tasks".
Step 1 is to make sure your PowerShell is selecting the correct task lists. Maybe something like:
Get-SPSite -Limit All |
Get-SPWeb -Limit All |
Select -ExpandProperty Lists |
Where {$_.BaseTemplate -EQ "Tasks" -AND -NOT $_.Hidden -AND -NOT ($_.Title
-EQ "Workflow Tasks") } |
Select Title, BaseTemplate, ParentWebUrl, EnableAssignToEmail
Once you are confident that you have found the correct task lists then you could use something like:
Get-SPSite -Limit All |
Get-SPWeb -Limit All |
Select -ExpandProperty Lists |
Where {$_.BaseTemplate -EQ "Tasks" -AND -NOT $_.Hidden -AND -NOT ($_.Title -EQ "Workflow Tasks") } |
foreach { $_.EnableAssignToEmail = $true; $_.Update() }
BUT... again be very carful to make sure you are only updating the correct task lists!
Mike Smith TechTrainingNotes.blogspot.com
Similar Messages
-
SharePoint Provider Hosted App that can update existing SharePoint Task List
Note: I am unable to take advantage of the Microsoft.SharePoint library directly. Adding a reference results in a 32bit/64bit library mismatch error.
I have to find a solution that uses only the Microsoft.SharePoint.Client extension.
I am looking for example code where provider-hosted SharePoint App loads a SharePoint Task List View that allows users to interact with the tasks.
So far I have only been able to programmatically create and then load the SharePoint tasks list, create and populate a DataTable object and set the datasource of a GridView object to that DataTable.
I am unable to trigger my method linked to my checkbox within the gridview.
Ideally I would like to just customize a Task View that already has this functionality.
Here is my default.aspx.cs code-behind file:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using SP = Microsoft.SharePoint.Client;
namespace SPAppBasicWeb
public partial class Default : System.Web.UI.Page
protected void Page_PreInit(object sender, EventArgs e)
Uri redirectUrl;
switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
case RedirectionStatus.Ok:
return;
case RedirectionStatus.ShouldRedirect:
Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
break;
case RedirectionStatus.CanNotRedirect:
Response.Write("An error occurred while processing your request.");
Response.End();
break;
protected void Page_Load(object sender, EventArgs e)
// The following code gets the client context and Title property by using TokenHelper.
// To access other properties, the app may need to request permissions on the host web.
var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
using (var clientContext = spContext.CreateUserClientContextForSPHost())
//clientContext.Load(clientContext.Web, web => web.Title);
//clientContext.ExecuteQuery();
//Response.Write(clientContext.Web.Title);
SP.ClientContext cc = new SP.ClientContext("http://server/sites/devapps");
SP.Web web = cc.Web;
SP.List list = web.Lists.GetByTitle("General Tasks");
SP.CamlQuery caml = new SP.CamlQuery();
Microsoft.SharePoint.Client.ListItemCollection items = list.GetItems(caml);
cc.Load<Microsoft.SharePoint.Client.List>(list);
cc.Load<Microsoft.SharePoint.Client.ListItemCollection>(items);
//try
//const int ColWidth = 40;
cc.ExecuteQuery();
DataTable dt = new DataTable();
dt.Columns.Add("Task Name", typeof(string));
dt.Columns.Add("ID", typeof(int));
foreach (Microsoft.SharePoint.Client.ListItem liTask in items)
DataRow dr = dt.NewRow();
dr["Task Name"] = liTask["Title"];
dr["ID"] = liTask["ID"];
//dr["chkTask"] = liTask["Checkmark"];
dt.Rows.Add(dr);
GridView1.DataSource = dt;
GridView1.DataBind();
protected void chkTask_CheckedChanged(object sender, EventArgs e)
//add code here to update Task Item by ID
Response.Write("checkbox event triggered");
Here is my simple default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SPAppBasicWeb.Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkTask" runat="server" OnCheckedChanged="chkTask_CheckedChanged" AutoPostBack="true" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>
http://www.net4geeks.com Who said I was a geek?Hi,
Please try to modify your code as below:
using (var clientContext = spContext.CreateUserClientContextForSPHost())
SP.Web web = clientContext.Web;
SP.List list = web.Lists.GetByTitle("General Tasks");
SP.CamlQuery caml = new SP.CamlQuery();
Microsoft.SharePoint.Client.ListItemCollection items = list.GetItems(caml);
clientContext.Load(items);
clientContext.ExecuteQuery();
If the code still not works, I suggest you debug the code or following the blog below to create a Provider-Hosted App for SharePoint and read list items from SharePoint list.
http://blogs.msdn.com/b/steve_fox/archive/2013/02/22/building-your-first-provider-hosted-app-for-sharepoint-part-2.aspx
Best Regards
Dennis Guo
TechNet Community Support -
2013, Resources do not synch if from MS Project to SharePoint task list
SharePoint and Project Professional 2013. I am synching MS Project with a SharePoint task list. Tasks synch just fine, but I continually get the synch error "We can't synch resource 'resourcename' to the tasks list because the resource
does not exist on the SharePoint server. This resource, and any other resource that doesn't exist in SharePoint, will remain assigned to the tasks in your project plan.". If I then select one of the tasks in SharePoint, add the same
resource (same spelling), then the resource gets synched to that and all other tasks in the plan (after I choose to use the SharePoint revisions in the popup window).
I am connected to Project Server and this happens for both a simple site synch to MS Project as well as if I use Project in visibility mode. I am posting to this forum because if I can solve the simple synch to SharePoint resources that will solve
both issues. We will have lots of PMs managing lots of projects and I would like to be able to synch resources from MS Project if possible.
Thank you in advance for your assistance.
Larry Christofaro, PMP, MCITP TribridgeI am also getting this issue, but for few resources, I observed that these resources had a special character in their email address / name in active directory.
When I assign a resource from SharePoint it all works fine as mentioned by you.
Even I am not able to find a solution for this.
It would be great if anybody can guide us through this.
Thanks. -
Unable to sync with SharePoint task list
Unable to sync with SharePoint task list
The SharePoint site is invalid - I can hit the site just fine through IE
- The SharePoint site is unavailable. Not so since I can naviagte to it just fine with IE
- The user does not have full or design permissions in the SharePoint site -- My permission level is "Full Control"
All inside a corporate Lan. This is a first time setup? Any ideas?Hi
If you open up the project file from within the sharepoint list and then click sync what happens? -
Integrate Sharepoint task list with exchange server
First question is it possible or not? I have tried to search a lot on this topic but does not find a way to achieve this. I know how to integrate task list with outlook but I want to integrate it with exchange
server. Any help in this regard would be highly appreciated.Hi ,
In SharePoint Server 2010 , tasks lists are blindly synced to the local Outlook desktop application. You can see SharePoint Tasks only on the client computer to which the SharePoint task list was downloaded.
If you log on to another device, you must sync the SharePoint task list to that device in order to see the tasks.
But in SharePoint Server 2013, SharePoint Server 2013 task lists use Exchange Server to sync, tasks are updated in real time and can be seen on any device that you use to access Microsoft Outlook. When SharePoint
Server is connected to Microsoft Exchange Server, and all client computers are connected to Exchange Server, client computers receive information from the task lists directly from Exchange Server.
For a workaround, you can use 3rd Party tool to connect Exchange Server to SharePoint task lists. For more information, you can refer to the blog:
http://www.layer2solutions.com/en/community/FAQs/BDLC/Pages/How-to-connect-SharePoint-lists-to-Exchange.aspx
Reference:
http://support.microsoft.com/kb/2876938
Best Regards,
Eric
Eric Tao
TechNet Community Support -
What I have is a Custom List, that got the following fields for each item.
ApplicationName(SingleText) OwnerApproval(Person) ManagerApproval(Person) InstallExeuction(Person)
Example data:
| ApplicationName: Photoshop
| OwnerApproval: Mister Blue
| ManagerApproval: Mister Red
| InstallExecution: IT Group
What I have now then, is a task list as well. Where the user can press new task, and type in their PC name (singletext) and a dropdown menu to choose what application they want, for instance Photoshop.
I'm not trying to make a workflow that starts when a new item is created to send an email to the OwnerApproval set for this specific application, Photoshop, if he approves it, a new email should be sent to ManagerApproval specific application, Photoshop.
And if the last person ManagerApproval accepts it, a last email should be sent to InstallExecution, which if this person approves the task is marked as completed.
I've been trying for mad now using SharePoint Designer and I almost got it to work.
Can anyone help me? I'm going mad here, I have VERY LIMITED knowledge in sharepoint designer.Hi Plankton,
To achieve this goal, we can create with three Start a task process steps in the workflow and the workflow needs to be set to start when an item is created.
For example, the custom list is called Custom, and the task list is called Task Custom.
We can use the Task Status column for showing as Rejected or Excuted/Installed based on the users’ approval, so we need to add Rejected and Excuted/Installed values to the Task Status column. (same settings for Custom:ManagerApproval and Custom:InstallExecution
as Custom:OwnerApproval with their own column value)
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to set divider line in Project Task List?
Hi
Does anyone know how to set the position of the divider line in project task list?
ThanksHi,
As I understand, you would like to customize divider line between task list view and grantt view.
You could press F12 to locate the CSS code of this line, then customize it via CSS style code.
In addition, the line could move by clicking it via Mouse. If you think Gantt view is not clear enough, you could click Zoom in or Zoom out to adjust it.
Regards,
Rebecca Tu
TechNet Community Support -
Tasks re-sorting in the MPP file when synching with SharePoint task list
When synchronizing the MPP file with the ShPt task list, we have seen tasks re-sorting in the MPP file. Very annoying, especially with schedules with a large number of tasks. Just wondering if anyone has experienced this issue, and if you
could point me in the right direction for solving it. FYI, listing below my signature the columns we are synchronizing (in case you know of an issue with one or more of these).
FYI, we are using MS Project 2013 Pro and SharePoint 2010. We tried using the synch feature with MSP 2010 and it did not seem to be available.
Greatly appreciate your help on this topic. Sincerely,
Michael.
Columns to map:
Text30
Text15
Baseline Start
Baseline Finish
Duration
Baseline Duration
Baseline Work
% Work Complete
Flag8
Critical
Number5
Text19
Work
Actual Start
Actual Finish
Columns to uncheck:
Priority
Task StatusHi,
The resource is created as a new resource with no security group and no loggin account, meaning it is strictly a resource and not a user. So this resource can be assigned on others projects but cannot connect to PS in any way (thus does not consume a CAL)
unless you convert it into a user by adding a valid account and a security group.
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
Outlook email drag and drop to sharepoint task list
We are using using Outlook 2007 (Soon to be switching to 2010) and Sharepoint Server 2010.
We want to allow email drag and dropping which is accomplished through the folder list view. However when doing this this it does not take the attachment.
My question is, is this possible or do we need to develop an add-on for outlook?
ThanksNeither be it SharePoint 2010 or SharePoint 2007, you can not do it without developing an add-on or writing additional code. Depending on your complexity of SharePoint, it is relatively easy to build an add-on if you only want to drag and drop Outlook email
to SharePoint folder.
SharePoint Outlook Integration add on is one of such tool which is functioning well if you have a small number of mails to transfer to SharePoint, but if you drag larger number of Outlook emails to SharePoint, it is quick slow to finish the whole process.
Good luck. -
Edit e-mail alerts generated by task lists
My client wants to customise the e-mail alerts generated to notify users of tasks due or overdue. I would like to know where the default messages are stored.
Thanks
ChrisIn addition
please check the below guide and make sure you have done your configurations as per it.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/be79a16b-0a01-0010-51b8-9b6d1968338d?overridelayout=true
we were having similar issues with CCMS and it was due to missing configurations in client 000 , we had instead done them in client 100,which may result cause some issues and not always trigger alerts.
In Rz20->SAP CCMS Technical Expert Monitors->CCMS SelfMonitoring and GRMG SelfMonitoring will give you more information.
CCMSSelfmonitoring will keep logs of all the errors which happened in CCMS itself,it mails are not triggered,it will have logs which shows why mails were not triggered.
Thanks
Aamir -
Sharepoint 2013, MS Project 2013 - Task List not updating when the project file is changed
Hi
I have created a SharePoint task list and timeline from a MS Project 2013 file on my PC. I have then created a new Project file from that task list which then places the new project file in the site asset folder and provides me with a synced copy. I now
only use the SharePoint copy of the project file in my MS Project as any change I make to the project file should be reflected in the Task list and vice-versa
However if I add some tasks into the middle of the project with MS project, the SharePoint Task list is not updated to show these additional tasks. If I open the SharePoint task list with MS Project - from the task list toolbar - the project file shows the
added tasks.....so the MS Project file in the site asset folder is correct but the tasks in the SharePoint task list is not being updated
Anyone seen this before ?
Thanks
GeoffHi Esben,
According to your description, the error occurred when opening the task list with the content approval enabled in Project.
Per my knowledge, when we enable the content approval for the task list, the field named Approval Status which is required will be created in the list.
However, if a project plan doesn’t contain a field that is required in SharePoint, the plan won’t sync.
The error occurs because of the required field Approval Status when the content approval is enabled in the task list, so we need to add the required field as a custom field in Project.
More information:
Sync with a SharePoint tasks list:
http://office.microsoft.com/en-in/project-help/sync-with-a-sharepoint-tasks-list-HA102828524.aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Syncing project tasks with Task lists
Hi,
I am syncing tasks from microsoft project file to SharePoint tasks list. However, there is a possibility that my project file will exceed more than 1000 tasks over time and one of the limitation with SharePoint & Project syncing is that the project file
that am syncing with SharePoint can't exceed more than 1000 tasks. Microsoft says that I need to use a brand new project file to sync the 1000+ tasks but what about the dependencies? say for eg: For task 1001, if I have a dependency on task 1000, do I
have to set up the dependencies in SharePoint?
Please help,
techieHi,
A fact you might need to consider is that there will be possible severe performance issues with 1000 tasks in a list, plus with the extra task dependencies.
To deal with large number of tasks when syncing between Project and SharePoint Task list, it is recommended that “750 is about as large as you would want to go with
a project plan. A SharePoint List should be even smaller for best functionality and usability, 100 tasks in a SharePoint task list is a reasonable number to work with”:
https://support.microsoft.com/en-us/kb/2876901?wa=wsignin1.0
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Print Individual task Lists from Project 2010
Hi
I have a routine which prints individual task lists from a Project Plan using VBA. This routine is currently being piloted and they have advised that not all resources have a task list produced. when I step through the code the Resource numbers
appears in this order:
1,3,18,7,8,9,11,12,13,14,18,19,20,21,22,23,24,25
Task lists are produced for each of the above resources. However this misses resource numbers 2,4,5,6,10,15,16,17 and I have no idea why. I have supplied my code below. Any advice/guidance appreciated. You will note that the task
lists are exported to a pre-defined spreadsheet template.
Sub PrintResourceCharts()
Dim xlApp As Excel.Application
Dim xlRange As Excel.Range
Dim rName As String
Dim Tsk As Task
Dim Res As Resource
Dim Ass As Assignment
Dim s As Worksheet
Dim BookNam As String
Dim Row As Integer
Dim fName As String
'Call SetSummaryTask - DB: commented out - run summaryname manually as required.
Call Task_CF_To_Assignment_CF
'Remove Existing Task List files from directory before creating new ones
On Error GoTo Finish
Kill "D:\Task List Templates\Task Lists\*.*"
Finish:
'Save File Location
fName = "D:\Task List Templates\Task Lists\"
'Start Excel and Create a new Workbook
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
'Export Resource and Task details
For Each Res In ActiveProject.Resources
If Res.Assignments.Count > 0 Then
Row = 5
xlApp.Workbooks.Open ("D:\Task List Templates\Task List Template.xlsm")
BookNam = xlApp.ActiveWorkbook.Name
Set s = xlApp.Workbooks(BookNam).Worksheets(1)
For Each Ass In Res.Assignments
Set xlRange = s.Range("A5")
If Ass.PercentWorkComplete < 100 Then
With xlRange
rName = Ass.ResourceName
s.Range("A" & Row).Value = Ass.ResourceName
s.Range("B" & Row).Value = Ass.TaskUniqueID
s.Range("D" & Row).Value = Ass.Text1
s.Range("E" & Row).Value = Ass.Start
s.Range("G" & Row).Value = Ass.Finish
End With
End If
Row = Row + 1
Set xlRange = xlRange.Offset(Row, 0) 'Point to next row
Next
xlApp.Visible = True
Application.DisplayAlerts = False
If rName = "" Then
GoTo Finished
End If
xlApp.ActiveWorkbook.SaveAs FileName:= _
"D:\Task List Templates\Task Lists\" & rName & ".xlsm", FileFormat:= _
xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
rName = ""
xlApp.ActiveWorkbook.Close savechanges:=False
Application.DisplayAlerts = True
End If
Next
Finished:
xlApp.Application.Quit
Set xlApp = Nothing
MsgBox ("Individual Task Lists have now been produced....")
End SubTony,
You said you step through the code and it picks up resource 1. What happens when the loop gets to resource 2? Note: since resource 1 may have several assignments and stepping through them all could take some time, I sometimes use a stop statement in the
outer loop to make it a little easier to "catch" what I'm looking for. For example, you could put this right after the For Each Res...
If Res.ID = 2 then stop
Then step through and see what happens.
John -
Microsoft Project content Synced Task List
Hi,
I was trying to sync the microsoft project content with a sharepoint Task List.
while doing so, i found out that the sync with task list option was missing form the backstage[i.e when i went to file menu].
What appears to be a version issue as i have found from the internet that the microsoft standard project does not have this feature. If so, then could you please help me in
1) confirm which version i am using ; where do i find if i am using standard or professional
2) is there additional cost involved if i use Project professional rather than standard
3) is there a way to sync the data from project standard with sharepoint task list.
TnxHi,
#1. To determine which version of Project is installed in the PC, we can check the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall or HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\Current Version\Uninstall
if you are using a 64-bit version of Windows.
http://blogs.msdn.com/b/brismith/archive/2010/09/16/how-to-determine-if-you-have-project-standard-or-project-professional.aspx
#2. The cost for downloading Project Professional will be more than the cost for downloading Project Standard, but Project Professional provides more features than Project Standard.
#3. As the Project Standard does not support syncing with SharePoint, I recommend to use Project Professional instead.
http://social.technet.microsoft.com/Forums/projectserver/en-US/820b0a5e-c961-4a80-a5cb-6369bd7e1098/sync-with-tasks-lists?forum=projectprofessional2010general
In the meanwhile, you can post your question to the forum for Microsoft Project:
http://social.technet.microsoft.com/Forums/projectserver/en-US/home?forum=projectprofessional2010general.
More experts will assist you, then you will get more information relation to Microsoft Project.
Best regards.
Victoria
Victoria Xia
TechNet Community Support -
I added a SharePoint task list to our PWA site. I then removed it and then added back. When I go to make the SharePoint task list an Enterprise project now I get a message dialog box that states "The project is currently being updated and we can't
make the change right now. Try again in a few minutes" I have been trying every hour or so and keep getting the message. Does anyone know how to fix this problem?Hi Brett
Have you deleted the Task list and also the workspaces associated to it?
Are you creating with a new name or the same name?
Try to take the verbose..
Cheers! Happy troubleshooting !!! Phani - MSFT Enterprise Project Management
Please click Mark As Answer; if a post solves your problem or Vote As Helpful if a post has been useful to you. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
Photoshop CS6 for Creative Cloud Repeatedly Crashes
Hi. I have the creative cloud for teams setup on my computer. My comp specs are as follow: Windows 7 Home Premium SP 1 Intel(r) Core i7 CPU Q 740 @1.73GHz 8gb ram. 64 bit operating system. ATI Mobility Radeon HD 5870 This is an ASUS Republic of Gamer
-
Question about writing a text file
As we know, we can write a text file using class "FileWriter". I did a test (Please see the code below). I found that if I used Notepad to open it, it would show "ab", But if I used "MS Word" or "UltraEdit" to open it, it would show " 'a' , new line
-
No video through ipod touch remote app?
i've connected my ipod touch to my tv using apple-branded dock and tv cables. for media stored on the touch, i can listen to music and watch video on the tv. when i connect in using remote to my mac mini (i am able to negotiate the 4digit pin so it i
-
Quicktime Pro Has Failed To Launch - PLEASE HELP
I spent $31 and purchased Quicktime Pro so that I could put together a video with music of my time here in Beijing. However, I can't even seem to get Quicktime Pro to launch. Am I missing something here? I entered in the code on my Quicktime control
-
Hello to the community, I've a newest iMac 27 with pre installed Yosemite system, bought four weeks ago... On today OSX is started to make me freeze the keyboard and the mouse during normal use. The only way to save unsaved works is connect via TeamV