Apply workflow to approval task content type

Here's the backstory. I created an OOB Approval Workflow which created a content type called "Approval Workflow Task (en-US)". I created a new site column called Contract. I applied this site column to the Approval Workflow Task (en-US) content
type. Now I want to setup a workflow which will automatically populate this Contract field.
The problem is that in SharePoint designer I setup a list workflow to work across all items in the Task list, but it won't apply to this new content type for some reason. If I got to this content type in designer, there is not an option to apply a workflow
to it. It looks like this content type is in a group called _hidden, but when I change this, it doesn't look like anything happens.
Am I missing something?

Hi Mike,
When we create a List Workflow in SharePoint Designer, then the workflow will be associated with the list and it will not be associated with the content types.
Per my test, we cannot start the workflow manually on the Tasks items which have been created based on the Approval workflow content type.
However, we can set the workflow to start automatically when an new item is created.
To start the workflow automatically when an item is created, please open the workflow in SharePoint Designer > go to the workflow settings page > select Start workflow automatically when an item is created.
Best regards.
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Error when associating workflow with Task Content Type

    Using SharePoint Designer 2010, I have created a simple workflow that sends an email out when a tasks due date has past.  I created this as a Global Workflow and then tried to "Associated to Content Type", selecting "Task".  I am then taken
    to... COMPANY PORTAL--> Site Settings--> Site Content Types--> Task--> Add a Workflow. When I try to associate the new "Global" workflow and select OK I get the following error...
    Error
    Workflows may not be associated with content types whose base is on 'WorkflowTask'.
    I have looked up the error but find no real explination of what it means.  And I have associated global workflows with custom content types and never had this issue. 
    So what's going on?
    Thanks
    Steve
    Thanks in advance for your time. Steven

    Hi ,
    I understand that when you bind the workflow to Tasks content type, there is an error. I can reproduce this error. This is because we cannot add a reusable workflow to a workflow tasks content type. When you add the reusable workflow to the Tasks content
    type, you must have checked the ‘Add this workflow to all content types that inherit from this content type’. In this way, the workflow will be added to all the Tasks content type and workflowtasks content type. There will an error. After you close the error
    message, the workflow is added to the Tasks content type.
    The workaround is the check No to ‘Add this workflow to all content types that inherit from this content type’.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • SP 2013 Workflow Associations - get the content type for associated tasks with PowerShell

    I am creating a PowerShell script to document SharePoint 2013 workflow associations on a site. I can get the Subscription object for the workflow association, but I can't figure out how to dig into it to find out the Content Type for tasks generated
    by workflows created by this WF association. I can get the Task List ID from the Subscription.PropertyDefinitions, and from there can get the Task List. But the task list may use many different content types, because when you associate a 2013 workflow
    to a list, SharePoint adds the workflow's content type to the set of content types used by the workflow task list. If you have a lot of workflows that use the same task list, that task list gets a lot of content types.
    I have the Subscription object for the workflow association. How can I divine the content type for tasks that the workflow will generate?
    Leigh Webber

    I would suggest you to consider using the SPListItem that running the workflow instance to check the task content type.
    First, find the list item that associated with the workflow, then SPListItem.Tasks returns a collection of workflow tasks for the item, you can check the content type from the task item.
    Qiao Wei
    TechNet Community Support

  • Deploying a Reusable Workflow to a List Content Type using PowerShell

    We have a situation where deployment of a reusable workflow for a site content type cannot be completed through the web interface due to the number of libraries where the content type is in use (time-out on deploy and update).
    It was hoped that this could be accomplished with PowerShell but the method of deploying to a list content type appears to be different than it is to a list (all content types).
    The below snippet works fine for a list / all content types:
    function AddWorkflowToLibraries ($SiteCollection, $ctName, $WfName, $WfAssociationName)
    $site = Get-SPSite $SiteCollection
    [Guid]$wfTemplateId = New-Object Guid
    #Step through each web in site collection
    $site | Get-SPWeb -limit all | ForEach-Object {
    $web = $_
    $_.Lists | ForEach-Object{
    if($_.AllowContentTypes -eq $true)
    if($_.ContentTypes.Item("$ctName") -ne $null)
    write-host "Enabling workflow on" $_.Title "in" $_.ParentWebUrl
    $ct = $_.ContentTypes[$ctName]
    $culture = New-Object System.Globalization.CultureInfo("en-US")
    $template = $site.RootWeb.WorkflowTemplates.GetTemplateByName($WfName, $culture)
    if($template -ne $null)
    $tasklist = "Tasks"
    $historylist = "Workflow History"
    if(!$web.Lists[$historylist])
    $web.Lists.Add($historylist, "A system library used to store workflow history information that is created in this site. It is created by the Publishing feature.",
    "WorkflowHistory", "00BFEA71-4EA5-48D4-A4AD-305CF7030140", 140, "100")
    if (!$web.Features["00BFEA71-4EA5-48D4-A4AD-305CF7030140"]) {
    Enable-SPFeature -Identity WorkflowHistoryList -Url $web.Url
    $wfHistory = $web.Lists[$historylist]
    $wfHistory.Hidden = $true
    $wfHistory.Update()
    if(!$web.Lists[$tasklist])
    $web.Lists.Add($tasklist, "This system library was created by the Publishing feature to store workflow tasks that are created in this site.", "WorkflowTasks", "00BFEA71-A83E-497E-9BA0-7A5C597D0107", 107, "100")
    $association = [Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListAssociation($template, $wfName, $web.Lists[$tasklist], $web.Lists[$historylist])
    $association.AllowManual = $true
    $_.AddWorkflowAssociation($association)
    $_.Update()
    else
    Write-Error "Workflow Template not found"
    AddWorkflowToLibraries <Site Name> <Content Type Name> <Workflow Template Name> <Association Name>
    However changing the association as follows causes the script to still execute without a problem but the workflow doesn't appear for the content and the associations collection is empty:
    function AddWorkflowToLibraries ($SiteCollection, $ctName, $WfName, $WfAssociationName)
    $site = Get-SPSite $SiteCollection
    [Guid]$wfTemplateId = New-Object Guid
    #Step through each web in site collection
    $site | Get-SPWeb -limit all | ForEach-Object {
    $web = $_
    $_.Lists | ForEach-Object{
    if($_.AllowContentTypes -eq $true)
    if($_.ContentTypes.Item("$ctName") -ne $null)
    write-host "Enabling workflow on" $_.Title "in" $_.ParentWebUrl
    $ct = $_.ContentTypes[$ctName]
    $culture = New-Object System.Globalization.CultureInfo("en-US")
    $template = $site.RootWeb.WorkflowTemplates.GetTemplateByName($WfName, $culture)
    if($template -ne $null)
    $tasklist = "Tasks"
    $historylist = "Workflow History"
    if(!$web.Lists[$historylist])
    $web.Lists.Add($historylist, "A system library used to store workflow history information that is created in this site. It is created by the Publishing feature.",
    "WorkflowHistory", "00BFEA71-4EA5-48D4-A4AD-305CF7030140", 140, "100")
    if (!$web.Features["00BFEA71-4EA5-48D4-A4AD-305CF7030140"]) {
    Enable-SPFeature -Identity WorkflowHistoryList -Url $web.Url
    $wfHistory = $web.Lists[$historylist]
    $wfHistory.Hidden = $true
    $wfHistory.Update()
    if(!$web.Lists[$tasklist])
    $web.Lists.Add($tasklist, "This system library was created by the Publishing feature to store workflow tasks that are created in this site.", "WorkflowTasks", "00BFEA71-A83E-497E-9BA0-7A5C597D0107", 107, "100")
    $association = [Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListContentTypeAssociation($template, $wfName, $web.Lists[$tasklist], $web.Lists[$historylist])
    $association.AllowManual = $true
    $_.ContentTypes[$ctname].AddWorkflowAssociation($association)
    $_.ContentTypes[$ctname].Update()
    else
    Write-Error "Workflow Template not found"
    AddWorkflowToLibraries <Site Name> <Content Type Name> <Workflow Template Name> <Association Name>
    The only change is:
    $association = [Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListContentTypeAssociation($template, $wfName, $web.Lists[$tasklist], $web.Lists[$historylist])
    $association.AllowManual = $true
    $_.ContentTypes[$ctname].AddWorkflowAssociation($association)
    $_.ContentTypes[$ctname].Update()
    But unlike the list version, the association doesn't appear to be saved and no error is generated.
    Is anyone aware of what may cause this or have an example in C# that may explain something my script is missing?

    Hi Garry,
    After you associate the workflow to the content type, you should update the update the content type using
    $ct.UpdateWorkflowAssociationsOnChildren($true,$true,$true,$false)
     method.
    Here is the completed script:
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $site=Get-SPSite "http://serverName"
    $web=$site.OpenWeb()
    $list=$web.Lists["ListC"]
    $taskList=$web.Lists["Tasks"]
    $historyList=$web.Lists["Workflow History"]
    $ct=$list.ContentTypes["Link"]
    $culture=New-Object System.Globalization.CultureInfo("en-US")
    $wfTemplate=$web.WorkflowTemplates.GetTemplateByName("Three-State",$culture)
    $associationWF=[Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListContentTypeAssociation($wfTemplate, "myThreeStateWF",$taskList,$historyList)
    $ct.WorkflowAssociations.Add($associationWF)
    $ct.UpdateWorkflowAssociationsOnChildren($true,$true,$true,$false)
    Here is a demo about how to update it using C#
    http://www.thorntontechnical.com/tech/sharepoint/sharepoint-2010-associate-workflow-to-content-type-in-a-feature
    Wayne Fan
    TechNet Community Support

  • Sharepoint 2013 designer workflow auto approve task after due date is passed

    sharepoint 2013 designer workflow auto approve task after due date is passed.
    Could we approve the task automatically once due date is apssed?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    If your task is created by a workflow (first) and stored in a separate task list, you can create another workflow on this particular task list, then each workflow instance would check if current task is expired (not approved/rejected), then
    determine if update current task's "Task Outcome" as approved (and update task status as complete), and then create a retention policy on this paricular task list to trigger the workflow on due date .
    Thanks,
    Daniel Yang
    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]
    Daniel Yang
    TechNet Community Support

  • Help on Approval Workflow and content types

    Hi
    So here is my question hope you guys can help!
    So i was setting up a workflow for a leave request form. Everything was fine and I had the Approve/Reject buttons at the bottom of the task EditForm. Now I copied the content types to a new one and changed the Optional settings (lets says title hidden %
    completed hidden etc) and then I changed the Task content type too so as to allow for that new content type to take place. Then i relaunced the workflow everything worked nicely the form look the way I wanted it but then on the EditForm I didnt have the ebuttons
    any more so I found it odd so I reset the content type to the original checked that everything was back in place (the hidden back to optional etc) and even on the original Workflow Task (Sharepoint2013) content type the buttons disapear now I have to manually
    add to the completed column and change the drop down menu of the Task Outcome to approved or rejected to make the workflow spit out the results.
    I was wondering what happened I do not understand it. I even deleted all the Task List and Lists associated witht the workflow re wrote the workflow and nothing... So i m a bit out of my depth.'
    When I click on the Cutomized List Default Edit Form... I do get the form with the button but its not the same one I get with the Email Link or the Link and the actual List
    Any pointers?
    I appreciate it!

    Hi  ,
    According to your description, my understanding is that the outcome buttons disappear after you change the Optional type column in Workflow Task(SharePoint 2013)  content type.
    For your issue , please make sure the Task Status and Task Outcome type columns are existing in the content type in order for the custom outcome buttons to appear.
    For more information, you can refer to the blog:
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/09/14/how-to-manipulate-the-task-form-with-sharepoint-designer-for-new-task-actions.aspx
    As your original demand is setting up a workflow for a leave request form, here is a great blog you can have a look:
    http://jamilhaddadin.com/2011/12/03/implementing-workflow-using-infopath-2010-and-sharepoint-designer-2010/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Workflow attached to content type shows the status as 'Starting'

    Hi,
    I have developed a workflow to distribute documents from Drop Off library to different SharePoint libraries based on the content type that the document uploaded to.
    The drop off library has been configured incoming mail settings hence the documents would be on boarded to drop off library through e-mails. In this scenario, my workflow should be triggered when the document is on boarded through email.
    Another scenario, the user can upload the document to different content type manually and updates the respective meta data values. This scenario, my workflow should be triggered when the item updated.
    So, I have configured my workflow should run on the content types and trigger when item is created through e-mail and item is updated by manual.
    The document on boarded through e-mails are working fine as soon as the item is created.
    Issue:
    The workflow associated on a content type which needs to be triggered on item created is triggering as soon as the user uploads a document manually and shows the status as 'Starting'.
    The workflow associated on a content type which needs to be triggered on item modified is triggering as soon as the user updating meta data values after document is uploaded. Hence, throwing an error
    'cannot open a file from drop off' library exception when I try to read file using C# code as file stream bytes.
    Configuration:
    1. The content types are having mandatory fields which has a default values set.
    2. The document version settings are set as check out the document when editing the properties.
    Please help me to resolve this bug and let me know if you need more details.
    Also, let me know how can we cancel the workflow if it is in 'starting' mode.
    The workflow should run the document is onboardedwhen an item is created and

    Hi,
    According to your description, my understanding is that you want to get data from content type in JSlink.
    I suggest you can get the content type data in JSLink using JavaScript Client Object Model.
    Here are some derailed code demos for your reference:
    http://sharepoint.aspcode.net/view/635399286724222582163436/sharepoint-how-to-get-field-value-using-jsom-jslink-without-async-call
    http://sharepoint.stackexchange.com/questions/93777/how-to-get-contenttype-name-in-clientsidejavascript-jquery-csom-etc-in-editf
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Content Type Workflow Disapear

    Hi all,
    I've created a Reusable Workflow associated to a Content Type on a site.
    This content Type have several child Content Types used in some libraries in that site. 
    When I publish the workflow on SPDesigner, it is immediately available on each library where the child CT's are used.
    The problem is that, when I try to run the workflows, it shows "Failed on Start".
    And this is even weird, If I access the site through HTTPS, and try to see workflow logs ("_layouts/Workflow.aspx"), the workflow is automatically deleted from that library. I need to update the parent CT again, so the child's inherit the workflow
    again.
    The workflow is a simple write to workflow log.
    SharePoint 2010 Server Standard

    Hi Bruno,
    Thanks for posting your issue, Kindly follow the below mentioned steps to troubleshoot this issue
    Start the workflow manually to check whether it works.
    Use another account not System Account to check whether it works.
    Publish the workflow as a different user (rather than System Account).
    Deactivate and Reactive the “Workflow” Feature.
    Also, browse the below mentioned URLs to know more about this issue and fixes of it
    http://chayadigital.wordpress.com/2012/07/16/sharepoint-2010-custom-workflow-failed-to-start-error/
    http://support2.microsoft.com/kb/2496152/en-us
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Document Set Content Type Workflow

    I have a document library in Share Point 2013 that is using Document Sets.  I need to set up a workflow under the document content type that would send an e-mail if documents have not been uploaded by a specific due date in the document set.  Any
    Help will be greatly appreciated.

    Hi,
    Based on your description, my understanding is that you want to send an email if there is no document uploaded to the document set by a specific due date in the document set.
    I recommend to create retention policy on the document set content type in the library to start the workflow at the due date.
    The workflow can be created as the image below:
    Firstly, get the max id in the library for using in the loop condition in the workflow:
    You can follow the link below for details:
    http://social.technet.microsoft.com/Forums/en-US/a8a890b5-f5fb-447f-b96f-9f3abdb7e178/forum-faq-sharepoint-2013-extracting-values-from-a-multivalue-enabled-lookup-column-and-merge?forum=sharepointgeneral
    Secondly, we need to loop through the items in the library and then check if there are documents(including folders)
     existed inside the document set which is called text for example.
    Please change the string “/sites/victoria/lib set/” in the Replace Substring in String step to be the relative URL of your library and make sure that there is a space before the document set name in the if condition in the workflow as the image below shows:
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Link State machine Workflow to Content Type

    State machine Workflow

    Hi ,
    What purpose do you use the drop down column for?
    Assuming the values of the drop down are No/Yes, you can create the reusable workflow like the screenshot:
    Note: as you only want to have this workflow for a particular content type, you need to use SharePoint 2010 workflow platform.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Custom Content Type

    So I was asked to post my question here. I have a custom content type that I created in the sharepoint content type. The purpose of this is to add custom outcome options for a workflow for a list in the site. 
    I create a column, make the information "Task Outcome".  When I go into SharePoint Designer, I assign a task, go to "Outcome Options", choose the "Task content type:". I choose the custom task content at which point I get
    a warning underneath saying "Check to make sure this content type is applied to the workflow's task list." I go to the list in "Lists and Libraries" in the "Navigation" portion choose the list and "Add" or verify that
    the content type is applied to the list. Everything seems to be in order. But when I start the work flow in the list, it always suspends itself when it gets to the task, won't resume and won't continue. It just permanently suspends.  If I use the
    normal "Workflow Task (SharePoint 2013)" for the Task content type:" then it goes just fine.                            

    First, your approach is incorrect... adding an outcome does NOT involve creating a content type.
    Not sure which WF task/activity needs the outcome, but that *should* be a simple customization within SPD
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Adding the PSWApproval Content Type to the Outcome Options in SharePoint 2013 Designer

    Hi All,
    I would like to add the "PSWApproval Task" Content Type in the sharepoint 2013designer, in the process of creating a project server 2013 workflow.
    By default the Share point Designer is taking the Task content Type as Workflow Task. Can some one help me adding the PSWApproval Task here. Attached is the snapshot of the same.
    Thanks

    Its funny I am researching tis very topic right now. I have a SP2010 environment I will be migrating to 2013. My content types were used in multiple site collections without creating or using a content type hub. So, I am looking for information to create
    a strategy to get them into one.
    I have in excess of 400 Custom content types.   Also - Has anyone developed/documented a process for being able to rebuild/migrate data between content types.   Part of what we are looking to do prior to implementing a new records management
    project
    James Moore

  • Search for all items belong to parent, child or grand child content type

    Hi,
    The goal is to get all tasks from various site collection for a given farm. I have about 7 content types and their parent content type is Task. However, the following query is only returning where a list is setup with only parent content type "Task".
    {searchTerms} ContentClass:STS_ListItem_Tasks AssignedTo:{User.Name} 
    If I have a list and Task is the only default content type then the data from this list shows up using above query. However, I have a list say "Workflow Tasks" and it has several content types (Tasks, summary Task, Workflow Task) then items from dont
    show up in the search result. Remember, the workflow task content type's parent is task (ctype=0x0108). 
    Please suggest.
    Thanks

    Hi,
    Thank you for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SharePoint 2007 - Content Type Usage

    My question relates to Content Type Usage.  I am helping to develop a customer facing SharePoint site template for my company.  The main purpose of the site is to track the ERP Software Implementation process from start to finish.
    I created a new task list which includes all the stages and activities within the project schedule of the implementation.  I then created a calendar View of this task list so that customers can view it in calendar form. 
    The issue that I am running into is that the Task List Item Content Type doesn't include the All Day Event column and so the items on the calendar view of the task list are not displaying properly (they end the day before vs the day of).  I found that
    I need to add the Event Content Type in order to utilize the All Day Event column.  I added the Event Content Type and now have found that's it's an either/or situation.  I can either create a New Event or a New Task.
    Long question short, is there a way that I can "merge" content types so that the Task content type includes the All Day Event column?

    Columns form part of content types, which you know.  What isn't clear is that there is a _hidden group of columns that don't appear in the SharePoint GUI.  The All Day Event is one of them.  If you were to download
    SharePoint Manager 2007 you could find the property and change it's group.  Here's a screenshot of what you'd need to change
    You'd navigate something like Farm --> Services --> Web Applications --> <Your Web App> --> <Site Collection> --> Fields.
    I normally move items from the _Hidden group to the Custom Columns grouping. This will then make it available for addition within the Content Type that you've made.
    Hope that helps.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Filter SharePoint 2010 Ent. content types based AD Security Group

    We are trying to use SharePoint as a records management system. I have several site collections (Team Site at the root of each site) and my plan is to setup one site collection as a content type hub. The content type hub would then distribute all of the
    content types to my other site collections. Since I may have 70 different content types I want to filter what each user can see based on AD Security Groups (the SG matches the department the employee is in). This way they can only choose the content type that
    applies to their department and it won't be so confusing. I'll then apply retention policies based on content type. I know that I can apply retention policies based on the document library but I want the users to be able to organize their records however they
    want to.
    Am I taking the wrong approach? Is this possible?

     
    Hi,
    As far as I know, we can define the Permission Set on a content type. In this way, you can control which users or group can change or access which content types.
    For more information about SharePoint security and content type, see
    http://blog.contentmanagementconnection.com/Home/21510
    Thanks,
    Rock Wang
    Rock Wang TechNet Community Support

Maybe you are looking for

  • Is there a way for multiple users to connect to my home sharing with their iOS device to select music to stream to my A/V receiver jukebox style?

    I have an A/V receiver that I can connect to and select music to stream over my network but I want to know if I have a party if it's possible for multiple users to have access on their own devices to my home shared music and select music to play like

  • One login for multiple applications

    Hi, I was using HTMLDB 1.6 and followed the following guidlines: one login multiple applications for one login to multiple applications. Basically I set the cookie name the same for both applications. It worked. Now I've upgraded to HTMLDB 2.0 and th

  • How to import a message class in a fm

    Hello! I' m programminn a FM. I need to use a message class that i have created. How i can import it? I have to return a strcuct which i have to copy my message class. My code:           DETAIL_RETURN-ID =           DETAIL_RETURN-NUMBER =           D

  • Inner classes in ABAP

    Hello! Is it possible to declare inner classes, that is, classes within classes in ABAP? If yes, please provide example. Thanks! Kind regards, Igor

  • ODBC SQL_ATTR_PARAM_BIND_OFFSET_PTR  and SQLPrepare

    I am having a problem with Oracle ODBC driver 9.02.00.65 when using both parameter bind offset pointer and peparing the statement using SQLPrepare. If the statement is not prepared then the parameter bind offset pointer is used correctly by the drive