我正在实施露天分享讨论的电子邮件通知。每当创建新主题时,我都能收到通知。但主题ID是错误的。我正在获取整个讨论主题列表的链接,而不是该特定主题。
这是我的javascript代码段
var mail = actions.create("mail");
mail.parameters.subject = "New Post in Discussion: " + document.parent.childAssocs["cm:contains"][0].properties.title;
//mail.parameters.template = companyhome.childByNamePath(template);
mail.parameters.text="A new post is available in the " + document.parent.childAssocs["cm:contains"][0].properties.title + "site. " + "site. It was added by" + person.properties.firstName +" "+ person.properties.lastName+ " \r\n You can view it through this link : http://sameer/share/page/site/"+document.parent.childAssocs["cm:contains"][0].properties.title +"/discussions-topicview?topicId="+document.parent.children[0].name+"listViewLinkBack=true";
主题标识topicId="+document.parent.children[0].name
无效。如何获取主题ID。