Power Apps - Create an auto-incrementing reference number

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 33

  • @solomonokechukwu7540
    @solomonokechukwu7540 11 місяців тому +3

    Thanks Barry!!! for making me look like a pro at work😅

  • @dianemattheson4389
    @dianemattheson4389 Рік тому

    Thanks, Barry - this was just what I needed for a couple of apps that I am trying to put together! Learning as I go...!

  • @mdhidayat5706
    @mdhidayat5706 Рік тому +1

    Awesome tip! Thank you for sharing 👍🏻

  • @JohanAmaro
    @JohanAmaro Рік тому +1

    Hi Barry! Thanks a lot for video.

  • @neilejc
    @neilejc Рік тому +1

    Running this now, however I'm getting an issue where the first one works with XX00001, but the next one is XX2 and then it fails, saying it can't be converted into a number.
    Any help would be greatly appreciated

    • @powerappsacademy9460
      @powerappsacademy9460  Рік тому

      Please confirm that the Sharepoint column is set to text and not a number type

    • @LisamarieSC1
      @LisamarieSC1 10 місяців тому

      @@powerappsacademy9460 I'm having the same issue and when I'm editing the column in sharepoint, it isn't giving me the option to format the Title column as text. I'm going to try to simply create a new column instead of trying to use that tricky "Title" column, which I think my organization has attached things to...

  • @iscariotpaladin5363
    @iscariotpaladin5363 3 місяці тому +1

    Just started using power apps for my job and was tasking creating a tracker. The video was fairly easy to follow however one thing that I noticed which might be something different all together that i need but it looks like its just updating the row with the auto increments I was thinking from the title that it would create an additional entry with the auto increments if that is something else do you have a video that tackles that for every new entry.

  • @brandonmcdonald2993
    @brandonmcdonald2993 5 місяців тому

    Would it be possible to loop through this multiple times creating multiple ID's? I'm looking to create an app where a user would enter a number of labels they need, then it would create that many new ID's and then print them out.

  • @juancarlosmedranomolina1867
    @juancarlosmedranomolina1867 11 місяців тому

    Hi Barry, can you help me? Mark this error when generating the consecutive if I add the word echo. (The value 'ECO0003000' cannot be convert to a number , Set(varRefNum1,First(Filter(trackineco,Eco="ECO")).Título);
    UpdateIf(trackineco,Eco="ECO",{Título:Concatenate("ECO",Text(Right(varRefNum1,10)+1))});

    • @powerappsacademy9460
      @powerappsacademy9460  11 місяців тому

      ensure the column in Sharepoint is set to TEXT column type and NOT number column type

  • @sridharreddy1607
    @sridharreddy1607 8 місяців тому

    When both users parellely create button at same time then the reference number will be same for both

    • @powerappsacademy9460
      @powerappsacademy9460  5 місяців тому

      @sridharreddy1607 Thanks for sharing. Did you find a way around this?

  • @ashainfernando5748
    @ashainfernando5748 Рік тому

    Hi Barry, thanks a lot for this video and this is great.
    I am developing a similar app for my team and I want to have the ability to create a new line in a share point list every time a new response is submitted with a new incremental unique reference. Right now I am using flow to do this using the share point ID, but it’s a bit too slow for my application.
    Do you think you’ll be able to guide me on this or create a video.
    Thanks loads in advance.

    • @powerappsacademy9460
      @powerappsacademy9460  5 місяців тому

      @ashainfernando5748 this should be quite easy to do, did you manage to find out how? Sorry I did not respond earlier.

  • @MarieOliviah
    @MarieOliviah 10 місяців тому

    Great video! thank you! It is exactly what I was looking for. The only thing that did not work for me is because my number begin with 0 (zero) and not 1... So, when I update, the number generated pass from "R-00000500" to R-501 and creates an error for the next one. (concatenate doesn't work anymore)... Maybe if you have a solution for this problem, I will take it! thanks a lot again!

  • @NigelRoberts-m2z
    @NigelRoberts-m2z Рік тому

    HI Barry,
    This is a great video thank you so much. I have utilised it on a Quote Form I have put together. How can I get the reference number to populate a field in my SharePoint list now. I want the number to stay with a particular quote when they employee hits Submit.....TIA

    • @powerappsacademy9460
      @powerappsacademy9460  Рік тому

      Patch it in if saving a new line e.g. patch(sharepointlist, defaults(sharepointlist), { column1 : yourtextbox.text } ..... If you are updating a row that already exists, use the Updateif() function

    • @gaelrobinson3640
      @gaelrobinson3640 9 місяців тому +1

      @@powerappsacademy9460 Hey Barry - these are great videos thankyou - would you be able to do a video demoing this patch please?

    • @snipesnab
      @snipesnab 9 місяців тому

      ​@@gaelrobinson3640sounds like a good topic for next video.

  • @mce8183
    @mce8183 Рік тому

    Good morning Barry and thank you....this is EXACTLY what I am looking for. My manager now wants 2023-001 to change to 2024-001 when the year changes. How do i perform that code?

    • @powerappsacademy9460
      @powerappsacademy9460  Рік тому

      Thanks for reaching out. My video I am posting on Monday is covering your request. Please subscribe to get notifications when I post the tutorial. 🙏

    • @powerappsacademy9460
      @powerappsacademy9460  Рік тому

      Here is the link to the tutorial I recorded based on your request. Thanks for recommending the update: ua-cam.com/video/bNWTecMhUwE/v-deo.html

  • @matthewlim4642
    @matthewlim4642 5 місяців тому

    Hi Barry! Thanks a lot for this. however, I experienced a duplicate ID when multiple users clicked the submit at the same time. :)

    • @powerappsacademy9460
      @powerappsacademy9460  5 місяців тому

      @matthewlim4642 Thanks for letting us know. Did you find a resolution l?

    • @powerappsacademy9460
      @powerappsacademy9460  5 місяців тому

      My suggested fix is to write the reference number to sharepoint once it is generated, and perform a check before writing it to see if ut already exists. If it already exists in Sharepoint then generate a new one else continue. This may help allevaite the issue.

  • @HiroshimaMS
    @HiroshimaMS Рік тому

    You should have explained how to reduce the number in case the record is deleted.

    • @snipesnab
      @snipesnab Рік тому +1

      I usually don't worry about gaps in the auto incrementing number. But you could create a button to reset it to the previous number by modifying the code provided to subtract one instead of Adding.

    • @HiroshimaMS
      @HiroshimaMS Рік тому

      @@snipesnab yeap, that's an ideia, I don't even know how I didn't think of that, sometimes I am dumb lol. Thanks!

  • @basehumax
    @basehumax Рік тому

    Thanks