0

I've created a Task List in my app web with a custom content type based on task. I want to be have an email sent when an item is assigned to someone.

Looking around it seems that adding EmailAssignTo="TRUE" to the List element in Schema.xml should do the trick however I see the following:
Warning 1 The 'EmailAssignTo' attribute is not declared.

EmailAssignTo doesn't seem to be documented by Microsoft. Am I going about this the wrong way?

Euan
  • 1

1 Answers1

0

Based on a quick PowerShell check/test the List property you want appears to be entitled EnableAssignToEmail, which expects a Boolean value.

Source documentation from MSDN: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.enableassigntoemail.aspx

SPList.EnableAssignToEmail property

Gets or sets a Boolean value specifying whether e-mail notification is enabled for the list.

Community
  • 1
  • 1
Stevangelista
  • 1,799
  • 1
  • 10
  • 15
  • Thanks for your answer. I tried EnableAssignToEmail="TRUE" in the Schema.xml but see a similar warning when deploying: Warning 1 The 'EnableAssignToEmail' attribute is not declared. – Euan Apr 24 '17 at 11:06
  • Are you adding it as an attribute on the element or as a child element? – Stevangelista Apr 24 '17 at 11:15
  • Also, are you saying it absolutely does not work, meaning you've deployed & tested it? Or is it just that VS is complaining? I'm seeing reports of other valid properties throwing the same warning but working just fine when deployed. – Stevangelista Apr 24 '17 at 11:19
  • I'm adding EnableAssignToEmail as an attribute on the element. Have deployed to my dev site and packaged and tested on live site. It just doesn't work. – Euan Apr 24 '17 at 11:44