【发布时间】:2017-08-25 18:31:06
【问题描述】:
我已经在讨论板上实现了 ItemAdded 事件
public override void ItemAdded(SPItemEventProperties properties)
当为特定帖子添加回复时,我需要读取其父列表项的元数据值。例如:CustomColumn 是ForumCategory,值是“.NET”,所以当在此类别下添加任何回复时,我需要获取它的值。
我写在下面
if(properties.ListItem.ContentType.Name == "Message")
{
//how to read its parent item's column's value
}
我将在发送邮件时使用它,在“.NET”类别下添加了新回复
【问题讨论】:
标签: sharepoint sharepoint-2013 sharepoint-discussion-board