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

Similar Messages

  • 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

  • Copy windows sharepoint services list items into another sharepoint server list

    My requirement I have one windows SharePoint services 2007 site list. one SharePoint server 2013 site. 1.I have to copy data from windows SharePoint services 2007 site list to SharePoint server 2013 site list. 2.when ever data changes in windows SharePoint
    services 2007 site list  data has to reflect into SharePoint server 2013 site list.
    Could u pls help on this

    Hi,
    According to your description, my understanding is that you want to copy data in SharePoint 2007 list to SharePoint 2013 list and the data in SharePoint 2013 list changes with the data in SharePoint 2007 list.
    You could use JavaScript client object model to retrieve SharePoint 2007 list items and copy them to other SharePoint 2013 list.
    An official documentation about how to retrieve list items:
    https://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    A similar post about how to retrieve and copy list items:
    https://social.msdn.microsoft.com/Forums/office/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
    And you could use SharePoint event receive to monitor the list items.
    A post about how to use SharePoint event receive:
    http://blog.sharedove.com/adisjugo/index.php/2009/03/12/develop-and-deploy-a-sharepoint-event-receiver-from-the-scratch/
    Best Regards,
    Dean Wang
    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]

  • Making items in a List 'jump' into another List in a Flex effect/animation....

    Hello there! I need some help with effects in Flex but I
    seriosly do not know how to approach this problem. I have two List
    components both next to each other one on the left side of my
    canvas one on the right. The left List (itemList1) has been
    populated with an array of items from the server. The right List
    (itemList2) is empty. I want to populate the right List with items
    from the left List. I already have it so that its click and drag
    and drop that's simple. What I want however is so that when you
    just click on an item on the left List the item text, in a flex
    effect (or even Flash animation), 'bounces' from the left List into
    the right.
    There is an example of this in this YouTube video of the
    iphone iTunes application when you buy a song the song name bounces
    from its position on the list into the 'downloads' section -> .
    The desired effect takes place in the 30-34 second time frames.
    Is this possible at all??? Any tips/help is greatly
    appreciated.
    http://youtube.com/watch?v=nKUdjNSGGb4

    I dont know of a way to do this programmatically without
    having to code an animation. That being said, here's my initial
    thinking on how I would approach it:
    1) Fade the item on the source list out to alpha 0.
    2) Display an animation (load a SWF and start its position at
    the item in the source list) that moves to the target list.
    3) Fade in the item in the target list.
    Maybe others can chime in here and suggest alternative
    methods.
    hth,
    matt horn
    flex docs

  • Add items in another list

    I have 2  lists A and B,list A has a custom newform, in this newform i want to provide 2 sections, one section has textboxes which saves the items in the current list ie A, and another set of textboxes needs to save the item in list B, 
    In short i should be able to save the items values in 2 different lists at my will.

    OOB, You can do that in infopath form
     http://sharepoint.stackexchange.com/questions/46679/submit-multiple-entries-to-one-list-with-one-infopath-form
    http://www.sharepointsharon.com/2011/11/infopath-2010-one-form-multiple-views/
    Or
    http://sharepoint.stackexchange.com/questions/22360/single-form-for-multiple-lists
    you need to write a event receiver
    In easier to implement option than an event receiver is a Workflow, triggered by the first list, to insert data from that entry into another list.
    This can be easily built using SharePoint Designer
    If this helped you resolve your issue, please mark it Answered

  • Retrieve Title field values from multiple lists and add into another list

    Hi , Iam trying to retrieve Title field value from multiple lists. and add them into another list. using Javascript. Can any one help me in doing this. Below is the code.. function save() { clientContext = new SP.ClientContext.get_current(); oWebsite = clientContext.get_web(); oList = clientContext.get_web().get_lists().getByTitle('MainList'); clientContext.load(oList); clientContext.executeQueryAsync(OnSucceeded, onQueryFailed); } function GetListItemValue(listName, fieldName) { var list = oWebsite.get_lists().getByTitle(listName); var eventValue = document.getElementById(fieldName).value; eventValue = eventValue.replace(",", ""); var camlQuery = new SP.CamlQuery(); var filterdata = '<view><query><where><eq><fieldref name="Title/"><value type="Text">' + myreqValue.trim() + '</value></fieldref></eq></where></query></view>'; camlQuery.set_viewXml(filterdata); listItems = list.getItems(camlQuery); clientContext.load(list); clientContext.load(listItems, 'Include(Id)'); clientContext.executeQueryAsync(Succeeded,Failed); } function OnSucceeded() { itemCreateInfo = new SP.ListItemCreationInformation(); oListItem = oList.addItem(itemCreateInfo); oListItem.set_item('Title', 'My New Title'); var deptItemLookupField = new SP.FieldLookupValue(); //Problem in below line...I was unable to get ID var getId = GetListItemValue("Listname1", "txtboxname1"); alert("ID" + getId); if (getId != undefined) { deptItemLookupField.set_lookupId(getId); } var getId12 = GetListItemValue("Listname12", "txtboxname12"); alert("ID" + getId12); if (getId12 != undefined) { deptItemLookupField.set_lookupId(getId12); } oListItem.update(); clientContext.executeQueryAsync(itemadded, itemFailed); } function itemadded() { alert('Item added successfully'); } function itemFailed(sender, args) { alert('Item added itemFailed' + args.get_message() + '\n' + args.get_stackTrace()); }
    Raj

    Hi,
    For this requirement, you will need to retrieve all the lists objects you want firstly, then execute the requests one by one to get the value of the Title column using CAML or
    LINQ.
    How to: Retrieve Lists Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185009(v=office.14).aspx
    About
    retrieve list items:
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    You can use
    Promise in your script to make your requests sequentially:
    http://www.shillier.com/archive/2013/03/04/using-promises-with-the-javascript-client-object-model-in-sharepoint-2013.aspx
    http://www.learningsharepoint.com/2013/08/13/using-deferred-and-promise-to-handle-async-calls-in-sharepoint-client-object-model/
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • How to save the form data into adobe db?

    Hi All,
    How to save the form data into adobe db?
    I have designed one xdp file.
    Through processFormSubmission(), I got the submitted form data as Document obj.
    Then I have called the workflow kickoff program.
    code:
    InvocationRequest request = myFactory.createInvocationRequest ("myprocessname", //Specify the long-lived process name
    "invoke", //Specify the operation name
    params, //Specify input values (HashMap obj)
    false); //Create an asynchronous request
    It successfulyy started the workflow, but the submitted form data is not saved anywhere.
    And also, How get the form data from tables?
    Please provide the solution for the above.
    Thanks in advance.
    Regards,
    Saravanan G

    You need to create a process variable of type IN if you want to be able to pass data to your process. Then the params parameter (HashMap) contains a list of all the IN variables with their content that you want to pass to your process. They key is the name of the variable and the value the content. That way you should get it in your process.
    Now LiveCycle will create a column in the database for every process variable, so the content will be saved in the database just by creating that process variable.
    Jasmin

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

  • How to check if a list contains items from another list

    Hi all,
    I am trying to check whether a text list contains items form
    another list and then do something. I tried:
    tlist contains text phrases (e.g., test1,test2,test3)
    phrases = ["test1","test2"]
    n = phrases.count()
    tList.getPos(phrases.item[n])
    alert("should not be inluded in the list")
    But it is not working any ideas why?

    myPhrase is the loop index, but instead of a numerical index
    (like n in your sample), myPhrase is set equal to each item in the
    phrases list, first item to last. So, on the first iteration
    myPhrase = “test1”, on the second iteration myPhrase =
    “test2”. The loop automatically exits when the end of
    the list is reached. The Director help docs have more information
    on this syntax under “repeat”
    BTW: if you're more comfortable using a numerical index, the
    syntax for getting at the n-th item in a list is list[n], or in
    your sample phrases[n]

  • I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    Hi Atrec,
    If you don't need your old custom template, save your changes with the same template name. It will tell you that this template exists and will ask you Replace? Say yes (if you do want to replace the old with the new!)
    To delete unwanted templates, go to Finder > Menu > Go and press the option key. Your Library will show in the Go Menu. Navigate to Library > Application Support > iWork > Numbers > Templates > My Templates.
    Delete any unwanted template by dragging it to the Trash or click on it then command-delete.
    Having gone to all that trouble to find My Templates folder, right click (or control click) on it and Make Alias. Drag the Alias to any convenient place for a quick way to get back to that folder.
    Regards,
    Ian.

  • I want to update forms in the response file and save it. Sometimes it works, but often I need to save the response file in another name. Very inconsequent! How come?

    I have a form that I am sending out and compiling in the response file. These forms I also want to be able to update after receiving them (when I have them in the response file).
    But when I do the updates I need to re-save the response file with another name? The strange thing is that sometimes I can just update and save exactly the way I want it. But most of the time I get the message "This file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
    Can someone please help me to figure out how to solve this issue. I know that I am the only one that has the file open. I am encountering the same issue in both Acrobat Pro 9 and Acrobat Pro X. (File was created in Acrobat Pro 9)

    Good day!
    A simple Paste does not work for you?
    It should place the clipboard content as a new Layer which you can then move around.
    If there is any chance that the elements need to be scaled, rotated etc. I would prefer to place them as Smart Objects (File > Place …) and do the masking that is specific to the images themselves in those.
    Regards,
    Pfaffenbichler

  • My MacBook pro is freezing at the "moving items into place" phase. I have to restore from time machine each time. I'm talking about the 10.7.4 update

    I can't seem to get the 10.7.4 update to work. It constantly freezing at the "moving items into place" phase. I let it run overnight and it's still frozen. I have to restore from time machine backup each time. Any help appreciated.

    this is somethinng like the third post i have read about that update causing troubles...
    But if I read this right- it is still in the install? Had you restarted and repaired permissions BEFORE the download? As well as emptying cache in safari first?
    The other troubles I read had to do with after install, and caused by...oh what was it...it was early morning...an article at CNET news had it...google 10.7.4 update trouble and read the cnet one.

  • IDoc to webservice and get the response back into another IDoc.

    Hi guys
    We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
    Questions:
    1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
    2. Is there a Async to Sync bridge in BPM?
    3. How do I use this bridge in my scenario and customize it?
    4. If not possible, provide me the related docs using BPM for the same scenario.
    Appreciate your quick response
    Regards
    Naidu

    Hi,
    this link may help u............,
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1134. [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Azeez khan.

  • When I send an email the rely comes into another account in my apple email.  How do I set it so that my email comes to the correct address?

    When I send an email the rely comes into another account in my apple email.  How do I set it so that my email comes to the correct address?

    Hi Sunny C,
    Welcome to the Support Communities!  The "From" field should be showing by default, but you can check or change your settings for Mail with the instructions below:
    Mail (Yosemite): Set Mail preferences
    http://support.apple.com/kb/PH19178
    In the Composing pane, you can set the email account that you want to send new messages from.
    Also, check the View command on the Menu bar.  View > Message Attributes should have a checkmark beside the "From" field.
    Cheers,
    Judy

Maybe you are looking for

  • Using RAW images from Canon T3i in PSE 6

    I have a new Canon T3i which is set to create both RAW CR2 files and jpegs. How can I open the RAW files in Photoshop Elements 6? I've searched the internet for two hours now and can find no answer which seems unambiguous, short of buying the latest

  • PDF's in Mail Not Previewing Properly - All Text is small Boxes with "X"'s

    Hi, when I attach a .pdf file in Mail the letters of the fonts sow up as small boxes with an "X" in the middle. I have attached PDF's before with no problems viewing them in Mail but now they are unreadable. I contacted Adobe but the PDF looks fine i

  • WorkFlow Administrator access

    Hi I have a HR Leave approval workflow which has a background task that attempts to make a change to the absences infotype within the leave requestor's personnel record. If the personnel record is locked at the point of attempting the update it fails

  • FIOS wiring with internal coax

    I am considering FIOS TV/Internet in a new house I am buying and have a question regarding wiring and networking setup options. The house has coax run to every room, but doesn't have ethernet cabling. Ideally, i would be able to: 1. Connect the provi

  • Elements 7 problem using Windows 7

    I have been running Elements 12 on Windows 7 for a month without any problem. I also use Nik  Software suite plug-in.  Yesterday on opening and clicking on Photo Editor  within seconds a message box appears 'Photoshop Elements 12 Elements 12 Editor h