Use a auto incremented number across multiple lists

As we use lots of sites which all have their own issue list to track issues per project, i was wondering whether it's possible to add a column to these lists (to their content type) which automatically adds a number which is unique across all lists/sites.
Is this possible?

Lists have a Unique ID attached to each item (hidden field) that you could potentially use, but you will have to come up with a custom solution if you don't want ID's to be duplicated across your site collection. One thought is to attach a workflow to
each list you want unique ID's for, and copy the content to a separate list. This will create the unique ID's you are after.
List 1 > Workflow > ContainerList with unique ID
List 2 > Workflow > ContainerList with unique ID
While the originating lists will have their own 'unique' ID's, the TRUE unique ID you are after will be contained in the "Container" list. As each item is added, the workflow will create a duplicate item in the "Container" list, which will
also have a unique ID assigned to it. This way, all lists with the attached workflow will have a separate ID in the "Container" list you can utilize. Messy, but it works.

Similar Messages

  • Creating auto-increment field in SharePoint List

    In SharePoint, we can create the auto-incremental field by many ways, I am going to discuss two ways of doing it.
    Calculated field
    Item Event Receiver
    1. Using Calculated field:
    Using this we can accomplish it without doing any programing and it is a relatively simple way of doing it. By using “Calculated” column in SharePoint List we can create auto-increment field. We can accomplish this by creating a new column and choosing the
    column type as “Calculated (calculation based on other columns)”. And in Formula field, we have to enter [ID]
    In fact this will be using the values from “ID” field from SharePoint list that starts from 1.
    For example, if we want to start our auto-increment column from 100, we can modify the “Formula” field of Create New column screen, we can have to enter [ID] + 99
    For detailed info please follow the blog I wrote here: http://faisalrafique.wordpress.com/2011/03/19/creating-auto-increment-field-in-sharepoint-list/
    2. Using Item Event Receiver:
    By using this strategy, users have advantage to edit the existing values, we can also avoid it by making field read-only on feature activation. Using item event receiver, on ItemAdded event, we have to find the highest value among previously added items
    and then save the incremented value to current newly created auto-incremental column.
    For code of event reciever please follow the blog I wrote here:
    http://faisalrafique.wordpress.com/2011/03/19/creating-auto-increment-field-in-sharepoint-list/
    Happy Coding

    Use Sharepoint Designer to create a Workflow for the list containing the field to increment. For my project I had an Invoice field that I wanted to start with 1001 and increment from there so I made the following workflow to do this.
    In the new workflow screen in Sharepoint Designer create two actions in Step 1:
    Calculate Current Item:ID plus 1000 (Output to Variable: calc)
    then Set AutoIncrementNumber to Variable: calc
    This is just a guide. If you just want the auto-increment to start with 1 then you can just use this step
    Set AutoIncrementNumber to Current Item:ID
    Also, make sure you select the correct name for your field in the Workflow action instead of AutoIncrementNumber.
    Save the Workflow, close it, and then open it again in Sharepoint Designer. Check the box for "Start workflow automatically when an item is created." Save it again and then click on the Publish button to make it active on the sharepoint site. The value should
    now increment for each new item created in the list.

  • Re auto increment number

    Hi experts
                          i had a fms query for auto increment number  for a field  query is
    SELECT 'HB#'+cast((MAX(SubString(U_VSPPROJ,4,Len(U_VSPPROJ)))+1)  as Varchar(4))  from ORDR where U_VSPPROJ Like 'HB#%%'
    gives a result of  HB#1 to HB#999 this is for financial year 13-14 but now i want to reset it from HB1 for this FI year how can i do that
    Please help me on this
    Regards
    Prathap

    Hi
    The Query is
    SELECT 'HB#'+cast((MAX(SubString(U_VSPPROJ,4,Len(U_VSPPROJ)))+1)  as Varchar(4))  from ORDR where U_VSPPROJ Like 'HB#%%'
    given a result of  HB#1 to increasing +1 value in previous year 2013-14
    now i want same from HB#1 in this fi year  2014-15
    how to reset it from HB#1 from this f year
    please help me on this
    Thanks and Regards
    Prathap

  • Is there easy way to create auto increment number?

    Hello SharePoint Fam,
    Is there a easy solution to have a auto increment column that just creates new number on each new item.
    Wanting something like:
    14-0001
    14-0002
    14-0003
    14-0004
    14-0005
    Thanks n advance

    If you need a simple auto increment column then you can use "ID" field which is already present in Sharepoint. 
    It will increment in this fashion: 1,2,3,4...........
    or
    you can take field as "Calculated" and use formula (="14-" & [ID]) without parentheses.
    it will increment in this fashion 14-1, 14-2, 14-3............
    or
    try this link...may be you will find something helpful here...
    http://dlairman.wordpress.com/2011/01/10/add-a-unique-auto-incrementing-column-to-a-sharepoint-list/
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote ***

  • Auto increment number in BO

    Hello All,
    In my CAF code, I need to persist one variable and increment in every time the AS is called. To elaborate further, I have a business object (entity service) which stores the customer records. The customer number has to be auto incremented. The response of this service is the customer number which is auto generated.
    Please let me know how to go about it simplistically. Do we have the concept of static variables, the same of instance of which can be accessed by various service calls?
    Thanking you all in anticipation.
    Regards,
    Keerti

    Hi Keerthi,
    You can use the concept of static.
    If i had understood correctly, you need to have an operation in Application Service(AS) to create a Customer BO and each time  a customer BO is formed it shopuld be given a customer ny=umber in an auto increment fashion.
    For this you can have the following code in your create method of the AS
    try {
                   StatObj ob = this.getstatObjService().create();
                   i++;
                   ob.setCustNumber(i);
                   this.getstatObjService().update(ob);
              } catch (CAFCreateException e) {
              } catch (CAFUpdateException cue) {
              } catch (CAFPessimisticLockException cple) {
              } catch (CAFOptimisticLockException cole) {
    StatObj is my BO and CustNumber is an int in the BO.
    Hope it solves your problem.
    Hi keerthi,
    Is the problem solved.
    Regards,
    Srinivasan Subbiah
    Edited by: Srinivasan Subbiah on Apr 28, 2008 8:55 AM

  • Auto increment number field

    Hello,
    I would like to have a number field to be auto increment. Ho can I do that in Oracle must I use some code for it or can I make the field auto increment by itself.
    Thanks

    user3311314 wrote:
    Hello,
    I would like to have a number field to be auto increment. Ho can I do that in Oracle must I use some code for it or can I make the field auto increment by itself.
    ThanksIt's a long standing gripe of mine. You must use code, and the appropriate solution is a sequence and a trigger, eg
    SASH_CLIENT @ DB10G >create table t(
      2      id number not null primary key
      3  ,   c1 char(100));
    Table created.
    SASH_CLIENT @ DB10G >
    SASH_CLIENT @ DB10G >create sequence seq_t;
    Sequence created
    SASH_CLIENT @ DB10G >
    SASH_CLIENT @ DB10G >create or replace trigger bir_t
      2  before insert on t
      3  for each row
      4  begin
      5  select seq_t.nextval into :new.id from dual;
      6  end;
      7  /
    Trigger created.
    SASH_CLIENT @ DB10G >insert into t(c1) values ('row 1');
    1 row created.
    SASH_CLIENT @ DB10G >commit;
    Commit complete.
    SASH_CLIENT @ DB10G >select * from t;
            ID C1
             1 row 1I'd much prefer
    create table t (
       id number primary key default seq_t.nextval
    ,  c1 char(100));

  • How to generate auto increment id for sharepoint list item using calculated column?.

    Dear all,
    List Id will be auto generated in the format “TP_W1_SCO_00001”.(00001 Numbers will keep changing for the documents).
    FOR EX:-
    first listem ID :TP_W1_SCO_00001
    sECOND listem ID :TP_W1_SCO_00002
    Please tell me how to do it by using calculated column.
    Regards
    swapna
    SWAPNA

    In this solution you have to make two additional columns and one workflow.
    step 1 :
    create column ‘pID’ on the list of the type number.
    Step 2:
    Create on the list with SharePoint Designer a listworkflow
    Set in the start option: ‘Start workflow automatically when an item is create’
    In the workflow you set de column 'pID' with the value from 'ID' ( standard column)
    Use for this the option: ‘Set field in current item’.
    You need that because you can't use the column 'ID' in the formula in an calculated column
    Step 3:
    create column ‘IssueID’ on the list of the type calculated column.
    Use the formula:
    =""&"TP_W1_SCO_"&[pID]
    /blog
    twttr @esjord

  • Auto increment number with leading zeros

    hello,
    i have data column (serial number) that auto generate from script component, i'm using counter +1 and it successful store the number to my db. but the problem is there any idea to store the number to 00001 rather that 1.
    im using this method in my script component
    dim counter as integer = 0
    counter =counter + 1
    row.NoSerial = counter
    TQ

    Why should you send it through the file? WHy not simply create a calculated column based on identity field or sequence based field (if 2012 version and above)  in the destination table and ignore it from the file altogether. ANyways its going to be
    a sequential auotogenerated value isnt it?
    http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server
    If you want to bring it as  00001 etc you need to make it as varchar and use derived column expressions in SSIS as source is text file.
    I would prefer doing this in sqlserver if its just a sequential number and has no direct relationship to the incoming file data fields.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Using one user account table across multiple databases but account used as a foreign key

    I want to use one user account table from one database and use it across a couple other databases. The problem is that I want some tables to use the primary key from the user account table as a foreign key to access the data when the user logs in. Is this
    the right way of going about it? Do I have to create a user account table in all my databases? What is the best practice to handle this problem? Thanks in advance.

    You can use Triggers or using replication. 
    more info: 
    Add Foreign Key relationship between two Databases
    SQL Server Replication
    Saeid Hasani [sqldevelop]

  • How to use/sync single data (file) across multiple instances of same application

    Currently we have an application (a diagram editor), that have the ability to save and load (serialize) its state in a xml file.
    Now we want this application to behave like Microsoft OneNote application. Where multiple users have the ability to access the same file.
    Later we may also need to enhance with other things like, (1)what is changed and who changed it, (2)option to resolve conflicts if any.
    I came to know about sync framework to resolve this. so far, i have not tried it.
    All i want is,
    Virtually single file should be edited by multiple instances of same application.
    We need a dll (sync framework) that does following
    It takes complete responsibility of file handling.
    Using this dll, each instance of the application will notify their own changes.
    Each instance of the application should have the ability to detect the changes that is recently made (when, who, what are the changes).
    My question:
    Will sync framework be suitable for this requirement?
    If so, is there a demo application that represents this?
    - Jegan

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

  • Using Active Directory (LDAP Plugin) Across Multiple AD Servers

    Hi,
    I need to give an existing application the ability to talk to multiple active directories using the AD LDAP interface from a J2EE Applcation running on Apache 2.x/Tomcat 5.x (there are 4 independent AD trees and users from ANY of the trees can access the application)
    Can anyone point me in the right direction with this? I would seem to make sense that I should create a central security servlet that is aware of all the domains and connect to each of the AD servers in turn using LDAP (as often discussed on these forums) to acertain security rights, then turn control back to the application.
    Thoughts? Feedback? General help?
    thanks
    John

    Another thing that would help is any references to sample code where someone has done this before for..
    1. the server.xml file mods required? Web.xml Mods?
    2. Java code to accomplish this?
    Also, am i overthinking the problem? Could I just use some utility class inside the controller servlet that would have one method that would return access level or something? Then in the utility file I can do the looping through LDAP servers (really AD trees) and when I find the information I want, simply return it.

  • Using Get-ADGroup Member recursively across multiple domains in a Forest

    Quick question for the gurus around here....
    We are using a script that is querying the Local Administrators group on a Server.   It will pull the Users as well as the Groups that are a member of the Local Admins group on a server/system and using the recursive parameter with Get-ADGroupMembers,
     it will also list the members of any groups.  However, we seem to hit a snag when a Group is a member of another domain or even if the group is a member of the parent domain/forest.
    For example...One of the Members of the Local Admin group on a server is the "Enterprise Admins".  This group lives in "Corp.Fabrikam.com" yet the server is one level deeper in "ChildDomain.Corp.Fabrikam.com". 
    So of course, when looking in the Child Domain there is no Enterprise Admins group for it to find and it gives us an error that it can not be found.  Samething for Groups that live in other child domains of the forest (ChildDomain2.corp.Fabrikam.com)
    I am trying to figure out how to get the command to distinguish between these differences of the Group accounts and return the results from the domain those accounts live in.   Any ideas if this is normal behavior or if there is a work around?
    Thanks!

    You have to chase the answer.  If you do not have permissions on those domains you cannot retrieve the info.  I suspect it is your script that is wrong and not AD because AD tends to work as required.
    In other words.  Without a script we cannot be of much help.
    ¯\_(ツ)_/¯

  • Using the same Referenced Masters across Multiple External Hard Drives?

    I have a large (2TB) desktop external hard drive that I am now using as the source of my referenced masters for Aperture.
    I would like to copy this reference library ("My Photo Library") to a small, mobile external hard drive to use "on-the-go". But, if possible, I'd like to continue using the desktop external when I'm at home.
    What's the best way to do this? Should I just copy "My Photo Library" from the desktop external drive to the mobile external and Relocate Masters? But then, how do I switch back to using the desktop drive when I'm home without having to Relocate Masters every time (my library is quite large: 17K+ photos of 8-21MB each). Is there a way to "trick" Aperture into thinking that both drives are the same drive???

    Computer:
    5" Mac Book Pro OSX (10.4.11) 2.2
    Drives:
    1x WD Studio Edition - 750 GB (Firewire 800)
    1x LaCie - 750GB (USB)
    Final Cut Express HD 3.5.1
    (My minimal memory allowance is set to 3000MB)
    (No external editors set)
    HDV-Apple Intermediate Codec 1080i50
    HDVFireWirePAL
    Quicktime - 7.5
    Camera - HVR-V1 connected with firewire
    MiniDV Tapes, Mix of Sony & Panasonic (DVM60) - i know this is not advised, but i was in kenya, so getting the right tapes was not easy!
    Is that everything? Is there any other information you need?
    I have been working with Final Cut express while it has been installed on my WD hard Drive.
    I have been capturing and editing my film through the WD hard drive very happily up until now, but now it is full with 10 of the tapes (and the application), and so I am now wanting to save the rest of my tapes on the LaCie.

  • How can I use a mySQL database schema with numeric auto increment primary key instead of GUID?

    Hello!
    I'm using the TestStand "MySQL Insert (NI)" database schema with GUID as primary key. So everything works fine.
    But I prever using numeric values as primary key, because the database is in conjunction with another database which uses numeric values as primary key.
    Is this possible?
    Has anyone an idea how I can modify the "Generic Recordset (NI)" for use with MySQL?
    Thanks!
    Configuration:
    Microsoft Windows XP
    TestStand 3.1
    MySQL 4.1.12a
    MySQL ODBC 3.51 Driver
    Brosig

    Adam -
    The TestStand Database Logging feature does not allow you to run a separate SQL command after executing the command for a statement(table), so I do not think that you can use an auto incrementing column for the tables. There is just no way to get it back in a generic way. One option that I tried is something similar to the Oracle schema where you call a store procedure to return a sequence ID for each record that you want to add.
    So you would have to create the following sequence table in MySQL:
    CREATE TABLE sequence (id INT NOT NULL);
    INSERT INTO sequence VALUES (0);
    Then create a stored procedure as shown below that will increment the sequence value and return it in a recordset:
    CREATE PROCEDURE `getseqid`()
    BEGIN
            UPDATE sequence SET id=LAST_INSERT_ID(id+1);
            SELECT LAST_INSERT_ID();
    END
    Then update the MySQL tables to use INT primary and foreign key values, so the TestStand MySQL SQL file to create all tables would have text like this:
    CREATE TABLE UUT_RESULT
     ID    INT  PRIMARY KEY,
    ~
    CREATE TABLE STEP_RESULT
     ID    INT  PRIMARY KEY,
     UUT_RESULT   INT  NOT NULL,
    ~
    Then update the schema primary and foreign key columns in the TestStand Database Options dialog box to be INT to match the table. For the primary key columns, you will have to set the Primary Key Type to "Get Value from Recordset" and set the Primary Key Command Text to "call getseqid()". This will call the stored procedure to determine the next value to use as the ID value.
    Hope this helps...
    Scott Richardson
    National Instruments

  • Auto-increment workflow reset

    I have Sharepoint 2013, but created a Workflow in Sharepoint designer with Sharepont 2010 Workflow to assign an auto-increment column to a list. I have tested the list and the auto-incrementing is working great, however now I want to actively use the list
    in the 'real' working capacity, but when I've deleted the previously entered test items the auto-increment column proceeds to increase. How can I restart/reset the number back to where it should start? Is it possible? Or do I need to delete my list and start
    all over again from scratch both list and workflow?

    Hi Tam,
    How did you set the workflow to assign an auto-increment column to a list?
    If the workflow is different, then there should be different solutions.
    If you are using another list to store the numbers for the auto-increment column, then you can modify the columns in that list to be the value that you want to start with.
    Here is a link about using another list to recalculate the next number with workflow:
    http://gihanmaduranga.blogspot.jp/2012/09/create-auto-increment-number-column-in.html
    If that is case of your workflow, then you can edit the Last Number column in the Counter list to be a number which you want to start with.
    If you are using a different solution, could you please provide the detail steps of how you set the auto-increment column?
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • VPRS Price condition missing

    Hi All, I am trying to create a intercompany PO, I have two materials in PO 1) SAP material 2) Vendor material in item level (in PO). system is throwing the below error message. Pricing error: Mandatory condition VPRS is missing     Message no. V1801

  • How do I copy my playlists (not actual music files) from iPod to iTunes

    Hello all - I have two hard drives. One for my music files and one for everything else. My "everything else" hard drive crashed over the weekend. This is also where I had iTunes installed. I have all of my actual music files on the other hard drive,

  • Problem in key field name in FCC

    hi, I am using FCC on the sender side. Source file is 1;;PY;X101;20060630;06;20060630;GBP;Ref.1;Payroll June 2006; (Header) 1;1;40;S2225000;;1050;;;;;;;;;;;;;;;X101003;;;;;;;;;;;;;;; 1;2;240;S2225000;;4563;;;;;;;;;;;;;;;X101004;;;;;;;;;;;;;;; 1;3;31;

  • How can i get data from standard report 'PP_ORDER_PROGRESS'?

    When I have a sales order,i want get Production Orders & Plan Order related to this SO. The same as result of standard report 'PP_ORDER_PROGRESS'~~ How can I get the same data like report 'PP_ORDER_PROGRESS'~~ TKS very very much~~

  • Is this an iPhone 3gs bug

    I was playing around with my iPhone today and I press the call button with no phone numbers in the display and it called my last phone number which happened to be a missed call telemarketer's number. I hung up quickly but really it shouldn't have don