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

Similar Messages

  • How to re-associate a list workflow to the list???

    I have a list and had created a list workflow.  This workflow had appeared in the "Workflows" area of the list when the list is viewed in SharePoint Designer.  The workflow reference was accidentally deleted from the list.  The workflow
    itself was not deleted, just the reference that is listed in the list definition.  How can I re-associate that list workflow to the list??? If I am at the site in the browser and go to the "Add a workflow" area, it only lists some default template
    workflows and any reusable workflows.  It does not list my list workflow.  So now I have a list and a list workflow, but they are no longer joined.
    Any thoughts- Peter

    Should be an issue of changing some ID values. I've not tried this yet but hopefully this will help to get you started.
    http://itrathnasekara.blogspot.mx/2012/11/how-to-re-associate-list-workflows-with.html
    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.

  • 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.

  • How to create distribution list in workflow? for  sending mail or work-item

    Hi,
    How to create distribution list in workflow? for  sending mail or work-item to multiple users.
    Regards,
    Surjith

    Hi Surjith,
    A.Working with Distribution Lists Creating a Distribution List.
    1 Businees Workplace->shared folder - create new subfolder name = WF_distributor
    2.Then click on the distribution list in Businees Workplace.
    say create Name = WF_Vliste
    folder Name = WF_distributor
    3.distribution list content tab
    Enter Recipient (SAP User ID)
    B.Wrkflow Builder
    Find out the dialig step in which u want to use distribution list
    Use workflow Rule 30000012 (SWX_READ_DLI).
    Maintain the binding from workflow container to rule container.
    Just pass the name of the distribution list from WF to Rule container.
    Regards
    Sagar S

  • How do I send the contents of a list item (such as Notes) in the body of the email created in SP Workflow 2010?

    I have a custom list called "Suggestions" with a field called 'Notes from Reveiwer'.  Folks enter a new suggestion and kicks off a workflow to approvers.  Approvers review the suggestions and add notes.  When notes are added, I would
    like to have the contents of that field show in the email that I created in the workflow that goes back to the user who created the original suggestion.
    LDillon

    Where are the Approvers adding Notes? Is this part of the Task form?
    If yes, you need to get the ID of the task that you created in the workflow for the approvers. Using this ID, you can reference the field in another list and it as lookup in the email body. If you dont have this ID, create a Field in the Custom task and
    call it SuggestionID. Populate this with the ID of the current item from the Suggestions list. You should be able to then reference this to get the response of the Approver.
    If the Approver is responding in the same list, then just add the response field as a Lookup in your email that is sent back to the person who submitted the suggestion.
    Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Create a list with associated workflow from a list template.

    Hi,
    I have a calendar list with two workflows and I saved it as list template. Also I have an event receiver which creates a list based in this list template I created, but I noticed that the list is created without workflows. If I create the list
    using the list template using SharePoint it does it with the workflows but my event receiver does not.
    Here is my code:
    if
    (list == null){
    web.AllowUnsafeUpdates =
    true;
    var lstTemp = web.Site.GetCustomListTemplates(web);
    var template = lstTemp[listTemplate];
    var listId = web.Lists.Add(listName,
    string.Empty, template);
    list = web.Lists[listId];
    list.Title = listName;
    list.OnQuickLaunch =
    false;
    list.Update();
    web.AllowUnsafeUpdates =
    false;
    Thanks anyway.

    Hi,
    According to my understanding, you have a list template contains workflow, you can create a new list with this template from UI. However, when create a list with this
    template in Event Receiver, the workflow is missing.
    I tried to reproduce by creating a list template contains an OOTB Approval workflow, then use an Event Receiver to create a list with this template, it turned out
    that the workflow is attached to the newly created list.
    I would suggest that you create another Event Receiver with the code snippet below to see if it is an issue of Event Receiver:
    public override void ItemAdded(SPItemEventProperties properties)
    base.ItemAdded(properties);
    createListWithTemplateWithWF(properties);
    public static void createListWithTemplateWithWF(SPItemEventProperties properties)
    using (SPSite site = properties.Site)
    using (SPWeb web = site.RootWeb)
    SPListTemplateCollection listTemplates = site.GetCustomListTemplates(web);
    SPListTemplate listTemplate = listTemplates["ListTemplate_List001_withWF"];
    web.Lists.Add("List005", "List005", listTemplate);
    Feel free to reply with the test result or if there any questions about this.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • List workflow with "Start workflow when an item is changed" will run twice when creating a new wiki page

    I have created the following workflow on the wiki page library to run when an item is changed:-
    And it will send emails as follow:-
    Currently when a user creates a new wiki page and he enters the wiki page name.
    Then he enters the content and click on save.
    Then two duplicate emails from the workflow will be sent ? So can anyone advice why creating a new wiki page will fire the workflow twice ?
    Thanks

    Hi john
    Have you see the library where the wiki pages are stored. You can see how many occurrences of the workflow has been run.
    Anyway, instead of using "wait for", can we put a condition that says, if Assign To:Approver is not empty. then email. 
    i use if instead of wait and it worked well, thanks

  • Develop List Workflow in Sharepoint APP and attach to host web List

    Hi Team,
    Anybody let me know can we develop a List workflow in SharePoint App and later can we attach to
    host web list after deploying APP
    Note: Looking for Only On -premises SharePoint not for SharePoint Online 

    Hi,
    The following article from MSDN for your reference:
    Create a SharePoint workflow app using Visual Studio 2012
    http://msdn.microsoft.com/en-us/library/office/dn456545(v=office.15).aspx
    Thanks,
    Dennis Guo
    TechNet Community 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]
    Dennis Guo
    TechNet Community Support

  • Creating custom lists that are links to SharePoint sites.

    I am new to SharePoint 2013 Online and was wondering if there is a non-coding way to build a sub-site from a template that is not initially connected to a site collection. Attach this sub-site to a site an already existing site collection afterwards and
    use data from the sub-site that is created, to generate a custom list items that can also be used as links to the sub-site itself.
    How I thought this might work would be to create templates for site collections (if that is even possible), and then use a links list or some other type of linked list but not exactly sure how this is done in SharePoint.
    Any input on how to go about this would be greatly appreciated as well as any insight as to whether this is even possible to do with out coding. Thanks in advance.

    Hi,
    According to your post, my understanding is that you wanted to create custom lists that are links to SharePoint sub-sites.
    I recommend to create a custom list and add a multiple line column to display the sub-sites url.
    Then create a workflow associate a custom list and use “Call HTTP Web Service" action and “Build Dictionary" action to get the count of the sub-sites.
    Then use the Loop Stage to create a new item in the custom list and set the multiple line column to the url you get in the dictionary.
    Here is a great blog for you to take a look at:
    http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/
    In addition, you can use the build-in webservice via SharePoint Designer.
    More information:
    http://www.balestra.be/2012/03/show-all-subsites-on-a-sharepoint-2010-page-without-code-via-sharepoint-designer.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SharePoint 2013 Workflow for MDS 2012 - Sample Code

    Hi All, I want to integrate MDS 2012 with SharePoint 2013 workflow. I have read the whitepaper on this integration but I am looking for code samples on SharePoint 2013 workflow which can be used for this as I am not much into SharePoint development. If
    not the source code, any good blog links to achieve this integration?
    Thanks, Ashish Singh

    If you want to avoid the SharePoint development, then use a custom IWorkflowTypeExtender and interact with SharePoint using the Lists OData service.  That way your code runs on the MDS server, and you don't have to deploy custom code to SharePoint. 
    You would simply add an item to an existing or purpose-built SharePoint list, and that could kick off a standard list workflow (which can be built without custom code).
    Otherwise you need to create a custom SharePoint Site Workflow in Visual Studio, and deploy it to SharePoint (yuck). Per:
    http://msdn.microsoft.com/en-us/library/ee231573.aspx
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Error while creating request list Unable to detect the SAP system directory

    We are upgrading SAP BW (NW 7.0 EHP1) to SAP BW (NW 7.3)
    source OS: Windows 2008 R2,  source DB: MSSQL server 2008 R2 SP1 CU3
    I had started the upgrade by running: STARTUP.BAT
    I had started the DSUGui on the server (CI / DB on the same server) from: D:\usr\sap\BP1\upg\sdt\exe\DSUGui.bat
    I ran both programs (run as administrators).
    Once SAP Gui connects and was able to create userid/ password and when ready to start the initialization phase (click next)
    gives me the error
    Error while creating request list - see preceeding messages. Unable to detect the SAP system directory on the local host
    I had tried STARTUP.BAT "jce_policy_zip=Z:\export-import\downloads\jce_policy-6'  and still the same error.
    I had started DSUGui.bat with trace and the trace file contents are
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[2.0.7.1006]/>
    <!NAME[D:
    usr
    sap
    bp1
    upg
    sdt
    trc
    server.trc]/>
    <!PATTERN[server.trc]/>
    <!FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %-100l [%t]: %m)]/>
    <!ENCODING[UTF8]/>
    <!LOGHEADER[END]/>
    Jan 11, 2012 10:14:58 AM [Error]:                          com.sap.sdt.engine.core.communication.AbstractCmd.log(AbstractCmd.java:102) [Thread[ExecuteWorker,5,main]]: Execution of command com.sap.sdt.engine.core.communication.CmdActionEvent@376433e4 failed: while trying to invoke the method java.io.File.getAbsolutePath() of an object returned from com.sap.sdt.dsu.service.req.DSURequestListBuilder.getSystemDir()
    Jan 11, 2012 10:14:58 AM [Error]:                          com.sap.sdt.engine.core.communication.AbstractCmd.log(AbstractCmd.java:103) [Thread[ExecuteWorker,5,main]]: java.lang.NullPointerException: while trying to invoke the method java.io.File.getAbsolutePath() of an object returned from com.sap.sdt.dsu.service.req.DSURequestListBuilder.getSystemDir()
    Jan 11, 2012 10:14:58 AM [Error]:                          com.sap.sdt.engine.core.communication.AbstractCmd.log(AbstractCmd.java:103) [Thread[ExecuteWorker,5,main]]: java.lang.NullPointerException: while trying to invoke the method java.io.File.getAbsolutePath() of an object returned from com.sap.sdt.dsu.service.req.DSURequestListBuilder.getSystemDir()
    Jan 11, 2012 10:14:58 AM [Error]:                                                 com.sap.sdt.engine.core.communication.CmdActionEvent [Thread[ExecuteWorker,5,main]]: java.lang.NullPointerException: while trying to invoke the method java.io.File.getAbsolutePath() of an object returned from com.sap.sdt.dsu.service.req.DSURequestListBuilder.getSystemDir()
         at com.sap.sdt.dsu.service.req.DSURequestListBuilder.persistSystemInfo(DSURequestListBuilder.java:277)
         at com.sap.sdt.dsu.service.DSUService.createRequestList(DSUService.java:338)
         at com.sap.sdt.dsu.service.controls.DSUListener.actionNext(DSUListener.java:144)
         at com.sap.sdt.dsu.service.controls.DSUListener.actionPerformed(DSUListener.java:67)
         at com.sap.sdt.server.core.controls.SDTActionListener$Listener.actionPerformed(SDTActionListener.java:46)
         at com.sap.sdt.engine.core.communication.CmdActionEvent.actOnEvent(CmdActionEvent.java:43)
         at com.sap.sdt.engine.core.communication.CmdEvent.execute(CmdEvent.java:69)
         at com.sap.sdt.engine.core.communication.ExecWorker.handleCmd(ExecWorker.java:36)
         at com.sap.sdt.engine.core.communication.AbstractWorker.run(AbstractWorker.java:93)
    I could not get Upgrade started.  Any help is appreciated
    Thanks
    Prathap

    Did you get this solved?
    I have the same problem

  • Creating a custom workflow that copies events in a calendar to another one

    Hello,
    I was looking for a
    Calendar displayed in having some
    items from B to A.
    calendar
    So, I suppose That I
    can run a workflow That
    Automatically copies specific events
    calendar and paste it in
    B.
    This is the step-by step
    of the procedure I executed:
    First, I checked That
    Both calendars have exactly
    the same columns.
    Then I added an yes
    / no column in A Calendar
    called "Rollup".
    Since I'm a new SPD in the
    whole world, I Decided
    to use the 2010 plattform,
    beacuse in the 2013 version
    I couldnt find the "Copy
    Item" Action.
    I developed a list workflow
    attached to Calendar A That Says:
    Condition: If Current List:
    Rollup equals Yes
      Action: Copy Item to
    Current Public Calendar
    For an unknown reason, This
    workflow always displays an error, Therefore
    Accomplished never its purpose.
    Does anyone have an idea what I
    am doing acerca wrong?
    Or knows a better workaround
    for syncing two calendars?
    Thanks for the help !

    Hi  Corina,
    For achieving your demand, you  can create a SharePoint  2013 Workflow for Calendar01 as below and it works fine in my test:
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • 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

  • Error while opening list workflow in SharePoint designer 2010

    Hi,
    I am trying to open list workflow in SharePoint designer 2010,its showing me the following page.
    Please help me how will be able to edit the workflow.
    While i click on "export to visio",its showing the error as "SharePoint designer encountered an error generating the visi workflow drawing".
    Please help me to get the logic of the workflow,so that i can create new one.
    Thank you

    Hi Aditi,
    Which type of workflow did you use?
    Did you create the workflow using SharePoint 2010 Designer or built-in workflow template?
    If the workflow was created using SharePoint 2010 Designer, for editing the workflow using SharePoint Designer, open the site with SharePoint 2010 Designer, then click the 'Workflows' in left panel. Then in the right panel, click the workflow that you
    want to edit, then click 'edit workflow' under Customization.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Document created in a workflow based on a custom template is empty

    Hello,
    we have a big issue creating a document based on a defined custom template in a workflow. The following steps were made to achieve that:
    1. Adding a custom document type in Website Settings
    2. Creating an Excel file and uploading it as a template
    3. Allowing custom types for document list
    4. Adding the type to my document list as default
    Site Wokflow:
    1. Create Action: Create list item with the created document type and Name "test"
    When i run the workflow, SharePoint creates the document but the document is empty. If I create a document manually in the same document list, the document is created fine.
    These steps were performed in several tutorials with older SP Versions. So what happened in SP 2013?
    Thank you for help

    Hi Victoria Xia,
    I checked them again, the Template is specified in the content type of the document library, the workflow is creating a document using that content type, and will bring all the metadata as mapped in the workflow.
    but when I open the document created by the workflow it will be blank document, and the content type name is the correct content type (my custom content type) it is like its not using the template specified.
    when I click new document inside the library itself directly, it is opening a new document with the specified template.
    where could be the issue here?
    Thanks

Maybe you are looking for