Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint 2013 : How to set workflow Association AutoCleanupDays property for SP 2013 workflow

$
0
0

Hi,

As we know SP 2010 and 2013 workflow behaves differently and have major differences. We have AutoCleanupDays property available for SP 2010 workflow but not for SP 2013 workflow.

We are trying to set the AutoCleanupDays for SP 2013 workflow but do not found any property.

We have tried following code to get the workflow association.

$spurl="<My site URL>"

$web=Get-SPWeb $spurl

$list=$web.Lists["Record Library"];

$wfm=New-object Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager($web)

$sub=$wfm.GetWorkflowSubscriptionService()

$subscriptions=$sub.EnumerateSubscriptionsByList($list.ID)|Where-Object {$_.Name-eq"<My workflow name>"}

$subscriptions.AutoCleanupDays   #not found

Any help is appreciated.

Regards,

Prasad Pathak


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>