Workflow Copy To Another List - If Statements

Hi,
I have an if statement which once satisfied, I want it to copy to another list.
If each of these columns is either "Approved" or "Not Applicable" it should move the item to a new list.
This is what I have tried:
If Current Item:Column1 equals Approved
or Current Item:Column1 equals Not Applicable
and Current Item:Column2 equals Approved
or Current Item:Column2 equals Not Applicable
and Current Item:Column3 equals Approved
or Current Item:Column3 equals Not Applicable
and Current Item:Column4 equals Approved
or Current Item:Column4 equals Not Applicable
and Current Item:Column5 equals Approved
or Current Item:Column5 equals Not Applicable
and Current Item:Column6 equals Approved
or Current Item:Column6 equals Not Applicable
then Copy item in Current Item to List2
Sometimes one or two columns won't be set to Approved/Not Applicable and it will still copy the item.
Is there another way to do this?
Thanks.

Hi,
Break down you single if condition in multiple ifs (make them nested), like
If Current Item:Column1 equals Approved
or Current Item:Column1 equals Not Applicable (inside this if write) If Current Item:Column2 equals Approved
or Current Item:Column2 equals Not Applicable (Now, inside this if ) Current Item:Column3 equals Approved
or Current Item:Column3 equals Not Applicable and so on. Hope it will work.

Similar Messages

  • How to send workflow variable to another List

    Hi,
    I have created Workflow Variable, from that variable I need to get the information from another list. Could you pls share u r Knowledge.
    Regards
    Tharak

    If you want to set a field in another list item, you would run the update item command, select the field you want to change and then select your workflow variable.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Copy list column information to another list

    Hi Friends,
    I have ListA with columnA and ListB with columnB
    I would like to create a workflow that will copy columnA data to columnB of ListB. Please suggest how I can do it

    Hi,
    According to your post, my understanding is that you wanted to copy list column information to another list.
    You can use the out of the box actions to accomplish this with SharePoint.
    If you only want to copy column information to another list, you can use the “Update List Item” action. In the action, you can get the current item value and set the value to another list item.
    If you can to copy list item to another list, you can use the “Create List Item” action and select the other list.
    If you want to delete the current list item, you can use the “Delete Item” action.
    More information:
    Workflow actions quick reference (SharePoint 2013 Workflow platform)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

  • Workflow on folder level to update another list

    Hi there,
    I have folder structure like folder1/folder2/folder3
    there are wiki pages in these folders
    When I create a new wiki page in one of the folders say folder3 I want an item to be created in another list which has name same as the wiki page name.
    I tried to write a workflow on site pages library(because it gave me that option only). It does not seem to workout.
    Can I write a workflow to achieve this task..??
    Any help will be highly appreciated...
    Many thanks in advance...

    Hi,
    Per my knowledge, we can't set the list which has name same as the wiki page name in workflow.
    So, we can use a Event Receiver to achieve your requirement.
    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]

  • Javascript help to copy selected items from one list to another list on same site

    Hello,
    So I have a request that I am not sure how to handle. I have created a page with a list view webpart that displays all the items from one list.
    The user is then supposed to select off multiple list items and click on a button (most likely a ribbon button) that will take the selected items and copy them to another list on the same SharePoint site.
    I would like to do this with JavaScript, but have only found an example that copies library items to another library.

    Hi KansaiKel,
    According to your description, my understanding is that you want to copy selected list items to another list.
    I suggest you can use JavaScript Client Object Model to achieve it.
    Here is a code snippet for your reference:
    <script type="text/javascript">
    var context = SP.ClientContext.get_current();
    var siteUrl = 'http://sp2013sps/sites/test';
    var clientContext = new SP.ClientContext(siteUrl);
    var web = context.get_web();
    context.load(web);
    var sourceId = SP.ListOperation.Selection.getSelectedList();
    var source = web.get_lists().getById(sourceId);
    var oList = context.get_web().get_lists().getByTitle('Copy');
    context.load(oList);
    var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
    alert('debut');
    for(var i in selectedItems)
    var currentItem = source.getItemById(selectedItems[i].id);
    context.load(currentItem);
    context.executeQueryAsync(Function.createDelegate(this,test),Function.createDelegate(this,error));
    function test(sender, args){
    var itemCreateInfo = new SP.ListItemCreationInformation();
    var oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', currentItem.get_item('Title'));
    oListItem.update();
    oList.update();
    alert('done');
    function error(sender, args){ alert('error');}""
    </script>
    Here is a detailed article for your reference:
    Complete basic operations using JavaScript library code in SharePoint
    Best Regards
    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]
    Zhengyu Guo
    TechNet Community Support

  • How copy contact to another list? Not move.

    How copy contact to another list? Not move.

    Same way you do in most applications when using drag and drop. You hold the control key while dragging the contact or file. You will see a plus sign appear to indicate a copy instead of a move. Hold the control key until releasing the contact in the new location.

  • Workflow to send email with link to another list

    First it should not matter that I want to link to another list.    In the e-mail, I put the link of the list like this:
    <a href=http://mysite/mylist/EditForm.aspx?ID=[%Current Item:ID%]>Click Here</a>
    Of course, the names have changed to protect me... :-)
    What I am getting is:
    <a href=http://mysite/mylist/EditForm.aspx?ID=<http://mysite/mylist/EditForm.aspx?ID=9>Click Here</a>
    So, instead of just the current ID number, I am getting the complete link.
    How can I fix that?
    Is there any way to get to a list item by the title instead of the ID?
    Thanks!
    David L. Crooks

    Hi David,
    In the email you do not need <a> tags. You can just use the hyperlink action to add the link to the text. See screen shot below.
    Hope this helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Is it possible to create a new List from another List's template and NOT carry over the associated Workflow?

    Related to
    this post, in cases where it's desirable to have two different workflows for two different Lists—is it possible to NOT bring forward a hardwired workflow when creating a new List from a saved template?
    I.e. List #2 still has the workflow from List #1 hardwired in.  List #1 still needs its workflow but List #2 wants to have a separate Workflow.

    More importantly, because it's relatively easy for most folks to just start from scratch with a new Workflow—how does one disassociate a carried-over Workflow from the new List?
    Use the web-GUI. (List Settings > Workflow Settings)
    From Designer, there's a shortcut button at the top of the page in the Workflows tab: "Administration Web Page".

  • Copy item from List A to List B, generate 2 rows in List B

    Hi, 
    I would like to copy and update items from List A to List B. However, I want the item to be duplicated in List B.
    I will explain my scenario
    - List A contains a People Picker column of multiple selection and a Title column
    - When the form is submitted, a workflow should trigger to copy the item to List B. If the People Picker column contains 2 values inside it, for example, user1;user2. The copied item should be duplicated in rows according to the number of users.
    Example
    Columns   Title, Users, ID
    List A - TicketNo1, User1; User2, 1
    List B - TicketNo1, User1              1
    List B - TicketNo1, User2              1
    Can this be done OOTB or must we use some event receiver..has anyone ever done such a thing before?

    Hi,
    Below code help you to accomplish your task using event receiver
    public
    override void ItemAdded(SPItemEventProperties properties)
    //base.ItemAdded(properties);
    if (properties.ListTitle ==
    "ListA")
    SPUser user = null;
    //get value of fields
    string strTitle = Convert.ToString(properties.ListItem["Title"]);
    SPFieldUser userField = (SPFieldUser)properties.ListItem.Fields.GetField("TaskAssignUser");
    SPFieldUserValueCollection fieldcollectionValue = (SPFieldUserValueCollection)userField.GetFieldValue(Convert.ToString(properties.ListItem["TaskAssignUser"]));
    foreach (SPFieldUserValue fieldValue
    in fieldcollectionValue)
                       user = fieldValue.User;
                       //Create items in another list
    SPList destinationList = properties.Web.Lists["ListB"];
    SPListItem targetItem = destinationList.Items.Add();
                       targetItem["Title"] = strTitle;
                       targetItem["WorkAssigned"] = user;
                       targetItem.Update();
    Thank You,
    Somnath Matere

  • SPListItem deleting save the list item into another list.

    Hi Friends,
    Using SPList Item deleting event receiver ,before deleting the item I want save the list item to the another SharePoint list.
    How can we do this using event receivers.Please help me anyone.
    Thanks,
    Tiru
    Tiru

    Before delete the item, use the below logic
    http://stackoverflow.com/questions/1075323/copy-list-items-from-one-list-to-another-in-sharepoint
    or
    You can do this by 2 workflows one creating list item by copying and second workflow on the copied item which will delete the original list item.
    http://sharepoint.stackexchange.com/questions/93441/move-items-from-one-list-to-another-list-using-sharepoint-designer-2010
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/100c0b3c-72d9-4427-a48f-8300be508aa2/how-do-i-copy-the-items-in-a-sharepoint-2010-list-to-another-list?forum=sharepointgeneralprevious

  • Update one list item to another list using WF

    hi
    i have a SP Designer workflow which copies one list item to another list
    but if i edit the 1st list this will copy a new item to another list i want the same item to be edited without making a new copy of the item.
    Alen Austin

    so in the workflow separate between on edit and on new item, so mostly you will need to either do checking and have variable saved to know if you are editing only, or create 2 workflows one when you add new item and other when u edit (if needed)
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • When creating a new record in a list, I want to create a new record in another list, too, together with the ID of the first record

    OK, for anyone who has ever programmed a database, this one is easy. However, I am EXTREMELY limited. I work with SharePoint 365 (2013). I am pretty proficient in a number of programing languages, but I really don't know how to program SP. I wouldn't even
    know where to put code.
    Say, I have two lists: List A, with Items A1 (ID), A2, A3 and List B, with Items B1 (Lookup to A1), B2, B3. What I want this: When I create a new record in List A I want that also an empty record (except for the B:A1 item) is created. Is that possible without
    any major programing?

    you can create a workflow to achieve your requirement
    http://sharepoint.stackexchange.com/questions/50059/create-a-list-item-when-item-is-created-in-another-list
    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

  • Can I perform a lookup to verify the value of a variable is contained in another list column?

    I am working in Sharepoint Designer and am trying to figure out how I can set a condition in an approval workflow to only complete a task if the value of a variable is contained in another list column. So if I had a list called A with column
    A1 and I am  working in the approval workflow, I only want the approval to complete if my variable is equal to any value in list A column 1. Otherwise I want to keep the approval task pending. I am very new to sharepoint so any help would be appreciated.
    Thank you.

    Hi,
    You can use the condition "if any value equals value". Please  refer below links for reference.
    http://office.microsoft.com/en-in/sharepoint-designer-help/workflow-conditions-in-sharepoint-designer-2010-a-quick-reference-guide-HA010376962.aspx
    http://www.codeproject.com/Articles/125120/Step-by-Step-Guide-in-Developing-your-own-Workflow
    Best Regards,
    Pavan Kumar Sapara.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem.
    s p kumar

  • Lookup in another list when filtering in a view

    Hello,
    I need help with a public view for a list. This is my filter now:
    <View Name="{F9165834-6860-4EB5-A7FE-D96CE334DF70}" Type="HTML" DisplayName="My group - not assigned" Url="/sites/RomaniaL1SD/Lists/Opened tickets/My group not assigned.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=23" ><Query><OrderBy><FieldRef Name="Modified" Ascending="FALSE"/><FieldRef Name="Requester" Ascending="FALSE"/></OrderBy><Where><And><Eq><FieldRef Name="Assignment_x0020_group"/><Value Type="Text">EMEIA Romania Service Desk Management Level 1</Value></Eq><IsNull><FieldRef Name="Assignment_x0020_Person"/></IsNull></And></Where></Query><ViewFields><FieldRef Name="ID"/><FieldRef Name="Requester"/><FieldRef Name="Short_x0020_description"/><FieldRef Name="Assignment_x0020_group"/><FieldRef Name="Assignment_x0020_Person"/><FieldRef Name="Ticket_x0020_Status"/><FieldRef Name="Ticket_x0020_Priority"/><FieldRef Name="Attachments"/></ViewFields><RowLimit Paged="TRUE">30</RowLimit><Aggregations Value="Off"/><JSLink>clienttemplates.js</JSLink><XslLink Default="TRUE">main.xsl</XslLink><Toolbar Type="Standard"/></View></XmlDefinition>
    So this view displays all the items where the Assignment group is  "EMEIA Romania Service Desk Management Level 1" and the Assignment person "IsNull".
    What I need is to modify this, to filter
    by the Assignment group taken from another list and where in that list the person is [Me]
    --- I have another list with a 1st Person column, and a 2nd column which contains an Assignment group for each person and this is where I want to look ---
    Please let me know if this is feasible from SharePoint Designer.
    Kind Regards,
    Alex

    Hi,
    Per my understanding, you might want to filter the current list view with values from other list.
    Modifying the CAML statement in SharePoint Designer won’t be capable of this requirement cause we will need to query data from other list.
    In my opinion, custom code with CAML query would be required to query the “Assignment group” column and the “Assignment person” from the other list, then apply filter
    to the current list view.
    A possible solution is that you can use JavaScript Client Object Model to do the query job, with the retrieved values, filter the current list view using JavaScript.
    The links below about
    accessing list items using JavaScript Client Object Model would be helpful:
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx  
    Common Programming Tasks in the JavaScript Object Model
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    About how to filter a list view using query string in URL:
    http://sharepointificate.blogspot.jp/2012/12/filtering-listviews-with-url-query.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for