"Start this workflow to approve publishing a major version of an item" in Project Site templates

Hi
I created a document library with the "Start this workflow to approve publishing a major version of an item" on, and saved the site as a template. However when I create instances using that project site template, the document library doesn't
have the "Start this workflow to approve publishing a major version of an item" option on, like the site that was used for the template have.
Is this option not possible to save on a project site template?
Here are the steps I did:
On a document library I set the versioning for major and minor version
I create an “Publishing approval” workflow and set it to “Start this workflow to approve publishing on a major version”.
But when I create a project instance of this type, the document library on the project site has the “Start this workflow to approve publishing on a major version” turned off.
Thanks!
Best regards

Hi,
I recommend to create a  WebProvisioned event receiver.
We need to create an event handler and register it with the Web Provisioned event. In the event, we need to find the specific Library and set SPList.DefaultContentApprovalWorkflowId property.
When the site is provisioned, the event handler is activated. Then the "Start this workflow to approve publishing a major version of an item" option will be checked.
More information:
SPWebEventReceiver.WebProvisioned method (Microsoft.SharePoint)
SPList.DefaultContentApprovalWorkflowId property (Microsoft.SharePoint)
Attaching Web Event to perform operations after creating the web (Event Receiver Concept)
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • Problem with custom sharepoint designer approval workflow - check box: 'Start this workflow to approve publishing a major version of an item' is greyed out

    I wanted to create a simple approval workflow. Hence I opted to start from scratch rather than copy the OOTB approval WF. Using SharePoint Designer (not Visual studio) I created a reusable workflow and have added the built in 'Start approval process' action.
    It's saved and published globally.
    Everything works fine except that when associating the WF with a list the 'Start this workflow to approve publishing a major version of an item' check box is disabled.
    Major and minor versioning is enabled for the library.
    What am I missing here? Or do I have to start from the OOTB approval WF to get this to work?
    Regards
    Henning

    Again - new ideas pop up right after defining the issue as a problem. :-) Problem solved!
    I solved this by creating a new workflow from the original publishing approval workflow (copy and replace), but instead of tweaking the already defined approval process (WF action) I deleted it, then deleted all initiation form and local variables,
    and then added the 'Start approval process' action again. This re-installs all the necessary local variables without any initiation form involvement, which is just what I want.
    From here I can tweak the workflow to make it more user friendly, much like
    described by Bobby Chiang in his great blog.
    Remember to add action Set Workflow Variable 'EnableContentApproval' to Yes right before the Start Approval Process action, else the document's status won't be set to 'Approved' or 'Rejected' as an output of the workflow.
    Learning every day!
    Henning

  • Start this workflow to approve publishing a major version of an item is disabled in SharePoint Online

    Hi there,
    Despite turning on the require content approval for submitted items in the version setting.  Start this workflow to approve publishing a major version of an item is still disabled in the workflow settings.
    Anyone one know how to enable this option.
    Thanks
    Regards,
    Ravi

    Hi Wendy,
    I tried to copy and modify the Globally Reusable Workflow->Approval-SharePoint 2010 but the problem
    that I am facing is, I cant seems to find the Assign a task in the Actions list and also when I am setting the approver variable to a value, I am missing a column name( how can I get a column which is used in a list?).
    But “Start this workflow to approve publishing a major version” is enabled now using this workflow
    but saying that I am unable to complete the workflow due to the action and column missing. 
    Previously the work flow that I created was for a specific list.
    Is there any work around to this issue?
    Thanks
    Regards,
    Ravi

  • OOTB workflow gives error when user rejects in the document in publishing a major version.

    Hi All,
    I am using OOTB workflow with little customization  with following configuration
    1. Allow content approval enabled
    2. Configure a workflow with following general settings true
    3. Start workflow on publish of Major version only is enabled
    4. workflow has following configuration enabled.
    Now, when user start publishing of major version and Starts the workflow. workflow starts without any problem.
    But as and when the user rejects the document it is rejected with Reject status with "Approval Status" as well as workflow status which is expected.(This is correct )
    But when i look at the workflow history i can see at last line there is an Error with
    An error has occurred in In [Workflow Name].
    Now when user check out and check in item again and try to publish with Major version again. it gives errors that the previous version is still running.
    I have trace a lot and also test with original OOTB workflow itself. it is behaving the same.
    As per my findings there is problem in "Completion condition of this task process" the end task process is not being executed correctly.
    I tried to end the task process with End the task process action but it is still not working.
    I need some help in this issue as users are facing problems in case of rejection. I hope some one has the solution for the same.
    Two things i have noticed are
    1. My MS office 2010 professional plus is expired as i was using trial version
    2. I have made stop inheriting tasks permission and remove all default groups as i have settings in workflow "Only allow task reception and process owner to read and edit workflow task"
    3. Earlier i had also installed "Sharepoint 2010 April 2012 updates". i had also observed that (installing Sharepoint 2010 April 2012 updates) before that if user has selected "Automatically rejects the document if any participant rejected". it ends
    with "rejected" status. At present it remains in inprogress and not stops with rejected status.
    Can any one give me a hint what should be the problem ? Is it a problem with latest Sharepoint 2010 April 2012 updates ?
    Thanks,
    S. M. MANIYAR

    I have done following testing.
    1. The server in which i have not installed sharepoint 2010 April 2012 updates the above scenario is working fine without any problem
    2. I have also observed following logs of error in server where April 2012 updates is installed.
    8/28/2012 03:51:41.33  w3wp.exe (0x0F08)                        0x0A00 SharePoint Foundation        
     Workflow Infrastructure        88xr Unexpected WinWF Internal Error, terminating workflow Id# 8bf7fef1-c92e-4b22-a16f-480425d3adc6 
    08/28/2012 03:51:41.33  w3wp.exe (0x0F08)                        0x0A00 SharePoint Foundation        
     Workflow Infrastructure        98d4 Unexpected System.InvalidOperationException:
    CompositeActivity cannot transition to 'Closed' status when there are active child context still exist for child activity.     at System.Workflow.ComponentModel.Activity.MarkClosed()     at System.Workflow.ComponentModel.ActivityExecutionContext.CloseActivity()    
    at Microsoft.Office.Workflow.Actions.OfficeTask.FinalClose(Object sender, EventArgs eventArgs)     at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)    
    at System.Workflow.Runtime.Scheduler.Run() 
    Following are last two lines of workflow history.
    S. M. MANIYAR

  • Start PO workflow after approved from first level

    Hi Guys,
    I have i typical requirement i my knowledge its not possible.
    What exactly has happened is that after upgrade BUS2012 event linkage was not active and there where no workflow got triggered for PO approval
    But the line manager have gone and approved the POu2019s from ME29N now for the next level they are asking to send the workflow as we have activated the linkage.
    Any idea how can we start the workflow from that point again.
    Atul

    Hi Atul,
    In production how many workflow's are there like this?
    Its small amount of workflow's then you can again manually trigger the workflow using SWUE[You should pass the object key as purchase order number] and Complete the first level of workflow.
    So it will be go for Second level of Approval.
    If you have large amount of workflows that are already Triggered in production, then you have to discuss with your client about the issue.
    Thanks,
    Viji.

  • TS1544 Keychain will NOT let me reset.  It will not let me get my email and keeps asking me for my password.  I only have one password and it won't take it.  I HATE THIS.  It has made my wonderful MAC and expensive item that just sits on desk.  PLEASE fix

    I can't get on line with out some keychain request for a password but it will not accept the one password I have.  I really hate this.  I have tried to unlock the local items but it want's a password and it will not take my password... PLEASE PLEASE genious MAC people fix this.  I loved my MAC until i downloaded OS X maverics and now i am wanting a PC.....

    If your computer was purchased less than 90 days ago, you are entitled to free telephone support from Apple. The period is longer if you purchased Apple Care and extended your warranty.
    Apple Support Contact
    Apple Support contact - Telephone
    What OS are your running? If you can access your user library, you can go to Keychains/login.keychain and move it to your desktop. Restart and a new login keychain should be created. If successful, delete the one from your desktop.

  • After the in place upgrade from SharePoint server 2007 to 2010, the out of the box approval workflow does not prompt for additional information after check in of a major version.

    I think it has to do with the interaction between Word, InfoPath, IIS, and /or SharePoint, but I cannot put my finger on it.  Maybe client integration or authentication settings?  I have looked at it in wireshark
    and have not seen anything glaring.
    Steps to reproduce the (working) behavior:
    Set up a document library in SharePoint 2010.
    Under versioning settings, make the following changes:
    Set Require Content Approval for submitted Items to Yes
    Select Create Major and Minor (draft) versions
    Set require checkout to Yes
    Create an out of the box “approval” workflow with the following settings:
    Start this workflow to approve publishing a major version of an item.
    I then create a new document. Save it.  check it in.  it is now version 0.1.
    I then open it again. check it out.  Make a change. Close and save it.
    Check it in.
    Publish major version:
    At this point a screen is presented to me to enter workflow parameters.  This screen comes up in Enterprise 2013 and MOSS 2007, but not the migrated version of 2010:
    This is what I need help with.  It should come up in 2010.  To fix it in 2013, I had to change the IIS bindings to only have 1 entry for a port.  I did this for 2010 and it did not work.
    Any help or ideas is very appreciated.  Thanks very much in advance.

    Hi Chris,
    According to your description, my understanding is that the approval workflow cannot work when the workflow was set to start to approve publishing a major version of an item after upgrading to SharePoint 2010.
    I recommend to check the approval workflow in Workflow settings of the corresponding library to see if the Start this workflow to approve publishing a major version of an item is checked.
    For test, I recommend to create a new OOB approval workflow and set it to start to approve publishing a major version of an item in the same library to see if the workflow can work.
    Thanks
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • How do I manually start a workflow to...

    I have a list with 2000+ items in it. I create a 2013 workflow in SPD that will look at an item and if it date is less than 1/1/2013 it will create a copy of the item on a list used for archiving, then delete the existing list item. 
    My question is how do i manually start this workflow on the entire list (instead of selecting 1 item at a time)?
    Thanks
    James T.F

    @Romeo
    I've found to potential PowerShell scripts that could launch a list workflow from powershell, but they both throw errors for me. 
    # URL of the Site
    $web = Get-SPWeb -Identity "https://sharepointsrv/site1"
    $manager = $web.Site.WorkFlowManager
    # Name of the list
    $list = $web.Lists["Shared Documents"]
    # Name of the Workflow
    $assoc = $list.WorkflowAssociations.GetAssociationByName("On Item Created","en-US")
    $data = $assoc.AssociationData
    $items = $list.Items
    foreach($item in $items)
    $wf = $manager.StartWorkFlow($item,$assoc,$data,$true)
    $manager.Dispose()
    $web.Dispose()
    this gives me the following error
    Exception calling "StartWorkflow" with "4" argument(s): "Value cannot be null."
    At line:15 char:28
    + foreach($item in $items) { $workflow = $workFlowManager.StartWorkFlow($item,$wor ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException
    The other PS Script
    $sourceWebURL = '<URL>'
    $sourceListName = '<List Name>'
    $TargetWorkflow = '<Workflow Name>'
    $spSourceWeb = Get-SPWeb $sourceWebURL
    $spSourceList = $spSourceWeb.Lists[$sourceListName]
    #Getting a Workflow manager object to work with.
    $wfm = New-object Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager($spSourceweb)
    #Getting the subscriptions
    $sub = $wfm.GetWorkflowSubscriptionService()
    #Getting the specific workflow within the list of subscriptions on the specific list. (SP2010 associated workflows basically)
    $WF = $sub.EnumerateSubscriptionsByList($spSourcelist.ID) | Where-Object {$_.Name -eq "$TargetWorkflow"}
    #Getting a Workflow instance in order to perform my commands.
    $wfis=$wfm.GetWorkflowInstanceService()
    Foreach($item in $spSourceList){
    #Creating the dictonary object I need to parse into StartWorkflow. This could be most other workflow commands.
    $object = New-Object 'system.collections.generic.dictionary[string,object]'
    $object.Add("WorkflowStart", "StartWorkflow");
    $wfis.StartWorkflowOnListItem($WF, $item.ID, $object)}
    Which then gives me this error.
    Cannot convert argument "itemId", with value: "GUID", for "StartWorkflowOnListItem" to type "System.Int32": "Cannot convert the "GUID" value of type "System.Guid" to type
    "System.Int32"."
    At line:23 char:5
    + $wfis.StartWorkflowOnListItem($WF, $item.ID, $object)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

  • Update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow

    Hi,
    We have a requirement to update a column value once the item has been approved.
    Following settings have been made in the publishing articles list:
    Require content approval for submitted items : yes
    Create major and minor (draft) versions
    Who should see draft items in this document library? :Only users who can edit items
    Require documents to be checked out before they can be edited? : yes
    I have createdatu a Sharepoint 2013 workflow to check if Approval sts of current item = 0 i.e. Approved , then check out and update the item and finally checkin the item. Everything works fine till this point except that the minor version of the item is
    checked in. Due to this the updated columns are not published to others.
    Also, I created a Sharepoint 2010 workflow to SET CONTENT APPROVAL = APPROVED and started this workflow from my list workflow above, but the item does not get checked-in and always shows "In Progress" status with comment "The item is currently
    locked for editing. Waiting for item to be checked in or for the lock to be released.".
    Please let me know where I am missing out so that once the item is approved, column value gets updated and current item is still in Approved status.
    Thanks

    Hi,
    According to your post, my understanding is that you want to update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow.
    You will get into this kind of Catch-22 situation trying to set the Content Approval Status in SharePoint Designer workflow:
    - You must check out the document before you can change the Content Approval Status
             - You can't change the Content Approval Status once the document in checked out
    Since you set the Require documents to be checked out before they can be edited=Yes, you will need to check out the document when run the workflow on the item. But you cannot approve a document when it is checked
    out. So the logic in workflow conflicts.
    As a workaround, you can use the Start Another Workflow action to start the normal Approval workflow on the document.  The built-in Approval workflow can work with a document that’s not checked out.
    The designer approval workflow also can work with a document that’s not checked out.
    You can create two workflow using SharePoint Designer 2013.
    First, create a SharePoint 2010 platform workflow.
    Then, create a SharePoint 2013 platform workflow.
    Then when the SharePoint 2013 platform workflow start, it will start the SharePoint 2010 platform workflow to set content approval status, then the SharePoint 2013 platform workflow will update current item value.
    More information:
    SharePoint Designer Workflow Content Approval Issue
    SharePoint 2010 Approval Workflow with Content Approval
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Publishing major version document with Workflow

    Hi
    I have a SharePoint Designer Workflow 2013 and need publishing the major version of document. But, I think that there aren't actions to do publish the document in SPD Workflow.
    How can I to do the publishing of document? Are there any web services to make this?
    Thanks
    Everton

    you can need to create a VS approval workflow or create a custom SharePoint Designer activity. Or if you want to use this feature, programming
    is also needed to create a custom activity to start the workflow automatically. check the below post explain the stuff in details:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/93431f51-464e-4801-9341-a3dd80c871d3/sharepoint-designer-2010-custom-workflow-publishing-a-major-version
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to change all published projects sites format?

    Hi every one;
    I have about 400 project in pwa, our client deceided to change all project site format(design,webpart,library,...)
    how can I change all projects sites format? it will take too much time to change their format one by one
    thanks for any help

    You can not change the project site format which you already have,You need to perform this one by one for project site. 
    As far as time is concerned it depends on your format. 
    Also you can create one project site template in which you can add your webpart, add library and give your format then attach that template with Enterprise Project Template so that at least new project site will have all the new format.
    kirtesh

  • By publishing this workflow, conditions and actions inside Impersonation steps will run using your credentials

    In a SharePoint 2010 workflow that accesses a custom list, I am getting the following warning message before I publish the workflow to the SharePoint test server:
    "By publishing this workflow, conditions, and actions inside impersonation steps will run with your credentials".
    The only step in this SharePoint 2010 workflow is the impersonate step.
    Thus would you tell me what I can do to have the workflow run under different credentials?

    Hi,
    As the warning says, any actions within Impersonation step would be carried out under your credentials if you published the workflow. If you intended to just add a Step in the workflow, then use different icon that says Step (with down arrow). Impersonation
    step is used to modify the permissions on the item.
    Once you have this, the workflow will be executing under the credentials of whoever starts it. Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • HT204053 i'm using same apple id for my ipad & ipod but after start using the same apple id on my ipad, i can't upadte my free software, it's showing "YOU CAN NOT UPDATE THIS SOFTWARE SINCE YOU HAVE NOTOWNED THE MAJOR VERSION OF THIS SOFTWARE" so how I ca

    I'm using same apple id for my ipad & ipod but after start using the same apple id on my ipad, i can't update my free software downloaded on both, it's showing "YOU CAN NOT UPDATE THIS SOFTWARE SINCE YOU HAVE NOT OWNED THE MAJOR VERSION OF THIS SOFTWARE" so how i can update my softwares on ipad & ipod using the same apple id

    I think the issue is that iTunes (for whatever reason) thinks I have two Apple ID's.
    also, to further complicate the issue, when i try updating the apps from my iPod the iTunes store is still recognizing my old hotmail Apple ID. So when I go to enter my password it won't accept because it doesn't match with the old Apple ID, even though it is the same account (just new Apple ID name).
    I have tried signing out within the App Store and re-signing in with my Apple ID but it still brings up my old Apple ID name when I try to update.

  • HT2404 When I try to download free updates for apps, I've suddenly started getting an error message saying: You cannot update this software since you have not owned the major version of this software." But I do own the apps. And I haven't changed my ID

    When I try to download free updates for apps, I've suddenly started getting an error message saying "You cannot update this software since you have not owned the major version of this software".
    But I HAVE owned the software, for ages. (And, in any case, the apps in question are all free.)
    And I don't have multiple Apple IDs.
    What can I do?
    Any advice much appreciated

    This can occur if you bought the machine used and iLife was reinstalled with another AppleID.
    This also can occur if the "free apps" you downloaded have paid upgraded versions and/or are now payware and you can't get updates.
    All software from MAS is copy protected, it might be free as in "no charge" but it's not free in the sense you can share it with others.

  • Error publishing a folio: An error has occurred while trying to publish your folio.  We could not start this operation. Please try again later.

    I can't publish a folio into my DPS Professional Account.
    This is the error message:
    An error has occurred while trying to publish your folio.
    We could not start this operation. Please try again later.
    Anyone can help?
    Tks

    Hi,
    It seems there is something wrong with your sign up process, sorry for the inconvenience, this is technical forum, the account issue is out of our range, please follow steps below to contact with azure support, it's a best choice for you.
    Get the support channel at:
    http://www.windowsazure.com/en-us/support/options/
    If you have any other concern, please feel free to let me know.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for