Dec 04 2018 12:26 AM
Hello,
I have created a custom reusable workflow in SharePoint Designer. I am facing an issue after deployment of workflow. I have to activate the workflow feature with CSOM but I am not able to get that feature with CSOM code. I have tried code but this code is not showing that custom workflow feature id. I have tried on web & site level also :
public static void GetAllWebFeatures(ClientContext ctx, Web web)
{
try
{
var webFeatures = web.Features;
ctx.Load(webFeatures, fcol => fcol.Include(f => f.DisplayName, f => f.DefinitionId));
ctx.ExecuteQuery();
foreach (var f in webFeatures)
{
Console.WriteLine(f.DisplayName);
}
}
catch(Exception ex)
{
Helper.WriteException("Error in GetAllFeatures", ex);
}
}
Dec 04 2018 01:58 AM
Dec 07 2018 09:59 AM
Thanks for your reply. But we have to enable that feature with CSOM.