Question

I am working on a team site that contains an announcement list & also on an enterprise wiki site. i set a general alerts for all users to be notified when any item is added/edited/deleted . currently the notification email will be embedding the item content in the email body. so if a user add a new wiki page, then all the content will be send by email, which we find not very reliable, as some pages are quite long.

So i am trying to remove this from my alerttemplates.xml located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\XML , but seems the template is very long and i am unable to determine which XML component/s i need to remove ?

Thanks

EDIT

Ok i tried modifying the announcement list alert template as follow:-

<ImmediateNotificationExcludedFields>ID;MySubsUrl;ListUrl;MobileUrl;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</ImmediateNotificationExcludedFields>
            <DigestNotificationExcludedFields>ID;MySubsUrl;ListUrl;MobileUrl;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</DigestNotificationExcludedFields>
</Properties>

& as follow :-

 <Properties>
            <ImmediateNotificationExcludedFields>ID;Alerts_link_modify;Alerts_link_view;Alerts_mobile_view;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</ImmediateNotificationExcludedFields>
            <DigestNotificationExcludedFields>ID;Alerts_link_modify;Alerts_link_view;Alerts_mobile_view;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</DigestNotificationExcludedFields>
        </Properties>

but still i get these inside the alert message , although i have excluded the following MySubsUrl;ListUrl;MobileUrl:-

enter image description here

Was it helpful?

Solution

The alerttemplates XML will have templates for several list types. You will find the structure of the templates enclosed in

<AlertTemplate Type="List"  Name="SPAlertTemplateType.GenericList">

and a similar tag for announcement list. However modifying the alertemplate XML directly is not recommended. Also, if you modify the XML, the template change will apply for all the lists created through that list template. You can still have a look at this post. Another way would be to write a custom solution and trigger an email with required format when an announcement is added/modified.

OTHER TIPS

You have to modify the your custom template; to find the blocks of information that you need to remove or comment you should see this link:

https://msdn.microsoft.com/es-es/library/office/bb862021(v=office.14).aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top