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

Similar Messages

  • Applescript: transferring total appearance from one page item to another

    What is the best way to transfer all the properties of a path item that determine appearance to another path item?
    What if those path items are in separate documents?
    Should I copy and paste?
    what about:
    set item_properties to every property of page item 1 of document 2
    set properties of page item 5 of current document to item_properties
    Specifically, I want to copy the following properties from one path item to another, across documents:
    stroked
    stroke width
    stroke color
    stroke dashes
    stroke cap
    filled
    fill color
    --and any patterns that are used as fill
    blend mode
    opacity
    any help appreciated.
    thanks.
    Ben

    Thanks Mark.
    the main downside to this is it adds another layer of manual work--you would have to make a graphic style by hand from each sample object (because you can't make a new graphic style with a script). I would rather make the script do the work, so that if I have a lot of different sample items to mimic it could be automated.
    The big problem I've encountered with just moving each property over is that when I make my own fill pattern for the sample object, and copy that pattern over as a "fill color", it seems to cause some problem with opening the document, as I found in this other discussion:
    http://forums.adobe.com/thread/542632?tstart=0
    Thanks again,
    Ben

  • How to update one table based on another table ??

    Hello Friends:
    I am trying to run the following query in oracle but it won't run.
    UPDATE BOYS
    SET
    BOYS.AGE = GIRLS.AGE
    FROM GIRLS
    WHERE
    BOYS.FIRSTNAME = GIRLS.FIRSTNAME AND
    BOYS.LASTNAME = GIRLS.LASTNAME;
    This query runs fine in sql server but in oracle its saying can't find "SET". PLease tell me what is the correct syntax in oracle to update one table based on another table.
    thanks

    See if this helps.
    If you wrote an SQL statement:
    update boys set age = 10;
    Every row in the boys table will get updated with an age of 10. But if you wrote:
    update boys set age = 10
    where firstname = 'Joe';
    Then only the rows where the firstname is Joe would be updated with an age of 10.
    Now replace the 10 in the above statements with (select g.age from girls g where g.firstname = b.firstname and g.lastname = b.lastname) and replace where firstname = 'Joe' in the second statement with where exists (select null from girls g where g.firstname = b.firstname and g.lastname = b.lastname). The same concepts apply whether 10 is an actual value or a query and whether you have a where clause with the update statement to limit rows being updated.
    About the select null question regarding the outer where clause:
    Since the query is checking to see if the row in the girls table exists in the boys table what the column is in this select statement doesn't matter, this column isn't being used anywhere. In this case Todd chose to use null. He could have also used a column name from the table or a lot of times you'll see the literal value 1 used here.

  • Can one work item drive another work item.

    Lets say I have two distinct bug tracking work items in tfs 2013. Would I be able to have one work item drive another... for example
    if I create a defect in work item a, it will create a copy of it in work item b.
    if I update the status of defect in work item a, it will update the status in work item b.
    etc...
    Thx.
    Saba

    Hi Saba,
    As far as I know, seems it's unavailable to get a copy of it in another work item automatically.
    Generally, you can associate the created defect with two work items(add links to the defect for the two work items). Another option is open the first work item after adding the defect to it in team web access, then click button of "Create a copy
    of this work item" to get a copy of the work item.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a document made up of separate PDF files which reside in a folder and are linked to each other via hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I link from one PDF file to another and use the "Previous View" button

    I have a document made up of separate PDF files which reside in a folder and are linked to each other via hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I link from one PDF file to another and use the "Previous View" button to navigate back to my starting point the bookmarks are replaced by "page thumbnails". Is there anyway to stop this from happening?

    Hi Pusman,
    While setting up the links, if you choose to open the file in a new window then you won't face this issue, then you can simply switch to the previous file and bookmark view will remain as it is.
    Does that helps with your query?
    Regards,
    Rahul

  • How to update the lists using the timer jobs?

    Hi,
    I'm new to sharepoint developing
    Using the timer jobs the items which are present in the one list must get updated in the another list and also should be overwritten.
    For example:
    If there 10 items present in a X list. After some time period the first five of X should get updated in Y  list . After some more time the next 5 items of X has to overwrite the items present in the Y list.
    Regards,
    Santto.

    Hi Santto,
    The following articles and code examples would be helpful.
    SharePoint 2010 Custom Timer Job
    https://code.msdn.microsoft.com/office/SharePoint-2010-Custom-416cd3a1
    SharePoint Add/Update/Delete List Item Programmatically to SharePoint List using C#
    http://www.sharepointblog.in/2013/04/add-new-list-item-to-sharepoint-list.html
    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]

  • Slow in updating price lists using import from excel

    Hello,
    I am concerned about the slow process of updating prices in SAP using import from excel. It took me hours to complete the upload for 3700 item rows and 2 price lists. It is also slow in adding warehouses. I am not sure if the account segmentation has something to do with it but it never happened to my other databases where there is no account segmentation. Other than this, SAP is running real fast on the server.
    How could this be? Thank you and regards.
    Derrick

    Yes vijay, There is query params in step 2 of DTW.
    2 week before only we have updated to SAP B1 2005B PL41,
    but i'm not sure whether DTW is updated to latest version or not ?
    Current DTW version is 2005.0.15 & API version is 6.80.320.
    What is procedure to update DTW ?
    Jeyakanthan

  • Updating one table based on another

    Ok, that sounds a little confusing, but this is what I want to do:
    Table A is my source table and is a temp table and will be reloaded daily.
    Table B is my target table.
    What I want to do is update Table B using a subset of Table A based on a date within Table B. A simple psuedo code would look like:
    update Table B
    insert * from Table A where Table B.datefield <> Table A.datefield.
    Both tables contain the same data elements, so the structure is an exact 1 to 1 match.
    Table B was initially created from Table A using the copy command to do an intial load. From this point forward, I just need to update Table B with new data from Table A, which has data loaded into it throughout the day. My idea is to grab just the data that isn't in Table B once a day.
    I'm open to all suggestions or ideas............
    Doug

    By cracky, I think that merge thing is just what I'm looking for.
    In theory the data in Table A will contain the data in Table B, plus newer data. The older data in Table A is stagnant, meaning that that table is just appended to. The problem is, Table A is periodically trimmed by the application. Table B is to be used for compiling all the data and reporting trend and historical data.
    More, specifically, Table A is the History table in HP Openview. Table B will be a table in HP Performance Insight. Since theses are 2 totally seperate databases, I will need to copy over the OpenView History table to a temp table in PI nightly, then cull out the records that were added during that day and place those and only those into the PI table for reporting.
    I'll give the merge command a try. I think it will do exactly what i need.
    Thanks,
    Doug

  • How to open (parameterize) one dashboard out of another? (using BICS)

    Hi there!
    I've got two dashboards and I want to open one out of the other using a button or something like this...
    Each dashboard includes a bw-query using 0CALMONTH (variable: input ready, optional, single value) as a characteristic.
    I want to pass 0CALMONTH value just as i do using the report-report-interface in bw...
    Has anybody an idea how to do it in xcelsius?
    Using Flash variable and SWF-Loader?
    Thanks a lot for any answer...
    Mark
    Edited by: Mark Börner on Nov 15, 2011 2:55 PM

    Hai
    Check this Links it will Definately help u
    http://www.pieterverstraeten.com/blog/interval-selection-sap-bics-connection-xcelsius-dashboards/
    http://www.femkekooij.nl/
    http://www.insiderlearningnetwork.com/molly/blog/2011/07/18/dr._berg_on_designing_and_enhancing_xcelsius_dashboards_(transcript)

  • HT204350 How many hours (maximum) does it take to migrate 400  GB from one MacBook Pro to another MBP using Ethernet connection?

    How long do I need for migrating data from old MBP to a new MBP?

    The fastest way would be to connect the two computers over Firewire, start the new MBP in Target Mode, and either clone the whole hard drive from the old MBP or only copy across the things you need. Doing it that way would take about 1-2 hours depending on how much stuff you're copying.
    Ethernet would be a lot slower.

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

  • Moving a List Item attachment from one list to another

    Hi,
    What are the best way of coping / moving the List Item attachment using
    jQuery / JavaScript in SharePoint 2013 from one list to another.
    Thanks
    Saroj
    Impossible is nth but good coding :-)

    For your needs better try to code your own solution. See
    SharePoint JavaScript Class Library for details. You can have two possible architectures:
    Make all work from JavaScript. And the first your step will be
    addItem method of SP.List.
    Make processing of selection on client in JavaScript and call your custom server-side component (may be an application page) for items copying (creating copies in new list of already existed items from initial list.). See
    this for example.
    Also be careful with context.load. It's recommended to write all next code in context.executeQueryAsync. Use Firebug in FF and developer tools in Chrome for debugging your code and to find what is wrong.
    Or 
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    var siteUrl = 'Site Url';
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List1');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var objListItem = listItemEnumerator.get_current();
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List2');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', objListItem.get_item('Title'));
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededFinal), Function.createDelegate(this, this.onQueryFailed));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function onQuerySucceededFinal(sender, args) {
    //Do next set of operation if needed
    </script><input name="btnVarIQReject" onclick="retrieveListItems()" type="button" value="Submit"/>
    Please use my above POC code to start. This will copy all the title field value from list1 to list2
    If this helped you resolve your issue, please mark it Answered

  • 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 to update an existing item in a sharepoint list using the WSS adapter for Biztalk

    Is there a way that a record in SP list be updated using WSS adapter in biztalk ?
    BizTalk 2013 and SP 2013 ..
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    A ListItem has its own unique row id so in all likelihood, an insert with the same data will result in a new list entry. The Lists Web Service however, has an UpdateListItem method which will take an update request. [refer
    http://msdn.microsoft.com/en-us/library/office/websvclists.lists.updatelistitems(v=office.15).aspx ]
    There is another note in the conference (marked answered) to your List Item Update problem. Probably worth a try too. [refer
    http://social.msdn.microsoft.com/Forums/en-US/bee8f6c6-3259-4764-bafa-6689f5fd6ec9/how-to-update-an-existing-item-in-a-sharepoint-list-using-the-wss-adapter-for-biztalk?forum=biztalkgeneral ]
    Regards.

  • Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Trying to follow Serge Luca's Step by Step Tutorial. Creating Workflows for Windows Sharepoint Services and MOSS2007.  http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!859.entry
    I have an onWorkflowActivated, followed by an ifElse condition and a log to history.
    In the IfElse, each branch has a code segment, that trys to update the status column in the list that the workflow is attached to.
    private void Authorize_ExecuteCode(object sender, EventArgs e)
    // tried serveral methods
    WorkflowProperties.Item["Status"] = "Automatically Approved";
    // tried all of the following (one at a time)
    item.update();
    WorkflowProperties.Item.Update();
    WorkflowProperties.Item.SystemUpdate();
    //tried this as well.
    Microsoft.SharePoint.SPListItem item = WorkflowProperties.Item;
    item["Status"] = "Automatically Approved";
    item.Update() ;
    On the update call I keep getting "Invalid data has been used to update the list item. The field you are trying to update may be read only."
    Could someone explain how to update "Status" column of the list item that the workflow is working on?
    Thank you very much.
    Bill
     

    Hi:
    you can do the following:
    add the following code to the workflow.xml file (under the MetaData section)
    Code Snippet
    <ExtendedStatusColumnValues>
    <StatusColumnValue>Branch1</StatusColumnValue>
    <StatusColumnValue>Branch2</StatusColumnValue>
    </ExtendedStatusColumnValues>
    then add 2 SetState activities one in each branch of the IfElse.
    for the code behind of setState1 (branch1) write the following code:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max);
    for setState2 (branch2) write the following:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max) + 1;
    where state is the variable assigned to the field State in the properties of the SetState(design lever), or instead of state u can use the following code:
    Code Snippet
    ((SetState)sender).State
    where sender is the object sent through the function parameter.
    hope this answered your question
    Best Regards

Maybe you are looking for

  • Selecting date from table of type c.

    hi, i have a field  in table type c.......the field contain date in fallowing format 02.07.2007 ,if i have to write a select query for that table ,for selecting all entrie between two dates ...how can i do..... note : date in the table is of type cha

  • Import failed in Con System

    Hello everybody, I did some development using the NWDS (JDI installed). After i have checked in my application / activated it and released it it was shown in the import queue at the Consolidation Tab of the CMS application. So far everything worked g

  • Projector not being outputted by iMac

    I am trying to connect a projector to my iMac (2011) and the video will not output. Is this simply because there is no cables that work with the Thunderbolt yet?

  • Imac superdrive burn fix

    recently i could not burn a cd via the finder i go the error "lazer could not calibrate" along with other errors. going to system prefs choosing international i selected any language and dragged it to the top then dragged english back to the top and

  • Abap Proxy Issues

    Hi there, Iu2019ve been struggling with abap proxies the last couple of daysu2026 I want to create a program that executes the proxy and send thru some data via an internal table. (To another proxy on the same system but a different client.) Iu2019ve