Add 1 to last ID number - InfoPath Dev
in

InfoPath Dev

Add 1 to last ID number

Last post 01-06-2017 09:25 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-05-2017 08:17 AM

    Add 1 to last ID number

    I have an ID number in a SharePoint list that currently is manually assigned when a user creates a new entry. I am creating a form in InfoPath 2016 that is just a pretty front end window for data entry. I have some cascading Listboxes that I am using. What I would like to be able to do, if possible, is get the ID box to look at the last value in the list and automatically add one. So the flow would be; 1. User opens 'Add new entry' 2. InfoPath form opens 3. Form looks at the last/highest ID that already exists in the SP List and adds one How would I achieve this if it is at all possible to do???? Thanks in advance TC
  • 01-06-2017 09:25 AM In reply to

    Re: Add 1 to last ID number

    It is possible - query the list to get all items back, sort by ID desc. so that the first item will be the highest number, and add one to it. You need to be aware that if multiple users are querying the list at the same time you have a chance of more than one getting the same number. http://www.bizsupportonline.net/browserforms/autonumber-infopath-form-submitted-sharepoint-library.htm may help you as well.
    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.