Cleaned Workflow History List - Workflow Pausing State failed to resume

Hi All,
SPD workflow is pausing for some duration once it resume send mail and pause again as per some business condition, it repeat 9-10 times only.
Pausing duration is 1 week
Couple of months, It was working fine, then suddenly it starts showing the status "Failed to Start (retrying)" getting a result but not 100% accurate, some times its start  firing unwanted mails to target audience.
Then I checked all the jobs which were running ,but workflow history list was showing more than 100K + records and exceeding threshold limit i.e. 5K, then i delete the record from the workflow history list and figure come down to 1K only. After that,
as i created the item and start same workflow, its never resume , even i pause it for 10 minutes and checked after 2 days, still in pausing state.  I spend 3-4 days to explore it. but didn't get any success . Please suggest for the same.
Thanks and Regards.. 
Manoj Mittal

Hi Cowboy,
Per my knowledge, if we delete the workflow history list items, it will not affect the workflows waiting to be triggered.
However, if you go to the workflow status page, the history will be empty as the events 
have been deleted in workflow history list.
The code in your post will delete 2000 items in workflow history list.
As there is no status for the items in workflow history list, so I recommend to use the date as the query condition.
For example, if you want to delete items created between 2015-02-01 and 2015-02-16, then you can change the query as below in your code:
$query="<Where><And><Geq><FieldRef Name='Created'/><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Geq><Leq><FieldRef Name='Created' /><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Leq></And> </Where>"
$spQuery=$query
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

Similar Messages

  • Delete SharePoint Workflow History List Questions

    I found the code below here :
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/79aa3bd4-d334-4614-9304-15998a95aefb/delete-list-with-43-million-items-workflow-history-list?forum=sharepointadminprevious
    I originally had 81K items in the workflow history list..Dating back to a year ago, which obviously didn't need to be saved in the workflow history list. And we all know Workflows start to have issues when this WF History list get a lot of items in it.
    my questions are now that I have it cleaned up...
    I have workflows that trigger 30 days prior to when an item expires.  so for example if an item expires 12-15-15, the workflow sends an email 11-15-15.  but these expiration dates can be at any time of the year. for example lets say the
    item was entered on  2-2-15 with expire date of 12-15-15 -  workflow is now  triggered so that emails would be send in 11-15-15 ....
    So if I delete the workflow history list item will it affect the workflow waiting to be triggered?
    Is there a way with the code below to capture workflows that have completed, error'd out, or failed to start?
    As I figure those would be safe to delete if deleting items from the workflow history list affects workflows waiting to be triggered?
    or would it be possible for the code below to be modified  to delete based on either ID of list item and or date range?? 
    like  say  delete  completed workflows at 100 items every thirty days?
    but I can not have a current waiting workflow to trigger & history beaffected by the workflow history list delete.
    ********************************** Code **************************************************************
    $weburl = "http://"
    $listname = "Workflow History"
    #param($weburl,$listname)
    #if ($weburl -eq $null -or $listname -eq $null)
    #    write-host -foregroundcolor red "-weburl or -listname are null."
    #    return
    Add-PSSnapin Microsoft.SharePoint.Powershell -EA 0
    $web = get-spweb $weburl
    $list = $web.lists[$listname]
    $stringbuilder = new-object System.Text.StringBuilder
    try
        $stringbuilder.Append("<?xml version=`"1.0`" encoding=`"UTF-8`"?><ows:Batch OnError=`"Return`">") > $null
        $i=0
     $spQuery = New-Object Microsoft.SharePoint.SPQuery
        $spQuery.ViewFieldsOnly = $true
     $spQuery.RowLimit = 1 // # of items to delete
     $items = $list.GetItems($spQuery);
        $count = $items.Count
      $now = Get-Date
     write-host ("Deleting Items from list started at " +$now.toString())
        while ($i -le ($count-1))
            #write-host $i
            $item = $items[$i]
            $stringbuilder.AppendFormat("<Method ID=`"{0}`">", $i) > $null
            $stringbuilder.AppendFormat("<SetList Scope=`"Request`">{0}</SetList>", $list.ID) > $null
            $stringbuilder.AppendFormat("<SetVar Name=`"ID`">{0}</SetVar>", $item.Id) > $null
            $stringbuilder.Append("<SetVar Name=`"Cmd`">Delete</SetVar>") > $null
            $stringbuilder.Append("</Method>") > $null
            $i++
        $stringbuilder.Append("</ows:Batch>") > $null
        $web.ProcessBatchData($stringbuilder.ToString()) > $null
    catch
        Write-Host -ForegroundColor Red $_.Exception.ToString()
       $now = Get-Date
     write-host ("Deleting Items from list ended at " +$now.toString())
     write-host -ForegroundColor Green "done."
    **************************************End of Code***************************************************

    Hi Cowboy,
    Per my knowledge, if we delete the workflow history list items, it will not affect the workflows waiting to be triggered.
    However, if you go to the workflow status page, the history will be empty as the events 
    have been deleted in workflow history list.
    The code in your post will delete 2000 items in workflow history list.
    As there is no status for the items in workflow history list, so I recommend to use the date as the query condition.
    For example, if you want to delete items created between 2015-02-01 and 2015-02-16, then you can change the query as below in your code:
    $query="<Where><And><Geq><FieldRef Name='Created'/><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Geq><Leq><FieldRef Name='Created' /><Value Type='DateTime'>2015-02-01T00:00:00Z</Value></Leq></And> </Where>"
    $spQuery=$query
    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

  • Workflow history list

    What is the best way to clean up workflow history list? I see that it has few years worth of data in it. Is it safe to delete the items that are more than 2 months old? Appreciate anyone sharing Microsoft recommendations on this. Thanks.
    rani

    Hi,
    According to your description, my understanding is that you want to clean up the workflow history list.
    If the data is more than 2 months old, my suggestion is that use the MSDN workflow history clean up tool to achieve it, not clean up it manually. You can specify the date range with to clean up the workflow data safely using the tool. 
    More information:
    Cleanup Workflow History
    Thanks
    Best Regards
    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]

  • Workflow History List audit suitability

    Hi
    I'm using Approval workflows to approve documents and also provide auditing. This information is stored in the History List, however I can see  issues.
    1. When a document is approved the information is held in the Workflow History. many times the Document is changed after approval and requires approving again. If the workflow is restarted the previous history link is purged and new workflow information
    is recorded. I can always inspect the Workflow History list and find the orginal associated data but this seems a convoluted processs. I've heard its possible to record this the Record centre somehow. Whats the best option.
    2. The workflow history list gets cleared down every 60 days by default. It can be argued using the Worfklow History List is not suitable for auditing.. Whats options are available?
    Thanks

    for the second question you can use the SharePoint auditing rather than workflow history list for auditing
    http://office.microsoft.com/en-001/sharepoint-server-help/configure-audit-settings-for-a-site-collection-HA102031737.aspx
    http://www.ericgregorich.com/blog/2011/11/28/sharepoint-workflow-history-explained.html
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spauditentry.aspx
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Customize workflow history list

    hi friends
    i am working with two workflows
    my scenario is
    1. first workflow initiate the process for page creation.
    2. second workflow for creating and publishing page.
    3. according to the first workflow request page will be created.
    4. my problem is i need to add second workflow log to the first workflow log according to the request.
    5. which mean two workflows are most have same workflow history according to the request.
    6. by default each workflow will have its own history according it initiation.

    4. I dont think you can do this unless you create these 2 workflows programmatically
    6. He it is a default behavior of workflow to maintain its on history

  • Workflow history report best practice

    Hi.
    How do you recommend to make custom workflow history report(s)?
    For example, let's think of the most simple document approval process: initiator uploaded document, manager reviews the document, if approved - document is marked as approved, if not - document should be modified by initiator. In real life
    review can be done by group, business flow will be much more complicated, some tasks will be assigned to other users, etc.
    Now, I need to show feedback received from users in a short, readable format. Let's say we need to know:
    1) when review was made
    2) who made it (name, position, email)
    3) review outcome (approved/rejected/custom)
    4) review comment
    So, nothing unusual here.
    I see the following options:
    Make a view from different sources: workflow history list, workflow tasks list, current library. For me it sounds crazy.
    Write necessary data into workflow history list and don't write there anything else. This option doesn't support multiple reports.
    Write all data into workflow history list and then somehow filter its data. Again sounds crazy.
    Write data into custom SharePoint list and then make views based on it. Looks flexible. But, probably, every workflow will need separated list.
    Write data into external SQL database, then somehow show in SharePoint. The most flexible, can store practically any amount of data, apply any kind of transformation. But data is not in SharePoint directly, some data connection/sync issues might
    occur.
    What will you recommend?
    BTW, there is additional question: all this logging creates so much "noise" in workflow diagram - I write some information on regular basis after some events and that requires adding multiple activities every time: set workflow status, update
    item (set some custom status), write workflow history and write into some external data store. 3-4 repeating events - how can I "group" them into something like 1 activity?

    Hi,
    I would suggest you use the custom list option.
    With SharePoint OOTB List, we can take use of the available features provided to manage data conveniently.
    Also, as a data source, we can also generate different kinds of reports from SharePoint List using other reporting products such as Excel.
    For the second question, I would suggest you open a single thread for it to let others in this forum easier to focus on one question in one single thread.
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • List 'Workflow History' does not exist at site with URL

    Hi techies,
    I got this error while activating a feature, where I attach the workflows to the lists which exists within sites.
    And i have also deployed all the workflows which are to be used.
    Anybody faced this similar error?

    Are you trying to get workflow history list in your code? (custom feature or VS workflow) if so then can you verify your code and make sure that your are searching for this list at root level. (workflow history list is common list and available at root site
    collection only)
    http://servername/Lists/Workflow%20History/AllItems.aspx
    To get list via code see below blog:
    http://sharepointdevelopertopics.blogspot.in/2011/07/how-to-get-workflow-history.html
    http://weblogs.asp.net/jevgeni/archive/2011/05/05/getting-default-workflow-history-list-in-sharepoint.aspx
    Correct me if i am wrong
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • Missing workflow history link of "In Progress" workflow!!!

    I recently get complaint from customer that they lost their "In Progress" workflow history link on documents.
    I searched on internet and found that "Workflow Auto Clean" job will remove only "Completed" workflow link for document.
    So Why SharePoint has removed workflow history link of "In Progress" workflow? and now any work around to get it back because there are approx. 100 document's which running workflow history is missing.

    The issue is caused when migrating from 2010 to 2013. Microsoft’s upgrade process seems to have missed an update required to the Workflow History list, and the following powershell fixes it, with the key being the .SystemUpdate($false) on each item in the workflow
    history list:
    $url = 'http://mysite/myweb' #todo: update powershell to loop through all sites
    $site = new-object microsoft.sharepoint.spsite($url);
    Write-Host $site.allwebs.count
    $web=$site.OpenWeb();
    $spListColl = $web.Lists
    foreach($list in $spListColl)
    if($list.Title -eq "Workflow History")
    foreach ($listItem in $list.Items)
    $listItem.SystemUpdate($false)
    Write-Host "Updating Items Done"

  • How to get site workflow tasks not list workflow tasks in SharePoint 2013 programatically ?

    i want to customize wrkstat.aspx based on site workflow not list workflow, so i want to filter section of tasks view to filtering based on site workflow, i made this to list workflow and i cannot do that to site workflow.
    Please advise me.
    Thanks.

    Hi Ramakrishnan,
    you can use the below code to post comments in newsfeed. I think this will helps you.
    var feedManagerEndpoint;  
    // Get the SPAppWebUrl parameter from the query string and build  
    // the feed manager endpoint.  
    $(document).ready(function () {  
        var appweburl;  
        var params = document.URL.split("?")[1].split("&");  
        for (var i = 0; i < params.length; i = i + 1) {  
            var param = params[i].split("=");  
            if (param[0] === "SPAppWebUrl") appweburl = param[1];  
        feedManagerEndpoint = decodeURIComponent(appweburl)+ "/_api/social.feed";  
        postToMyFeed();  
    // Publish a post to the current user's feed by using the   
    // "<app web URL>/_api/social.feed/my/Feed/Post" endpoint.  
    function postToMyFeed() {  
        $.ajax( {  
            url: feedManagerEndpoint + "/my/Feed/Post",  
            type: "POST",  
            data: JSON.stringify( {   
                'restCreationData':{  
                    '__metadata':{   
                        'type':'SP.Social.SocialRestPostCreationData'  
                    'ID':null,   
                    'creationData':{   
                        '__metadata':{   
                            'type':'SP.Social.SocialPostCreationData'  
                    'ContentText':'This post was published using REST.',  
                    'UpdateStatusText':false  
            headers: {   
                "accept": "application/json;odata=verbose",  
                "content-type":"application/json;odata=verbose",  
                "X-RequestDigest": $("#__REQUESTDIGEST").val()  
            success: getMyFeed,  
            error: function (xhr, ajaxOptions, thrownError) {   
                alert("POST error:\n" + xhr.status + "\n" + thrownError);  

  • SharePoint 2010 Designer Workflow - Pause Until Fails Succeeds

    Hi,
    I have created a SharePoint 2010 Designer list workflow, which contains a step to pause until date time.  My issue is this step works inconsistently, sometimes it will execute after few hours some other times it will fail.
    Given screen shot is a case which execution delayed.  Pause until set 4:10 pm but worked at 2:46 pm only.  Please advice.
    Thanks in advance :) ...

    There seems to be some issues in your timer job , you can use STSADM to view the status or activate the job if not active as explained here(STSADM should works for 2010 also) -
    http://chrissyblanco.blogspot.in/2007/06/issues-with-delay-activity-in-moss.html
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Error workflow has been created successfully, but failed to publish and will not be listed in the Project Center

    hello,
    when i try creating projects in Project center am posted on with this error.
    Your new XXXX workflow has been created successfully, but
    failed to publish and will not be listed in the Project Center.For more information on the failure, visit the My Queue Jobs page or contact your administrator.
    Any help would be appreciated!!!!!
    Thanks regards, Vignesh.

    hello Rouyre,
    Thanks for ur reply
    Am using 
    Microsoft Project Server 2013
    15.0.4420.1017
    Yes! It is Custom EPT with Custom Workflow(Declarative Workflow) built through VS2012
    after associating the Site workflow with EPT i try creating Projects using my Custom EPT since then am posted on with this error.
    ULS Error:Log
    07/04/2014 10:21:38.03 Microsoft.Office.Project.Server (0x1840)
    0x06B8 Project Server                
    Queue                        
    ad3fy Critical
    Standard Information:PSI Entry Point: <unknown>  Project User: <unknown>  Correlation Id: <unknown>  PWA Site URL:   SA Name: <unknown>  PSError: <unknown> A queue job has failed. This is a general
    error logged by the Project Server Queue everytime a job fails - for effective troubleshooting use this error message with other more specific error messages (if any), the Operations guide (which documents more details about queued jobs) and the trace log
    (which could provide more detailed context). More information about the failed job follows. GUID of the failed job: 39cd36d6-3603-e411-b33e-00155d00091f. Name of the computer that processed this job: 3eebbc1d-7558-4050-bf5d-d985b23b89f5 (to debug further,
    you need to look at the trace log from this computer). Failed job type: ReportWorkflowProj...
    2c1ea19c-5849-002d-b89f-50aaf0a752fd
    07/04/2014 10:21:38.03* Microsoft.Office.Project.Server (0x1840)
    0x06B8 Project Server                
    Queue                        
    ad3fy Critical
    ...ectDataSync. Failed sub-job type: ReportWorkflowProjectDataSyncMessage. Failed sub-job ID: 1. Stage where sub-job failed:  (this is useful when one sub-job has more than one logical processing stages).
    2c1ea19c-5849-002d-b89f-50aaf0a752fd
    07/04/2014 10:21:38.03 Microsoft.Office.Project.Server (0x1840)
    0x06B8 Project Server                
    Queue Jobs                    
    ad3fy Medium  
    Error is: GeneralQueueJobFailed. Details: Queue Attributes:  39cd36d6-3603-e411-b33e-00155d00091f  3eebbc1d-7558-4050-bf5d-d985b23b89f5  ReportWorkflowProjectDataSync  ReportWorkflowProjectDataSyncMessage  1    2c1ea19c-5849-002d-b89f-50aaf0a752fd
     . Standard Information: , LogLevelManager Warning-ulsID:0x000DD158 has no entities explicitly specified.
    2c1ea19c-5849-002d-b89f-50aaf0a752fd
    07/04/2014 10:21:38.03 Microsoft.Office.Project.Server (0x1840)
    0x06B8 Project Server                
    Project Server Database      
    ah91z Medium  
    Successfully got the connection string (database name=[ProjectWebApp_Practice], id=1f6004ae-5d8a-41d2-81f9-e424a31484aa, type=Consolidated). Requested access level=ReadWrite: Data Source=XXXX;Initial Catalog=ProjectWebApp_Practice;Integrated Security=True;Enlist=False;Pooling=True;Min
    Pool Size=0;Max Pool Size=100;Connect Timeout=15
    2c1ea19c-5849-002d-b89f-50aaf0a752fd
    07/04/2014 10:21:38.04 Microsoft.Office.Project.Server (0x1840)
    0x06B8 Project Server                
    Queue Jobs                    
    ad3fz Medium  
    PWA:http://XXXX:10000/PWAPactice, ServiceApp:Project Server Service Application, User:PROJECTSERVER\system, PSI: [QUEUE] receiver http://XXXX:10000/PWAPactice: Group 3bcd36d6-3603-e411-b33e-00155d00091f type = ReportWorkflowProjectDataSync aborted at
    Message 1, LogLevelManager Warning-ulsID:0x000DD159 has no entities explicitly specified.
    2c1ea19c-5849-002d-b89f-50aaf0a752fd
    07/04/2014 10:21:38.04 Microsoft.Office.Project.Server (0x1840)
    0x06B8 Project Server                
    Queue Jobs                    
    ad3f2 Medium  
    PWA:http://XXXX:10000/PWAPactice, ServiceApp:Project Server Service Application, User:PROJECTSERVER\system, PSI: [QUEUE] receiver http://XXXX:10000/PWAPactice: Group 3bcd36d6-3603-e411-b33e-00155d00091f correlation 82705dc5-3603-e411-b33e-00155d00091f
    type = ReportWorkflowProjectDataSync failed at Message 1 Errors: GeneralQueueJobFailed, LogLevelManager Warning-ulsID:0x000DD15C has no entities explicitly specified.
    2c1ea19c-5849-002d-b89f-50aaf0a752fd
    Thanks regards, Vignesh.

  • List workflow Error Occurred when more than 10 fired at the same time?

    SPF 2010
    I have created a list workflow that simply
    copies the value from Columns A, B, C to D, E, F respectively
    then it compares that D, E, F match A, B, C
    if TRUE, then NUL A, B, C
    then if confirms A, B, C "is empty"
    if TRUE, then complete the workflow
    There are some other logging and email notifications if there are any issues during the process.
    Now when I run this on a single item it runs fine. I then try running on less than 10 items, again it runs fine. Then I try 22 and the all get Error Occurred which seems to be happening right at/after a 1min pause action. I also noticed on the server one
    of the CPU is at 100% and the Application log reports a "Deadlock victim" (See below).
    Unknown SQL Exception 1205 occurred. Additional error information from SQL Server is included below.
    Transaction (Process ID 96) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    The server had 6 GB of RAM so I tried doubling it to 12GB (only 100 staff) and SP not that heavily used at this point.
    Any suggestions would be appreciated, thanks.
    Unknown SQL Exception 1205 occurred. Additional error information from SQL Server is included below.
    Transaction (Process ID 96) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    The Pause 1min would fall between steps 1, 2. (Revised below)
    copies the value from Columns A, B, C to D, E, F respectively
    pause 1 min
    then it compares that D, E, F match A, B, C
    if TRUE, then NUL A, B, C
    then if confirms A, B, C "is empty"
    if TRUE, then complete the workflow
    The pause was added because I noticed that if A,B,C are NUL and the validation step (3) is ran instantly then the compare would report that columns D,E,F where not done updating and the validation would fail.
        NOTE: in my testing this only occurred if A,B,C were NUL, if populated the validation step (3) was always correct.
    I tested this with logging immediately after the copy step (1) and the logging shows the original values for D,E,F. Is there delay on the actual update, seems ridiculous that the actions are performed in order but yet the "Update" action is not actually
    done when the workflow moves on to the next action. (I have created separate Steps in SPD to separate these actions as well).
    Any thoughts on that as well?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Sharepoint Designer - Two step List Workflow task item is not changing the status from not started to Complete

    Hi 
    Using SPD i am creating list workflow.
    Scenario: Employee submits a request . Task assign to manager. Manager can either approve/ reject. If approve then change the state column to "done". If rejected the state column to "Rejected".
    Problem is "Assign a to do item" is assigning the task to manager. But after manager approves the status in the task list not changed to "Completed". Still it is showing "Not started". I dont want to manually complete the task.
    Please help me for automatic process. 
    What i should do to change the status to "Complete" automatically after manager approval
    Regards
    Jhanani
    Janani.R

    Hi Janani,
    From your description, you would like to create an approval workflow for a list. When an employee submit a request to the list, an approval task should be assigned to manager, then manager could approve or reject the request. From the request list,
    we should be able to see the Approval task’s status.
    Not understand the reason of designing the workflow to two steps, an approval action should be enough from my understanding. For producing, I create a list named Request list, then customize it in InfoPath form to add a Request field for stating request
    content. Then add a workflow to list named Approval task, add the action of Start an approval process with administrator and make the workflow automatically start when item is added.
    The image below shows the status of Adding items, Approving and Rejecting. Please check if it could meet your requirement.
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • A workflow creates an item but doesn't start another list workflow on that new vreated item

    Scenario is as follows: I have a Workflow A (starts manually) and a Worklow B (starts when item is created). First I create an item in the list after that I start worklow A manually on that item and of course workflow B is already running on that item. Workflow
    A creates a new item in the same list. Unfortunately workflow B doesn't start on the newly created item.
    What I've found out so far is, the problem is connected to the actions you use in workflow B. If I'm not using actions like 'Update List Item' or 'Set Field In Current Item' the worklflow starts.
    Any suggestions?
    best
    Matthias

    Hi Matthias,
    According to your post, my understanding is that you wanted to start the Workflow B to perform some actions like ”Update List item” or “Set Field in Current Item” on the newly created item which is created
    by Workflow A in the same list.
    The reason of the problem which you have found is that the automatically started Workflow B executed faster than the manually started Workflow A.
    Therefore, the Workflow B can’t be triggered automatically because the action
    “Update List Item” or
    “Set Field in Current Item”
    cannot be executed when the new item hasn’t been created completely.
    So, I recommend that you can add the “Pause for Duration” action to pause for
    one minute before the actions of “Update List Item” and “Set Field in Current Item” in the Workflow B.
    The Workflow B is shown as below:
    Best Regards,
    Victoria
    Victoria Xia
    TechNet Community Support

  • Creating Sequential List workflow in VS 2012

    Hi,
    How to create a sequential workflow in VS 2012 ?
    I have created sequential workflow earlier in VS 2010, and I was able to do coding on the cs page. Now in SharePoint 2013, I can see the workflow.xaml file and elements.xml file only.
    I am looking for updating list item, creating a task list item for the Manager, setting security on the list item, sending email througn custom code.
    I have done the below steps, but not sure how to proceed:
    1) created a empty VS 2012 project. Selected Farm for deployment.
    2) Selected workflow option. Set the list workflow and set task list and history list.
    3) In the sequence box, I added "Lookup SP list item". In the properties - "ItemId - Current item" , "listId - current list".
    4) In the "GetDynamicValueProperties", i am not sure how to set the properties. In the properties, i selected "ListItem". There is a "populate variables" link. clicked on it. Nothing happened. Under the Path "create property",
    i am not able to see any of the custom columns which was created for the list.
    I have checked this link:
    http://msdn.microsoft.com/en-us/library/office/dn456545.aspx
    but was not able to proceed.
    How to create a simple VS 2012 workflow for SP 2013, which does the basic task of "updating a column in current list item, create a task item for the approver, assign task to approver, sending email to approver". It would be great if someone can
    point to a step by step workflow creation for custom list.
    Thanks

    As far as I know the link you are referring is the step by step for the workflow in SharePoint 2013 using VS 2012. 
    On your step # 4 GetDynamicValueProperties, What did you select as your Entity Type? Did you pick your custom list?
    Also are you deploying this workflow as Sandbox solution or as an App? The article you referred is deploying workflow as an App and it is creating libraries inside the app.
    Amit

Maybe you are looking for