Answered by:
Assigned to email alert issue

Question
-
In SharePoint 2013 Task list email alert we enable by following PowerShell script
Add-PSSnapin Microsoft.SharePoint.Powershell $web = Get-SPWeb "http://myServer/myWeb" $list = $web.Lists.TryGetList("Tasks") $list.EnableAssignToEmail = $true $list.Update()
But it will works only we create the new task, not send the email when we modified the task.
How to solve this issue
Jey
Monday, June 24, 2013 12:31 PM
Answers
-
Hi Jey,
Based this article, you may have the similar issue with the Tasks list option "Send e-mail when ownership is assigned" is missing, and your SharePoint version may be earlier than patched April CU version level.
My SharePoint 2013 environment has installed April 2013 CU, and the Tasks list option "Send e-mail when ownership is assigned" appears and works well, email notification will be sent when task item is created and changed, you can install April 2013 CU and check result again.
Thanks
Daniel Yang
TechNet Community Support- Marked as answer by star.wars Friday, July 5, 2013 9:18 AM
Tuesday, June 25, 2013 8:57 AM -
i jeym,
I have tested this script and it is working for me. i am getting Alert in edit mode also
My farm is upgrade with April 2013 CU and one more thing is April 2013 CU enables "Alert Me" option in ribbon for Task list. you can configure alerts from list itself.
you can install April CU from following link
kindly let me for more information.
Regards,
karim
Please remember to mark your question as "answered" if this solves your problem.
- Marked as answer by star.wars Friday, July 5, 2013 9:18 AM
Tuesday, June 25, 2013 10:56 AM
All replies
-
Hi Jeym,
use following script
$site = Get-SPSite "http://serverName/sites/TestSite/"
$web=$site.Rootweb
$list=$web.Lists.TryGetList("Shared Documents")
$user = $web.EnsureUser('domainName\userName')
$newAlert = $user.Alerts.Add()
$newAlert.Title = "My Custom Alert"
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::List
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::Email
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::Add
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::Immediate
$newAlert.Update()For reference:
http://www.c-sharpcorner.com/uploadfile/anavijai/create-alerts-in-sharepoint-2010-using-powershell/
Regards,
karim
Monday, June 24, 2013 12:37 PM -
We need send email only Assigned to person, when create or update the task list
Jey
- Edited by Jeym Monday, June 24, 2013 2:33 PM change
Monday, June 24, 2013 2:32 PM -
Hi Jey,
Based this article, you may have the similar issue with the Tasks list option "Send e-mail when ownership is assigned" is missing, and your SharePoint version may be earlier than patched April CU version level.
My SharePoint 2013 environment has installed April 2013 CU, and the Tasks list option "Send e-mail when ownership is assigned" appears and works well, email notification will be sent when task item is created and changed, you can install April 2013 CU and check result again.
Thanks
Daniel Yang
TechNet Community Support- Marked as answer by star.wars Friday, July 5, 2013 9:18 AM
Tuesday, June 25, 2013 8:57 AM -
hi Jeym,
my apologies for not understanding the question
Please try this code:
$site=Get-SPSite "http://test2013/"
$web=$site.OpenWeb()
$list=$web.Lists.TryGetList("Tasks")
if($list -ne $null)
{
$list.EnableAssignToEmail =$true
$list.Update()
}Regards,
karim
Please remember to mark your question as "answered" if this solves your problem.
Tuesday, June 25, 2013 8:58 AM -
Already we tried using this script. This is only send the email in create mode, Not send the mail in edit mode.
How to solve this issue?
Jey
Tuesday, June 25, 2013 10:17 AM -
i jeym,
I have tested this script and it is working for me. i am getting Alert in edit mode also
My farm is upgrade with April 2013 CU and one more thing is April 2013 CU enables "Alert Me" option in ribbon for Task list. you can configure alerts from list itself.
you can install April CU from following link
kindly let me for more information.
Regards,
karim
Please remember to mark your question as "answered" if this solves your problem.
- Marked as answer by star.wars Friday, July 5, 2013 9:18 AM
Tuesday, June 25, 2013 10:56 AM -
Keep in mind, the users need access to the list/library to get emails from it! in testing this is often forgotten!
I used to be an adventurer too, until I took an arrow to the knee.
Monday, February 1, 2016 7:23 PM