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?

Similar Messages

  • How to Update multiple items in other list using event handler?

    Hi All,
    If i update a item in a list, then i should update multiple items in another list need to be update. How to achive using event receivers?

    Hi Sam,
    According to your description, my understanding is that you want to update multiple items in another list when updated a list item.
    In the event receiver, you can update the multiple item using Client Object Model.
    Here is a code snippet for your reference:
    public override void ItemUpdated(SPItemEventProperties properties)
    string siteUrl = "http://sp2013sps/sites/test/";
    ClientContext clientContext = new ClientContext(siteUrl);
    List oList = clientContext.Web.Lists.GetByTitle("another list name");
    ListItem oListItem = oList.GetItemById(1);
    oListItem["Title"] = "Hello World Updated!";
    oListItem.Update();
    clientContext.ExecuteQuery();
    Best regards,<o:p></o:p>
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • How to create a dynamic entry list for an input field in VC(ce 7.1)

    Hello all,
    I have an Input field, i need to create a Dynamic Entry List for it in VC(ce 7.1).
    How can this be done.
    Thanks in Advance.
    Thanks and Regards,
    Santhosh Guptha N

    Hi Santhosh,
    You can define Dynamic entry list for Drop down list and combo box but not for input field.
    [Refer this|http://help.sap.com/saphelp_nwce10/helpdata/en/2a/28249060dd4dbc872f6266f4557364/frameset.htm] for defining entry list.
    Let me know if it helped.
    Regards,
    Dharmi

  • I get "An unexpected error has occurred" whenever I try to create item in a list or view site permission page

    I am working a SharePoint site with a custom masterpage and css. Everything displays just fine and the site functions with several subsites, and so forth. I have double-checked to ensure that important content placeholders were on the new masterpage, even
    if they were "hidden" from view.
    However, a new issue came up this week: I was moved from a contributor to a designer list so that I could convert word files in a doc library in web pages. When that change happened, I lost the ability to select "add new items" to lists or add
    events to calendars. [not sure if causation, or just correlation] On a similar note, no one--not even those with higher permissions levels than me---can access the "site permissions" page in browser now (not sure if this coincides with my issue over
    the lists/calendars, but in both cases the notification "an unexpected error has occurred" comes up).
    I temporarily switched a subsite to the default masterpage, and lists and site permissions page functioned fine--no error. Therefore, it appears as though something in the custom masterpage (or embedded css?) is causing this error to come up. But what could
    it be? 
    I ran across a forum question that mentioned a bug related to alternative css:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/53151269-dd61-4c71-8263-c1880450a1bb/sharepoint-2010-unable-to-access-site-settings-site-permissions-from-a-site-created-from-a-template Solutions
    said to check the correlation ID and use powershell. The guy in my department who checked the correlation ID said that nothing useful came up, and I got the impression that the powershell solution didn't work out for him either (I don't work on that side of
    things; I am on the design side). 
    So, does anyone have any idea what the problem could be? Again, I have checked and double-checked those content placeholders in my custom masterpage - they are all there. I built the site using one of Randy Drisgill's masterpage templates.
    Up until this point, I haven't had any issues with the template, my custom code, etc. 

    I am having the same issue, was this ever resolved?

  • Need Help; Must accept email and create item in custom list

    Hello Forum,
    We have a Sharepoint 2010 site that has been using Microsoft's ticketing system for years. What I need to confirm is if there is a way to email the sharepoint list and have it create a ticket (parsing the from address, subject and body then creating a ticket
    from that and sending a confirmation email reply to the user).
    I understand there may be some coding needed, but don't know where to start without having to start over and lose our years of  lists / data. Can someone please help provide information or at the very least a starting point for me?
    Thanks.

    I coded something similar very recently. This community project helped me a lot; http://www.codeproject.com/Articles/32899/Reading-an-Outlook-MSG-File-in-C
    I called
    out to this code from an ItemAdded Event Receiver on the library to parse the email metadata.
    It's also possible to email enable Libraries and receive items emailed straight to the library. There's a special event receiver available for that which helps you parse email metadata. (But I couldn't receive email directly from my project so I didn't use
    this approach though I daresay it's simpler); http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spemaileventreceiver.aspx
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Selecting items in a list from a multivalue field

    I have an edit page that includes a menu form element that
    allows multiple selections. It inserts all the IDs from a table
    that it's got from a recordset as a string into field named
    EventType separated by commas ("10000,10002,10004"). So far so
    good.
    I have a dynamic menu behaviour on the edit page too but when
    I reload it none of the options in the list are selected. It will
    mark an item in the menu as selected when there's only one value,
    presumably because when there are multiples the behaviour is trying
    to match a string of "10000,10002,10004" to the values in the the
    list , which are separate values:
    <select name="EventType" size="5" multiple="multiple"
    id="EventType">
    <option value="10001" >Abseil</option>
    <option value="10007" >Golf</option>
    <option value="10000" >Marathon/Run</option>
    <option value="10008" >Other outdoor</option>
    <option value="10003" >Overseas</option>
    <option value="10005" >Social</option>
    <option value="10006" >Triathlon</option>
    <option value="10004" >Walking</option>
    I'd have thought this would have been dealt with by the
    behaviour, but apparently not. How to I break apart the multivalue
    field to select each item in the menu?

    Thank you for poitning me in the right direction. I was being
    a little slow today:
    While (NOT rsEventType.EOF)
    %><option
    value="<%=(rsEventType.Fields.Item("ID").Value)%>" <%
    Array = Split(rsEvent.Fields.Item("Type").Value,", ")
    For Each i In Array
    If rsEventType.Fields.Item("ID").Value = i Then
    response.write "selected"
    End If
    Next
    %>><%=(rsEventType.Fields.Item("EventType").Value)%></option>
    <%
    rsEventType.MoveNext()
    Wend

  • Failed to update a list item to external list

    I'm getting below error when I try to add my record to external list. This happen when spExternalItem.Update for 2nd time. I have value in my params
    "Failed to update a list item for this external list based on the Entity (External Content Type) 'SA' in EntityNamespace 'Triggers'. Details: Null was returned to FindSpecific (Read Item operation)."
    SPList spExternalList = contentDb.Sites[0].RootWeb.Lists["SA"];
    List<string>
    lstMachineNames = GetMachineNames(lstWarehouseTaskRecords);
    foreach(stringstrMachineName
    inlstMachineNames)
    SPListItemspExternalItem = spExternalList.Items.Add();
    spExternalItem["FormType1"]
    = "WH";
    spExternalItem["SerialNum1"]
    = strMachineName;
    spExternalItem.Update();
    Serial Number is "map to identifier" in External Content types. "Required" and "Read-only" check box is uncheck. Anyone has any idea? please help.
    [UPDATED 7 May 2014]
    I believe it is due to BDC problem. I created another column called ID so I can map this ID column as identifiers instead of using SerialNum1 and this error solved!

    Hi,
    As you said, the error thrown when executing the Update method for the second time.
    I suggest you debug your code in Visual Studio and keep watching the values of objects in use to get more details about the root cause of the error.
    What’s more, you can take a look at the posts from Dimitry and Scot in this thread with similar error message:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/29fb464f-3539-40c4-91c5-216b0363b8ef/null-was-returned-to-findspecific-read-item-operation?forum=sharepointdevelopmentprevious
    Thanks
    Patrick Liang
    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]
    Patrick Liang
    TechNet Community Support

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

  • How does sharepoint designer create item in list work ?.

    I'm using sharepoint 365, and the free sharepoint designer.
    I'm trying to make something so that if List A gets an update other lists get new records to.
    There is a sharepoint-designer action that lets one create a an item in another list.
    And i have tested it a lot but haven't got any of my tests to work, been trying for a week now.
    I'm not sure as how it is exactly named in English, since our sharepoint is al dutch  :(
    I think in English  it looks like:
    Create item in Yourlistname  (save result in variable
    Succes)
    When clicking on yourlistname, you need the all valeus of all required items in the list.
    Now asume such worklow rule is made to start after an Entry is made in List A, And we want to update List B
    Here i start i think my problems
    So you select List B as your listname, but then...
    How does one refer, to a required link title from List A?.  use current list item ?
    How to link to a 4th table entry of List C as value to make in List B
    If List A has a value that is clickable-link how to link that to Value B
    If someone knows of problems with this, permissions things, or knows a youtube explaining it, or can explain it himself. It would be of great help to me.
    Upon futher investigation, i got into problems where the workflow has to fill in an item
    Into a column type that is a lookup table (another list), if work with string columns it works, but I need the current "name" as a lookup link connected into List B

    Hi PGT,
    I have seen a similar thread from you. The solution is that you need to work with Item ID's when you define the workflow to work with Lookup columns links. only at creation time you need to enter what field you like to include in your list. Based upon ID
    it will then show the values. The thread is:
    https://social.msdn.microsoft.com/Forums/office/en-US/e342e18a-3f68-4b49-9d80-41f11b76cb4e/how-does-sharepoint-designer-create-list-item-work-?forum=sharepointcustomization
    I will mark this reply as answer to close this case. If you have any question about this issue, please feel free to reply.
    Best Regards,
    Wendy
    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]
    Wendy Li
    TechNet Community Support

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

  • How to create a report  based on selected item from Select list?

    Hi,
    I have created a tables_LOV based on:
    select table_name d, table_name r from user_tab_cols
    where column_name like '%_type%'
    Then I created a page item ListOfTables,  Display as select list and pointing to tables_LOV.
    I run the page, and i can select the table i want from the drop down list.
    How to create a report  based on the selected item? (ex: select * from selected_table)
    many thanks in advance
    Salah

    Hi Salah,
    Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
    I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
    The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
    To recreate my example you should:
    1) create an (interactive) report on your collection
    SELECT *
       FROM APEX_collections
    WHERE collection_name = 'MY_COLLECTION'
    2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
    3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming the following code:
    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
    end;
    Make sure you add your page_item to the "Page Items to Submit" section.
    4) Add an extra true action that does a refresh of the report region.
    Here are two pictures describing the da:
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA1.png
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA2.png
    Good luck and regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • 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

  • 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

  • Create a project from list item not working if EPT has Project Plan Template

    HI,
    i am trying to leverage the new feature in 2013 to create a project from an idea list.
    This works fine if the EPT does not have Project Plan template assigned to it. Even through workflow action "Create Project from current list item".
    However if i assign a project plan template and the user creating the project  is not Administrators Group member, i get an error. While doing this trough a workflow the worfklow gets suspended and i have the below message:
    RequestorId: 654a6744-eb11-3d9c-0000-000000000000. Details: RequestorId: 654a6744-eb11-3d9c-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 403
    {"error":{"code":"20010, Microsoft.ProjectServer.PJClientCallableException","message":{"lang":"en-US","value":"PJClientCallableException: GeneralSecurityAccessDenied\u000d\u000aGeneralSecurityAccessDenied"}}}
    {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["290"],"SPRequestGuid":["654a6744-eb11-3d9c-9d1e-ff8135e50f19"],"request-id":["654a6744-eb11-3d9c-9d1e-ff8135e50f19"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4535"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 23 Apr 2014 14:40:46 GMT"],"Server":["Microsoft-IIS\/7.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}  
    at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context)   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)  
    at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    Any one has experienced this ?
    Thx

    Hi, RonyZ.
    I think it could help.
    I have experienced the same problem as you are, except "Create project" option, my managers could do it.
    So, for me a solution was to set definite permissions for Workflow Initiators (I have created new group, but you can edit, including
    Global permissions
    New project
    Open project template
    Server configuration management
    For category “My organization”
    Open Project
    Publish Project
    Save Project on Project Server
    Excuse me my translation, some names can be written not properly, cause I have localized SP.
    In you case, I think, you should check, if you PM  group has all these permissions.
    And Workflow Initiator should be in group which has.
    In LOGS error notifications starts with “Permission denied”, then goes account
    name and then the name of permission which is left.

  • Can't create a Content Type List Item on Visual Studio 2010

    Can't create a Content
    Type List Item on Visual Studio 2010

    Hi,
    According to your description, my understanding is that you want to select the specific content type in new item form.
    This is a default behavior. The "Add new item" link uses the default content type and does not display a dropdown list to change that value. This behavior is hard coded into the control and can't be changed.
    Here are some similar threads for your reference:
    https://social.technet.microsoft.com/Forums/en-US/de60f2a1-df91-4a67-a606-02a593c977b4/choose-a-content-type-when-creating-a-new-list-item?forum=sharepointcustomizationlegacy
    http://sharepoint.stackexchange.com/questions/13281/content-type-field-missing-from-new-form
    Best Regards
    Zhengyu Guo
    TechNet Community Support

Maybe you are looking for