Creating an item in a list -- through workflow

I have a workflow, which has got one step:
Create item in list name (output to
Vairable: Create)
This workflow runs on a new item creation. This was working nicely a few days ago, but all of a sudden it has stopped. It gets suspended. 
I'm hoping anybody could give me some guidance on this. 
Many thanks !

Hi Bhism,
After much investigation, i can say that there is some problem with the SP2013 workflows. I'm currently using an SP2010 workflow to achieve the same task and it works properly.
So i would suggest anyone who is using this workflow in SP2013  platform, should rather construct an SP2010 w/f and use that. 
Regards,
prajK

Similar Messages

  • SharePoint Designer 2013 workflow - creating new items in the list

    Hi,
    I need to create a workflow in SharePoint designer 2013. Basically the flow is like that:
    There is a Request List where people submit their requests. The requests have status: Submitted and Completed.
    Once the status goes to 'Completed" there should be a workflow triggered that creates an entry in another list; VoC list and populate VoC columns. Additionally there should be an email send to the requestor that the request has been processed.
    I tried to do that but I failed - what do I do wrong? It keeps telling me that there is an error in workflow.
    Could you, please help me? Thank you.
    Thank you.
    Kind regards,
    Jowita

    With this command it populated the Voc list. But when I tried to add additional fields, the workflow did not work. Fo example, I've got a column "Requestors Name" in Request List and I would like the same column in Voc List to be automatically
    populated with the data from Requestors List. I set Field Requestors name to Value Current item:Requestors name but it did not work :-(
    What do you mean by "VoC column is already created in VoC list"?
    And one additional question: is it possible for the workflow to automatuically create new columns in the VoC list?
    Hi Jowita,
    We could use workflow to populate values in column but not populate new columns, so the column should be created in list manually before workflow.
    As I understand now, you need to use workflow to populate at least two columns in another list, and one is person or people type. I captured a screenshot for your reference, pp column is in person or group type in both two lists, please set return
    type as Display name:
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Workflow for creating new item and updating list

    I believe that the answer is easy, but because I am already having trouble with this issue for few days I am getting blind to see the solution:)
    I have two lists and a workflow running behind. Basically when new item is created in first list, workflow makes a copy in second list. Because this workflow works only when new item is added, I have a problem when item is updated, items in second list just
    disappear - are empty. I believe that I have a problem with workflow, because somehow I should also have in to update list in case of change.
    Please help.
    Thanks in advance

    Hi,
    According to your description, my understanding is that the workflow you created was not started when an item was updated in first list.
    Did you check the option “Start workflow automatically when an item is changed” in SharePoint Designer?
    Did you sign in as system accout?
    Please use another list to check whether this issue occurs.
    If this issue still occurs, please provide screenshot about the details of the workflow in order to find out what goes wrong.
    Thanks,
    Dean Wang

  • Error while creating new item in SharePoint List

    Hi,
    I have requirement to use cascading dropdown, I just created all the steps which are explained in the below URL
    http://spcascade.org/. But i am getting Debug message Error: "Error pulling data from list"
    and "try setting spWebUrl to appropriate SharePoint URL". Please help me to find the solution fro this.
    Thanks.

    var spObj = $().SPCascade({
    destListColTitles: ['Continent','Country','State','City'],
    srcListColInternalNames: ['Continent','Country','State','Title'],
    srcListName: 'CitiesLookupList',
    srcListFilterCAMLQuery: "<Query><Where><Contains>
    <FieldRef Name='Continent'/><Value Type='Text'>America</Value>
    </Contains></Where></Query>"
    spWebURL: 'http://sharepointurl',
    getDataOnly: 'false',
    debug: 'true',
    });

  • 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

  • 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 to create new subsite while adding new item to the list by using javascript?

    hi,
    I hav a task ie, when I add item to the list then subsite will create with that list item title and description . So By using javascript, I have to create subsite while adding new item to the list.
    Help me to solve this.
    Thank you, 

    Is your item getting added through Javascript client object model ? If yes, you can write in the success delegate of your list creation method the logic to create the subsite.
    function CreateListItem()
    var clientContext = new SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('List Name');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', 'My New Item!');
    oListItem.set_item('Body', 'Hello World!');
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.CreateListItemOnSuccess), Function.createDelegate(this, this.onQueryFailed));
    function CreateListItemOnSuccess() {
    var subsiteTitle = oListItem.get_item('Title');
    //Logic to create a subsite
    function onQueryFailed(sender, args) {
    I have added a sample flow for the above scenario. Have a look at the following lnk for how you can craete a subsite using ecmascript.
    http://ravisoftltd.wordpress.com/2013/03/06/sharepoint-2010-create-site-with-ecma-script-with/
    Geetanjali Arora | My blogs |

  • Updating/ Creating items in a list Identified by 2 fields

    Hey guys,
    So I have this points list, and it updates points based on items created and modified in other lists. The identifier has always just been a username. I want to modify this points list to be sorted by date and user. So
    basically when an item is created or updated in another list I want it to be able to check if an item exists in this list by username and date, then either update the list item or create a new item based on username and date. Is this even possible?
    Currently I'm checking for username in a list by assigning a workflow variable to the lookup of the username and if it is empty it does not exist. I could do this for both username and date, but I'm not sure how I could
    update an item based on both.

    Thanks for the replies,
    One more problem. I fill the user column when the points are going to be calculated. So it fills the user column and then checks for the calculated column (calculated partially off of the user column). It fails to wait
    for the calculated column to finish, so i put a wait on the calculated column to begin with user, but the workflow gets stuck on that pause. I tried even waiting till the user column was filled, but it still doesn't receive the correct calculated column (as
    if i didn't even have a pause). If I manually enter in the user it works as it should. 
    how can i fix this?

  • Create document item from list, then no lookups

    SharePoint 2013: I have a content type set up in a document library with a default document template attached (in this case an excel workbook file).
    In SPD 2013 (using a 2010 workflow), I can use the "Create Item in List" function in SPD from an adjacent list on the same site collection to create a record in the document library, and set the content type such that when the workflow is done there
    is indeed a new document waiting for me in the doc library, utilizing the expected template file.
    The issue:
    The output of the "Create Item in List" function is the ID of the item created.  Using the Create variable, I believe I should be able to immediately lookup attributes of the newly created Document item, such as the last modified date and URLs.
     I'm doing the lookups within the output of a Log (to workflow history) function.  However, certain fields always come back blank.  Performing the same lookup, using a known Document item ID (created in another w/f session) is successful.  It
    would be nice to email out a URL of the file I just created from the same workflow.
    I've tried having the W/F wait up to 5 minutes, but it appears that certain attributes cannot ever be retrieved in the same workflow, while others can indeed be retrieved (GUID of the new doc is successful, for instance).
    I've read some online debate related to this, but I can't find anyone having the exact same issue as me, nor explain why it's happening.  It seems like it should be so straightforward.  Any ideas?  Thanks!

    Hi,
    According to your description, my understanding is that you create a document library item using “Create item in list ” action and when you log some certain attributes of the item to workflow history list, then
    it has no value.
    I try to reproduce this issue with your steps and it works as expected in my environment.
    For a better troubleshooting, I suggest you do as the followings:
    1. Check if the certain new created item field has value in the list which always return blank.
    2. I suggest you can create a new simple workflow to log the field data for new created item to workflow history list to test if it works.
    3. If the issue still exists, I suggest you can track the workflow using Fiddler. You can see detailed web request for the workflow, it will be easier to find the cause of this issue.
    Here is a detailed article for your reference:
    http://msdn.microsoft.com/en-us/library/office/dn508412(v=office.15).aspx
    Best Regards
    Jerry Guo
    TechNet Community Support

  • SharePoint Designer Workflow to check if value exists in any item in SharePoint List

    Hi,
    I've two column in SharePoint List. I want to check using SharePoint Designer 2013, if value exists in any item in SharePoint List for these two columns "PR NO" and "Part No". Thanks
    Can you please help me in SharePoint Designer how to write condition / steps for this. Thanks.

    Why are you making things complicated for yourself by building a workflow via SharePoint designer 2013.
    I had a to do a similar task in the past and running powershells was an easier and faster approach.
    Take a look at this Microsoft technetarticle I wrote a while back.
    http://social.technet.microsoft.com/wiki/contents/articles/25125.sharepoint-2013-powershell-to-copy-or-update-list-items-across-sharepoint-sites-and-farms.aspx
    Even though the above article talks about updating an existing list, you can focus on the condition where the powershell will loop through the list to see if any change has been made. You can add a condition to this change.
    Daniel Christian (MCTS)

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    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]

  • Creating a form to Add List Item and to a Document Library

    Hi,  I'm super new to sharepoint , and have what is probably a newbie question.
    I have a list and a document library.  The documents are linked to the items in the list. (1 list item may have one or moe documents associated with it).
    I need to create a form to add new list items that will at the same time upload documents to the document library.
    Do I use infopath for that?
    Thanks

    Hi,
    According to your description, when adding a new item to the current list, you might want to upload the attachments of this item to other Document Library as well.
    As a workaround, you can create an Event Receiver to capture the event when there is “An item was added”. In the Event Receiver, we can write C# code to copy the attachments
    from a list item to a Document Library.
    About how to create a simple Event Receiver in SharePoint 2013:
    https://msdn.microsoft.com/en-us/library/ff398052.aspx
    Here is the related code I use in this scenario, you can use it as a reference:
    using System;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Workflow;
    namespace SharePointProject13.EventReceiver1
    /// <summary>
    /// List Item Events
    /// </summary>
    public class EventReceiver1 : SPItemEventReceiver
    /// <summary>
    /// An item is being updated.
    /// </summary>
    public override void ItemUpdating(SPItemEventProperties properties)
    //base.ItemUpdating(properties);
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    // base.ItemAdded(properties);
    using (SPSite site = new SPSite("http://sp/"))
    SPList docDestination = site.RootWeb.Lists["Document"];
    SPList lstAttachment = site.RootWeb.Lists["List1"];
    SPFolder fldRoot = site.RootWeb.Folders[docDestination.Title];
    SPFileCollection flColl = null;
    if (properties.ListItem.Attachments != null && properties.ListItem.Attachments.Count > 0)
    foreach (String strName in properties.ListItem.Attachments)
    flColl = fldRoot.Files;
    SPListItem listtem = docDestination.Items.Add();
    SPFile FileCopy = properties.ListItem.ParentList.ParentWeb.GetFile(properties.ListItem.Attachments.UrlPrefix + strName);
    string destFile = flColl.Folder.Url + "/" + FileCopy.Name;
    byte[] fileData = FileCopy.OpenBinary();
    SPFile flAdded = flColl.Add(destFile, fileData, site.RootWeb.CurrentUser, site.RootWeb.CurrentUser, Convert.ToDateTime(properties.ListItem[SPBuiltInFieldId.Created]), Convert.ToDateTime(properties.ListItem[SPBuiltInFieldId.Modified]));
    SPListItem item = flAdded.Item;
    item[SPBuiltInFieldId.Created] = Convert.ToDateTime(properties.ListItem[SPBuiltInFieldId.Created]);
    item[SPBuiltInFieldId.Modified] = Convert.ToDateTime(properties.ListItem[SPBuiltInFieldId.Modified]);
    flAdded.Item.Update();
    How it works in my environment:
    Add an item with attachment in List1:
    In the Document Library, we can see the uploaded attachment there:
    Best regards
    Patrick Liang
    TechNet Community Support

  • Amending List content (deleteing & renaming) - Effect on previous created work items/reporting

    Hi, 
    I going to be changing the naming and structure of support groups and incident tier groups. I'd like to know what effect this has on all previously created work items and the reporting on those work items. 
    In addition, I am also adding list items to impact and risk list to change incident prioritisation settings and want to know the effect it will have on the live work items and historical work items.
    Cheers,
    Pete

    When you're thinking about editing enums in a live system, it's important to know a little but about how they work on the back end. 
    each enumeration entry essentially breaks down into a GUID and a display string; there are other properties, like Parent, Ordinal, InternalName etc, but those don't come in right now. when you use a console form to look at an incident, the control reads
    the GUID that is stored on the incident in the property in question, and then goes and collects the list that property references, and shows you the correct display string for your language. the specifics are not important, but the fact that what's stored
    on the incident is that system generated GUID is. when you edit a list, each entry has a unique GUID, that can't be changed or seen through the UI.
    Adding a new entry will add a new guid and a new display string. this option will be available the next time the form is opened. this works pretty much the way you would expect it to. 
    Renaming an enumeration keeps the GUID the same, but changes the display string. any incident with that GUID will see the new string, and the data warehouse will be updated with the new string, so
    historical incidents that had that value will now have the new display string.
    Deleting an enumeration will remove the entry from the list and break the mapping of that guid to the display string, but does nothing to the incidents that have that guid on them. the net-net of this is that any incident with that guid
    will have a value (i.e. not null) but it won't have anything to show to analysts, so it will look like it isn't set. the datawarehouse keeps those mappings even after they are deleted, so removing a mapping will not affect reporting. 
    the end of this is that you should re-classify any items before deleting an enumeration, you should only rename an enumeration if that new name makes sense for all work items for all of history. it is possible to reorder enumerations while keeping their
    GUIDs, but it requires some XMLing. I've posted about it elsewhere in this forum, so let me know if you need a link

  • How to create a background image for each item in a List object

    Hello.
    I am trying to create a background image that displays whenever a user posts something to a list.  For example when a user posts text it would appear in a list.  The new item in the list would contain a specific background image with the users text appearing on top of the background image.  I do not want a background image for the entire list, rather each item within the list.
    I am not sure how clear this is so I added an image below.  When a user enters text in and clicks the "post-it" button their text would appear below with the sticky note background. 
    I am not sure which list type would be best for this problem or how to create insert the image, so I am open to suggestions. 
    Thank you for your help.  Any advice or guidance will be greatly appreciated!

    Hi
    the easiest way would be with itemRenderer.
    You have to do two things:
    1. In your list declaration use a item renderer: <mx:List itemRenderer="myRenderer"/>
    2. create a flex component myRenderer that will be the single item. This can be a canvas with a background image and a text field on it.
    When you add a new item to the list, a new myRenderer item will be created and the data property will be passed to it. So you have to put "data" in your textField.
    If you need more help try looking at Tour de Flex samples, they're pretty easy.
    Andrei

  • How to create an alert at the list item of List box in vbs/c sharp

    Dear All,
    I need to know how can we create an alert, or a message on the execution of the last item in the List box.

    What do you mean by "on the execution of the last item in the list box"? Do you mean when that last item of a ListBox is selected? If so, you could use the following code:
    Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As EventArgs) _
    Handles ListBox1.SelectedIndexChanged
    Dim lb As ListBox = CType(sender, ListBox)
    If lb.SelectedIndex = lb.Items.Count - 1 Then
    MessageBox.Show("Last item is selected")
    End If
    End Sub

Maybe you are looking for