You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that discussion bord list created programmatically lacks some configuration. Needs to be investigated.
How to enable Likes in Default DiscussionBoard List with SPMeta2 CSOM?
var list = new ListDefinition
{
CustomUrl = string.Format("Lists/{0}", listUrl),
Title = listName,
TemplateType = BuiltInListTemplateTypeId.DiscussionBoard,
OnQuickLaunch = false,
ContentTypesEnabled = true,
EnableAttachments = true
};
var ratingsEnabled = new PropertyDefinition
{
Key = "Ratings_VotingExperience",
Value = "Likes",
Overwrite = true
};
var model = SPMeta2Model.NewWebModel(webNode =>
{
webNode.AddList(list, listNode =>
{
listNode.AddProperty(ratingsEnabled);
});
});
var povisionService = new CSOMProvisionService();
povisionService.DeployWebModel(context, model);
After creating a list through SPMeta2, no relevant columns.
Voting experience has nothing to do with actual list creation process. Setting up "Ratings_VotingExperience" property bag value to "Likes" is not enough as all the required fields have to be added manually. Further architectural guides or suggestions are out of the current ticket.
Should the correct and working example of the desired behavior in C# be available, we more than happy to guide the M2 implementation/port.
Seems that discussion bord list created programmatically lacks some configuration. Needs to be investigated.
https://www.yammer.com/spmeta2feedback/?trk_event=dd_viewmorecta_click#/home?trk_event=dd_viewmorecta_click
The text was updated successfully, but these errors were encountered: