Update another list when list is updated

What do you recommend to update another list when the current list is updated.
I have a workflow which updates a Reports list. I also have a favorites list which has 4-5 columns which are in the reports list and I would like to update those values when the reports list is updated. I use a workflow to update the reports list.
Thanks

Hi CoutinhoR, 
You could use your existing workflow to update the favourites list (after it has updated the reports list). 
Another way, would be creating an event receiver that updates the favourites list whenever an item in the reports list is added, modified or deleted. 
It depends on the functionality you need to achieve. If you are just incrementing the value of the columns for a single item in the favourites list (when a report is updated), then using the existing workflow would probably work best.
Regards, Matthew
MCPD | MCITP
My Blog
View
Matthew Yarlett's profile
See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos

Similar Messages

  • How to do timer job to update another list?

    Hi all,
    If i update a field in a SharePoint list, then I want to update the same field which is in the another list item. Yes, I know to use timer job, but lack code idea. Could anyone help to give any sample code to update a particular column in other sharepoint
    list items? Thanks!

    Hi Sam,
    Timer job runs as per the schedule, in this case, when the user updates a field in SharePoint List, you want to update the same field in the different list, 
    how about using a Event Receiver, so you can have an ItemUpdated event in the source list, and when anything is updated, update the other list item as well.
    Thanks
    Senthu
    Please mark is as Answer if it resolves your query or Vote if its helpful

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

  • 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

  • My itunes says that my ipod is synced with another library when it is not and cannot update or sync without wiping it and all its data

    My itunes says that my ipod is synced with another library when it is not and cannot update or sync without wiping it and all its data
    Can anyone help me

    Syncing to a new iTunes library or computer will erase your ipod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    All media content will be erased during the first sync, but you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the ipod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread:http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0

  • 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

  • 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

  • When I switch on my brand new iPad it asks me to move the slide to begin set-up. A list of languages appear and I tick English and then next. Another list of languages appear but nothing else happens. I press Back and it goes back to the first list and a

    When I switch on my new iPad it asks me to move the slider to begin set-up. A list of languages appears and I tick English then NEXT. Another list of languages appears and the only thing to do is press the home button or BACK. I press BACK and it returns to the first list. I press the home button and a message appears saying that SET-UP was not completed do you wish to retry or continue. I press CONTINUE and nothing happens I press RETRY and it goes back to the message. What am I doing wrong or do I need to connect to I-Tunes to set-up ?

    Try to connect to iTunes during the setup.

  • Been visiting another country. when i got home i get an unknown error has occurred on both my iphone and ipad2 when trying to install or update anything from app store

    been visiting another country. when i got home i get an unknown error has occurred on both my iphone and ipad2 when trying to install or update anything from app store

    I started getting that message on my iPad tonight when I reset it completely. I haven't been t another country. So not sure if that has anything to do with it. I haven't been able to resolve yet.

  • Populate people picker from another list

    Hi,
    I have a task list that i want to populate the assigned to column with lookup information based on another list, by matching the "Project Name" of the two lists by using SPD 2013, no coding 
    Any thoughts?
    Thanks a lot in advance

    Hi,
    Per my knowledge, if you want to populate the Assigned To column value from another list in the New Item form in SharePoint Designer, then you need to use code to achieve this goal.
    Here is the code example(my lookup column name is “lookup” in the task list and the People and Group field in the other list (ListA) is “User”):
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $("select[Title='lookup']").blur(function()//change the Title to the column name of your lookup column
    var val1=$("select[Title='lookup']").val();
    getItems(val1);
    function getItems(val){
    var clientContext = new SP.ClientContext('http://sp');//change the URL to your site
    var oList = clientContext.get_web().get_lists().getByTitle('lookup test'); //change the list name to your list where the lookup column get values.
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'ID\'/><Value Type=\'Counter\'>'+val+'</Value></Eq></Where></Query></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 listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var oListItem = listItemEnumerator.get_current();
    for (var i = 0; i < oListItem.get_item("User").length; i++) {
    var val2=oListItem.get_item("User")[i].get_lookupValue();
    SetAndResolvePeoplePicker(val2);
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function SetAndResolvePeoplePicker(userAccountName) {
    var controlName = "Assigned To";
    var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
    console.log(peoplePickerDiv);
    var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
    var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
    peoplePickerEditor.val(userAccountName);
    spPeoplePicker.AddUnresolvedUserFromEditor(true);
    spPeoplePicker.SetEnabledState(false);
    $('.sp-peoplepicker-delImage').css('display','none');
    </script>
    After that, the values will be populated in the New Item form after you have selected the lookup column value.
    If you just want to set the Assigned To filed value, then you can use workflow to update the column value after creating the task.
    More reference:
    http://www.sharepointcolumn.com/sp2013-setting-people-picker-value-in-newform-aspx/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • 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

  • 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

  • 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

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

  • How to auto populate data from one list in SharePoint 2007 into another list based on a key value?

    Hi,
    As a part of new requirement in my project I am supposd to work on SharePoint 2007. I have one List (BCExtract - Main list) with all data related to an Application (like ID, name, app manager RTO etc).
    I have created another list which has form to be filled by a user (with details about his/her applications). My requirement is that when the user enters AIT ID then the page should refresh (probably after hitting enter) and other details like Application
    name, RTO etc which is present in another list gets auto populated depending on the AIT ID (unique column) entered so reduce the burden on the user.
    Please suggest me how this can be done. I do not have permission for obtaining SharePoint Designer and I do not know JQuery. Infopath is ok but if this can be done through SharePoint 2007 alone then it would be great.
    Thanks....

    Hello,
    You can either use jquery/jaavscript or infopath form to achieve this. There is no default way to do this.
    I would suggest jquery because you can put script in newform/editfor.aspx page using content editor webpart. Refer this link for jquery:
    To get value from list:
    http://social.technet.microsoft.com/Forums/en-US/ac47fe2a-ccb6-4f5b-b274-703aecc6cb0a/get-list-items-in-sharepoint-2010-by-using-jquery
    http://www.robertkuzma.com/2010/08/read-list-items-using-sharepoint-web-services-and-jquery/
    To set value in column:
    http://paulgalvinsoldblog.wordpress.com/2009/06/13/quick-and-easy-use-jquery-to-set-a-text-field%E2%80%99s-value-on-a-sharepoint-form/
    http://spservices.codeplex.com/discussions/468729
    If you use infopath form, then you need to create two data connection to get data from both lists. Later you can set value in fields based on selection using rule. This can be possible without code.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Open with [Pages4.3] for ALL Pages docs not working

    Hi there, I am unable to set the default application for all PAGES document to open in a lesser version (Pages version 4.3) to that of Pages version 5.1 which came pre-installed on my machine. The reason why I want Pages 4.3 opening on default instea

  • Add Files java applet does not trust our certificate

    We have installed Novell Filr and it is working great except for one issue. The java applet that runs when the Add Files button is clicked does not trust our certificate authority. We purchased and installed a SSL certificate, and both IE and Firefox

  • How do you rearrange footage in project bin

    Once I have imported my footage how do I rearange them in the project bin. I can't seem to grab a clip and move it into the position in list I want ( similar to arranging clips in PP or FCP ) Thank you

  • IWeb File-Hyperlink issue

    Hi, i want to create a File Hyperlink (the file is a .pdf-file). When I upload the file to the server and try the hyplerlink online it does not work. Anybody the same experience? All other Hyperlinks I use work except the File-Hyperlinks! There is ju

  • Maximum records an internal table can hold?

    Hi All,     Van you tell me maximum capacity of a standard internal table and that of an extract?   How do we increase the capacity of the internal table if it is flooded? Thanks a lot - Chandan